|
|
@@ -2933,7 +2933,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
stockGoods.setGoodsId(orderItems.getItemId());
|
|
|
stockGoods.setStorageId(orderItems.getStorageId());
|
|
|
stockGoods.setPurchasePrice(orderItems.getPrice());
|
|
|
- stockGoods.setStockPrice(orderItems.getPrice());
|
|
|
+// stockGoods.setStockPrice(orderItems.getPrice());
|
|
|
stockGoods.setBalanceQuantity(new BigDecimal("0.00").subtract(orderItems.getStorageInQuantity()));
|
|
|
stockGoods.setBalanceAmount(new BigDecimal("0.00").subtract(stockGoods.getBalanceQuantity().multiply(orderItems.getPrice())));
|
|
|
stockGoods.setSurplusRouteQuantity(new BigDecimal("0.00").subtract(orderItems.getStorageInQuantity()));
|
|
|
@@ -3195,7 +3195,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
}
|
|
|
settlement.setSettlementDate(new Date());
|
|
|
settlement.setAccount(order.getAccount());
|
|
|
- settlement.setAmount(order.getCurrentAmount().add(order.getMemberBalance()));
|
|
|
+ settlement.setAmount(order.getCurrentAmount());
|
|
|
settlement.setOverPayment(order.getOverPayment());
|
|
|
settlementList.add(settlement);
|
|
|
order.setSettlementList(settlementList);
|
|
|
@@ -3779,7 +3779,6 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
stockGoods.setGoodsId(orderItems.getItemId());
|
|
|
stockGoods.setStorageId(orderItems.getStorageId());
|
|
|
stockGoods.setPurchasePrice(orderItems.getPrice());
|
|
|
- stockGoods.setStockPrice(orderItems.getPrice());
|
|
|
stockGoods.setBalanceQuantity(new BigDecimal("0.00").subtract(orderItems.getStorageInQuantity()));
|
|
|
stockGoods.setBalanceAmount(new BigDecimal("0.00").subtract(stockGoods.getBalanceQuantity().multiply(orderItems.getPrice())));
|
|
|
stockGoods.setSurplusRouteQuantity(new BigDecimal("0.00").subtract(orderItems.getStorageInQuantity()));
|
|
|
@@ -3808,9 +3807,9 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
this.paymentApply(order, order.getBillType(), order.getTradeType());
|
|
|
// order.setPurchaseAmount(order.getOrderAmount());
|
|
|
order.setDebitAmount(order.getOrderAmount());
|
|
|
- order.setBalanceAmount(order.getOrderAmount().subtract(order.getMemberBalance()));
|
|
|
+ order.setBalanceAmount(order.getOrderAmount());
|
|
|
order.setPurchaseAmount(order.getOrderAmount());
|
|
|
- order.setSettlmentAmount(order.getOrderAmount().subtract(order.getBalanceAmount()));
|
|
|
+ order.setSettlmentAmount(order.getOrderAmount());
|
|
|
baseMapper.updateById(order);
|
|
|
// 保存订单文件信息
|
|
|
if (CollectionUtils.isNotEmpty(order.getOrderFilesList())) {
|
|
|
@@ -4409,7 +4408,6 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
stockGoods.setGoodsId(orderItems.getItemId());
|
|
|
stockGoods.setStorageId(orderItems.getStorageId());
|
|
|
stockGoods.setPurchasePrice(orderItems.getPrice());
|
|
|
- stockGoods.setStockPrice(orderItems.getPrice());
|
|
|
stockGoods.setBalanceQuantity(new BigDecimal("0.00").subtract(orderItems.getStorageInQuantity()));
|
|
|
stockGoods.setBalanceAmount(new BigDecimal("0.00").subtract(stockGoods.getBalanceQuantity().multiply(orderItems.getPrice())));
|
|
|
stockGoods.setSurplusRouteQuantity(new BigDecimal("0.00").subtract(orderItems.getStorageInQuantity()));
|
|
|
@@ -4636,7 +4634,6 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
stockGoods.setGoodsId(orderItems.getItemId());
|
|
|
stockGoods.setStorageId(orderItems.getStorageId());
|
|
|
stockGoods.setPurchasePrice(orderItems.getPrice());
|
|
|
- stockGoods.setStockPrice(orderItems.getPrice());
|
|
|
stockGoods.setBalanceQuantity(new BigDecimal("0.00").subtract(orderItems.getStorageInQuantity()));
|
|
|
stockGoods.setBalanceAmount(new BigDecimal("0.00").subtract(stockGoods.getBalanceQuantity().multiply(orderItems.getPrice())));
|
|
|
stockGoods.setSurplusRouteQuantity(new BigDecimal("0.00").subtract(orderItems.getStorageInQuantity()));
|
|
|
@@ -6415,7 +6412,6 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
stockGoods.setGoodsId(orderItems.getItemId());
|
|
|
stockGoods.setStorageId(orderItems.getStorageId());
|
|
|
stockGoods.setPurchasePrice(orderItems.getPrice());
|
|
|
- stockGoods.setStockPrice(orderItems.getPrice());
|
|
|
stockGoods.setBalanceQuantity(new BigDecimal("0.00").subtract(orderItems.getStorageInQuantity()));
|
|
|
stockGoods.setBalanceAmount(new BigDecimal("0.00").subtract(stockGoods.getBalanceQuantity().multiply(orderItems.getPrice())));
|
|
|
stockGoods.setSurplusRouteQuantity(new BigDecimal("0.00").subtract(orderItems.getStorageInQuantity()));
|
|
|
@@ -7608,7 +7604,6 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
stockGoods.setGoodsId(orderItems.getItemId());
|
|
|
stockGoods.setStorageId(orderItems.getStorageId());
|
|
|
stockGoods.setPurchasePrice(orderItems.getPrice());
|
|
|
- stockGoods.setStockPrice(orderItems.getPrice());
|
|
|
stockGoods.setBalanceQuantity(new BigDecimal("0.00").subtract(orderItems.getStorageInQuantity()));
|
|
|
stockGoods.setBalanceAmount(new BigDecimal("0.00").subtract(stockGoods.getBalanceQuantity().multiply(orderItems.getPrice())));
|
|
|
stockGoods.setSurplusRouteQuantity(new BigDecimal("0.00").subtract(orderItems.getStorageInQuantity()));
|
|
|
@@ -8225,7 +8220,6 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
applyDTO.setChargeMember(order.getChargeMember());
|
|
|
applyDTO.setUnit("条");
|
|
|
applyDTO.setRemarks(order.getOrderRemark());
|
|
|
- applyDTO.setSettlementAmount(order.getSettlmentAmount());
|
|
|
applyDTO.setMemberBalance(order.getMemberBalance());
|
|
|
//获取费用id
|
|
|
R<FeesDesc> fees = feesDescClient.getFeesByName("货款");
|