添加OFS销售订单优惠金额分摊计算
引入新的OFS售后订单金额分摊工具,并在处理售后订单时,增加一步计算OFS销售订单优惠金额分摊到明细行的逻辑。
This commit is contained in:
parent
215f1b0fa1
commit
b3d244f415
|
@ -180,6 +180,9 @@ public class SoSaleReturnPluginInitializerToC extends PluginBaseEntity {
|
|||
@Autowired
|
||||
private RdclUtil rdclUtil;
|
||||
|
||||
@Autowired
|
||||
private OfsOrderAfterSalesAmountAllocationUtil ofsOrderAfterSalesAmountAllocationUtil;
|
||||
|
||||
/**
|
||||
* 库存同步,根据时间范围拉取
|
||||
*
|
||||
|
@ -982,6 +985,8 @@ public class SoSaleReturnPluginInitializerToC extends PluginBaseEntity {
|
|||
//查询OFS售后订单对应的OFS销售订单
|
||||
List<com.hzya.frame.ttxofs.dto.ofssalesordersearch.HeaderDetailsDto> headerDetailsDtos = queryBatchOfsOrder(returnGoodHeaderDetailsDataDtoList1);
|
||||
findOfsOrder(headerDetailsDtos, returnGoodHeaderDetailsDataDtoList1);
|
||||
//计算OFS销售订单优惠金额分摊到明细行
|
||||
ofsOrderAfterSalesAmountAllocationUtil.batchTocSalesAmountAllocation(rerturnGoodsOrderSearchData);
|
||||
|
||||
for (int i = 0; i < returnGoodHeaderDetailsDataDtoList1.size(); i++) {
|
||||
StockinOrderSearchResponse.StockinOrder stockinOrder = returnGoodHeaderDetailsDataDtoList1.get(i);
|
||||
|
|
Loading…
Reference in New Issue