|
@@ -309,7 +309,7 @@ public class CmPayShopController extends BaseController {
|
|
|
}
|
|
|
// product.setSingleShouldPayTotalTax(MathUtil.div(MathUtil.mul(MathUtil.div(product.getCostPrice(), MathUtil.div(MathUtil.add(product.getTaxRate(), 100),100)), product.getSupplierTaxRate()), 100).doubleValue());
|
|
|
Double singleShouldPayTotalTax = product.getSingleShouldPayTotalTax() == null ? 0d : product.getSingleShouldPayTotalTax();
|
|
|
- Double supplierTaxRate = product.getSupplierTaxRate() == null ? 0d : product.getSupplierTaxRate();
|
|
|
+ Double supplierTaxRate = product.getTaxRate() == null ? 0d : product.getTaxRate();
|
|
|
// 获取已被退款的商品数量
|
|
|
Integer returnNum = newOrderProductDao.CountReturnedPurchaseProduct(Integer.parseInt(shopOrderID), orderProductID);
|
|
|
returnNum = returnNum == null ? 0 : returnNum;
|
|
@@ -329,7 +329,8 @@ public class CmPayShopController extends BaseController {
|
|
|
cmChangePayShopProduct.setChangePayShopId(Integer.parseInt(cmChangePayShopRecondId));
|
|
|
cmChangePayShopProduct.setOrderProductId(orderProductID);
|
|
|
cmChangePayShopProduct.setOrderProductName(product.getName());
|
|
|
- cmChangePayShopProduct.setSupplierTaxRate(orderProduct.getSupplierTaxRate());
|
|
|
+ // 同步使用机构税率 作为供应商税率
|
|
|
+ cmChangePayShopProduct.setSupplierTaxRate(product.getTaxRate());
|
|
|
cmChangePayShopProduct.setCostPrice(orderProduct.getNewCostPrice());
|
|
|
cmChangePayShopProduct.setSingleShouldPayTotalTax(orderProduct.getSingleShouldPayTotalTax());
|
|
|
cmChangePayShopProductService.save(cmChangePayShopProduct);
|
|
@@ -338,7 +339,9 @@ public class CmPayShopController extends BaseController {
|
|
|
orderProduct.setCostPrice(costPrice);
|
|
|
orderProduct.setOrganizeCostPrice(organizeCostPrice);
|
|
|
orderProduct.setCmCostPrice(cmCostPrice);
|
|
|
+ // 同步使用机构税率 作为供应商税率
|
|
|
orderProduct.setSupplierTaxRate(supplierTaxRate);
|
|
|
+ orderProduct.setTaxRate(product.getTaxRate());
|
|
|
orderProduct.setSingleShouldPayTotalTax(singleShouldPayTotalTax);
|
|
|
orderProducts.add(orderProduct);
|
|
|
int num = orderProduct.getNum() == null ? 0 : orderProduct.getNum();
|