|
|
@ -168,6 +168,15 @@ public class ScmApplyInboundQueryService extends MybatisBaseService<ScmApplyInbo |
|
|
|
ScmApplyInboundQuery entity = fetchBySid(sid); |
|
|
|
ScmApplyInboundQueryDetailsVo vo = new ScmApplyInboundQueryDetailsVo(); |
|
|
|
BeanUtil.copyProperties(entity, vo); |
|
|
|
List<ScmApplyInboundVehQueryDetailsVo> scmApplyInboundVehQueryDetailsVos = scmApplyInboundVehQueryService.fetchByMainSid(sid); |
|
|
|
vo.setScmApplyInboundVehQueryList(scmApplyInboundVehQueryDetailsVos); |
|
|
|
BigDecimal totalMoney = new BigDecimal(0); |
|
|
|
for (ScmApplyInboundVehQueryDetailsVo scmApplyInboundVehQueryDetailsVo : scmApplyInboundVehQueryDetailsVos) { |
|
|
|
String settleMoney = scmApplyInboundVehQueryDetailsVo.getSettleMoney(); |
|
|
|
totalMoney = totalMoney.add(new BigDecimal(settleMoney)); |
|
|
|
} |
|
|
|
String transform = TransformMoney.transform(totalMoney.toString()); |
|
|
|
vo.setTotalMoney(transform); |
|
|
|
return vo; |
|
|
|
} |
|
|
|
|
|
|
@ -260,7 +269,7 @@ public class ScmApplyInboundQueryService extends MybatisBaseService<ScmApplyInbo |
|
|
|
stkInStock.setFPurchaseDeptId(baseVehicle.getPurchaseSystemCode()); |
|
|
|
stkInStock.setFSupplierId(baseVehicle.getSupplierCode()); |
|
|
|
// 入库日期:FDate (必填项)
|
|
|
|
stkInStock.setFDate(DateUtil.formatDate(baseVehicle.getPriceDate())); |
|
|
|
stkInStock.setFDate(baseVehicle.getOrgPriceDate()); |
|
|
|
// 物料列表:FInStockEntry (必填项)
|
|
|
|
List<StkInStock.FInStockEntry> fInStockEntry = new ArrayList<>(); |
|
|
|
//直接调拨单的物料列表
|
|
|
|