|
|
|
@ -1154,7 +1154,7 @@ public class CwsettlementServiceImpl extends ServiceImpl<CwsettlementMapper, Cws
|
|
|
|
|
DeliveryOrderEntity deliveryOrderEntity = deliveryOrderService.getInfo(warehousingOutboundEntityList.get(0).getWarehousingId());
|
|
|
|
|
if (ObjectUtil.isNotEmpty(deliveryOrderEntity)) {
|
|
|
|
|
BusinessOrderEntity businessOrderEntity = businessOrderService.getInfo(deliveryOrderEntity.getBusinessId());
|
|
|
|
|
List<WarehousingOutboundProductEntity> warehousingOutboundProductList = warehousingOutboundProductService.queryOutboundProductPurchase(model.getAccountId());
|
|
|
|
|
List<WarehousingOutboundProductEntity> warehousingOutboundProductList = warehousingOutboundProductService.queryOutboundProductPurchase(cwaccountstorageEntity.getDocumentNo());
|
|
|
|
|
for (WarehousingOutboundProductEntity warehousingOutboundProductEntity : warehousingOutboundProductList) {
|
|
|
|
|
settlementRelationSaleEntity.setPurchaseCode(warehousingOutboundProductEntity.getCode()); //采购订单
|
|
|
|
|
settlementRelationSaleEntity.setContract(warehousingOutboundProductEntity.getContractName()); //采购合同编号
|
|
|
|
@ -1183,9 +1183,12 @@ public class CwsettlementServiceImpl extends ServiceImpl<CwsettlementMapper, Cws
|
|
|
|
|
settlementRelationSaleEntity.setSettlementPrice(tableField207.get(i).getSettlementPrice()); //单价量
|
|
|
|
|
settlementRelationSaleEntity.setSettlementCount(tableField207.get(i).getSettlementSubtotal()); //单价量
|
|
|
|
|
settlementRelationSaleEntity.setPaymentAmount(cwsettlementForm.getPaymentAmount()); //已收款金额
|
|
|
|
|
|
|
|
|
|
settlementRelationSaleService.saveOrUpdate(settlementRelationSaleEntity);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
settlementRelationSaleService.saveOrUpdate(settlementRelationSaleEntity);
|
|
|
|
|
// settlementRelationSaleService.saveOrUpdate(settlementRelationSaleEntity);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|