change Field name
parent
4ad26f4fa6
commit
a21d0d07f9
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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() }}
|
||||
|
|
Loading…
Reference in New Issue