1
This commit is contained in:
@@ -69,20 +69,20 @@ public class JDOrderProfitServiceImpl implements IJDOrderProfitService {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ("F".equals(mark) || mark.startsWith("F-")) {
|
// 其余分销标记:与 F / F-* / PDD / H / … 共用同一利润公式(含额外成本);须有售价渠道 + 售价才自动算出利润,否则清空
|
||||||
if (!sellingLocked) {
|
if (!sellingLocked) {
|
||||||
fillSellingPriceFromConfig(order);
|
fillSellingPriceFromConfig(order);
|
||||||
}
|
}
|
||||||
if (!profitLocked) {
|
if (!profitLocked) {
|
||||||
|
String type = order.getSellingPriceType();
|
||||||
|
Double sp = order.getSellingPrice();
|
||||||
|
if (type != null && !type.trim().isEmpty() && sp != null) {
|
||||||
computeProfitForF(order);
|
computeProfitForF(order);
|
||||||
}
|
} else {
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!profitLocked) {
|
|
||||||
order.setProfit(null);
|
order.setProfit(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void fillSellingPriceFromConfig(JDOrder order) {
|
private void fillSellingPriceFromConfig(JDOrder order) {
|
||||||
String type = order.getSellingPriceType();
|
String type = order.getSellingPriceType();
|
||||||
|
|||||||
Reference in New Issue
Block a user