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

View File

@ -100,7 +100,7 @@ public class InventoryService {
boolean cuttingComplete = jobCardItemWrappers.stream() boolean cuttingComplete = jobCardItemWrappers.stream()
.filter(e -> e.getJobCardItemId() == jobCardItem.getId()) .filter(e -> e.getJobCardItemId() == jobCardItem.getId())
.map(JobCardItemWrapper::getFinalReceived) .map(JobCardItemWrapper::getCuttingComplete)
.findFirst() .findFirst()
.orElse(false); .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> <input class="form-control" min="1" :max="wrapQuantity" type="number" v-bind:name="'items[' + index + '].perBundleQuantity'" required>
</td> </td>
<td width="10" style="text-align: center;" > <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>
<td> <td>
{{ populateCuttingAccount() }} {{ populateCuttingAccount() }}