change Field name

fixed-serach-item
Usama Khan 2025-03-02 21:29:56 -08:00
parent 4ad26f4fa6
commit a21d0d07f9
3 changed files with 7 additions and 7 deletions

View File

@ -10,7 +10,7 @@ public class JobCardItemWrapper {
private List<CutPiece> pieces;
private BigDecimal actualProduction;
private int perBundleQuantity;
private boolean finalReceived;
private boolean cuttingComplete;
public long getJobCardId() {
return jobCardId;
@ -52,12 +52,12 @@ public class JobCardItemWrapper {
this.perBundleQuantity = perBundleQuantity;
}
public boolean getFinalReceived() {
return finalReceived;
public boolean getCuttingComplete() {
return cuttingComplete;
}
public void setFinalReceived(boolean finalReceived) {
this.finalReceived = finalReceived;
public void setCuttingComplete(boolean finalReceived) {
this.cuttingComplete = finalReceived;
}
@Override

View File

@ -100,7 +100,7 @@ public class InventoryService {
boolean cuttingComplete = jobCardItemWrappers.stream()
.filter(e -> e.getJobCardItemId() == jobCardItem.getId())
.map(JobCardItemWrapper::getFinalReceived)
.map(JobCardItemWrapper::getCuttingComplete)
.findFirst()
.orElse(false);

View File

@ -50,7 +50,7 @@
<input class="form-control" min="1" :max="wrapQuantity" type="number" v-bind:name="'items[' + index + '].perBundleQuantity'" required>
</td>
<td width="10" style="text-align: center;" >
<input type="checkbox" v-bind:name="'items[' + index + '].finalReceived'">
<input type="checkbox" v-bind:name="'items[' + index + '].cuttingComplete'">
</td>
<td>
{{ populateCuttingAccount() }}