|
@@ -4190,10 +4190,10 @@ public class TWarehouseBillsServiceImpl implements ITWarehouseBillsService {
|
|
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
|
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
|
return AjaxResult.error("库存不足");
|
|
return AjaxResult.error("库存不足");
|
|
}
|
|
}
|
|
- if (billsType.equals("RKRevoke") && tWhgenleg.getfVolumnd().compareTo(warehousebillsfees.getfQty())< 0){
|
|
|
|
|
|
+ if (billsType.equals("RKRevoke") && tWhgenleg.getfGrossweightblc().compareTo(warehousebillsfees.getfQty())< 0){
|
|
TFees tFees = tFeesMapper.selectTFeesById(warehousebillsfees.getfFeeid());
|
|
TFees tFees = tFeesMapper.selectTFeesById(warehousebillsfees.getfFeeid());
|
|
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
|
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
|
- return AjaxResult.error("库存不足,当前"+tFees.getfName()+"可撤销库存为:"+ tWhgenleg.getfVolumnd());
|
|
|
|
|
|
+ return AjaxResult.error("库存不足,当前"+tFees.getfName()+"可撤销库存为:"+ tWhgenleg.getfGrossweightblc());
|
|
}
|
|
}
|
|
if (billsType.equals("CKRevoke") && tWhgenleg.getfNetweightc().compareTo(warehousebillsfees.getfQty())< 0){
|
|
if (billsType.equals("CKRevoke") && tWhgenleg.getfNetweightc().compareTo(warehousebillsfees.getfQty())< 0){
|
|
TFees tFees = tFeesMapper.selectTFeesById(warehousebillsfees.getfFeeid());
|
|
TFees tFees = tFeesMapper.selectTFeesById(warehousebillsfees.getfFeeid());
|