fix(version1011):整机价格
This commit is contained in:
parent
d228be2fb9
commit
890964f91a
@ -2079,9 +2079,8 @@ public class ClientUtils {
|
|||||||
* @param idx 明细行
|
* @param idx 明细行
|
||||||
*/
|
*/
|
||||||
public static void calculatePortAmt(IDataModel model, int idx) {
|
public static void calculatePortAmt(IDataModel model, int idx) {
|
||||||
if (isFCAPriceItem(model, idx)) {
|
|
||||||
BigDecimal qty = (BigDecimal) model.getValue("yem_qty", idx);
|
|
||||||
BigDecimal calc = BigDecimal.ZERO;
|
BigDecimal calc = BigDecimal.ZERO;
|
||||||
|
if (isFCAPriceItem(model, idx)) {
|
||||||
Map<String, Object> logistics = queryLogistics(model, idx, "FYXM0023.6");
|
Map<String, Object> logistics = queryLogistics(model, idx, "FYXM0023.6");
|
||||||
if (YEM.isNotEmpty(logistics)) {
|
if (YEM.isNotEmpty(logistics)) {
|
||||||
DynamicObject logisticsObj = (DynamicObject) logistics.get("obj");
|
DynamicObject logisticsObj = (DynamicObject) logistics.get("obj");
|
||||||
@ -2090,14 +2089,14 @@ public class ClientUtils {
|
|||||||
BigDecimal price = entry.getBigDecimal("yem_price");
|
BigDecimal price = entry.getBigDecimal("yem_price");
|
||||||
BigDecimal squareqty = (BigDecimal) model.getValue("yem_squareqty", idx);
|
BigDecimal squareqty = (BigDecimal) model.getValue("yem_squareqty", idx);
|
||||||
if (squareqty.compareTo(BigDecimal.ZERO) > 0) {
|
if (squareqty.compareTo(BigDecimal.ZERO) > 0) {
|
||||||
calc = qty.multiply(price).multiply(squareqty);
|
calc = price.multiply(squareqty);
|
||||||
} else {
|
} else {
|
||||||
calc = qty.multiply(price);
|
calc = price;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
model.setValue("yem_portamt", calc, idx);
|
model.setValue("yem_portamt", calc, idx);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 计算内陆运费
|
* 计算内陆运费
|
||||||
@ -2108,6 +2107,7 @@ public class ClientUtils {
|
|||||||
* @param idx 明细行
|
* @param idx 明细行
|
||||||
*/
|
*/
|
||||||
public static void calcInlandTransportationAmt(IDataModel model, int idx) {
|
public static void calcInlandTransportationAmt(IDataModel model, int idx) {
|
||||||
|
BigDecimal calc = BigDecimal.ZERO;
|
||||||
if (isFCAPriceItem(model, idx)) {
|
if (isFCAPriceItem(model, idx)) {
|
||||||
BigDecimal tonsqty = (BigDecimal) model.getValue("yem_tonsqty", idx);
|
BigDecimal tonsqty = (BigDecimal) model.getValue("yem_tonsqty", idx);
|
||||||
BigDecimal price = BigDecimal.ZERO;
|
BigDecimal price = BigDecimal.ZERO;
|
||||||
@ -2119,9 +2119,9 @@ public class ClientUtils {
|
|||||||
DynamicObjectCollection subC = entryObj.getDynamicObjectCollection("yem_subentryentity");
|
DynamicObjectCollection subC = entryObj.getDynamicObjectCollection("yem_subentryentity");
|
||||||
price = queryIntervalPrice(subC, tonsqty);
|
price = queryIntervalPrice(subC, tonsqty);
|
||||||
}
|
}
|
||||||
BigDecimal calc = price.multiply(tonsqty);
|
calc = price.multiply(tonsqty);
|
||||||
model.setValue("yem_inlandtransportation", calc, idx);
|
|
||||||
}
|
}
|
||||||
|
model.setValue("yem_inlandtransportation", calc, idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user