fix:
合同获取标准价优化
This commit is contained in:
parent
aeb01e979c
commit
4f4270e97e
@ -66,8 +66,6 @@ public class ClientUtils {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
yem_linetype = "add";
|
|
||||||
}
|
}
|
||||||
//多功能配置分录行获取
|
//多功能配置分录行获取
|
||||||
DynamicObjectCollection multiconfig = null;
|
DynamicObjectCollection multiconfig = null;
|
||||||
@ -169,8 +167,6 @@ public class ClientUtils {
|
|||||||
BigDecimal configentry = dataMap.get(configentryid) == null ? BigDecimal.ZERO : dataMap.get(configentryid).setScale(2);
|
BigDecimal configentry = dataMap.get(configentryid) == null ? BigDecimal.ZERO : dataMap.get(configentryid).setScale(2);
|
||||||
models.setValue("yem_marketraisepribase", configentry, multiconfigIndex, rowInfo);
|
models.setValue("yem_marketraisepribase", configentry, multiconfigIndex, rowInfo);
|
||||||
multiconfigIndex++;
|
multiconfigIndex++;
|
||||||
} else {
|
|
||||||
multiconfigIndex++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -206,7 +202,7 @@ public class ClientUtils {
|
|||||||
else if (("yem_im_clientdeman_zj".equals(yem_billtype) || "yem_im_inclientdeman_zj".equals(yem_billtype)
|
else if (("yem_im_clientdeman_zj".equals(yem_billtype) || "yem_im_inclientdeman_zj".equals(yem_billtype)
|
||||||
|| ("yem_es_salesorder_ZJ".equals(yem_billtype)) || "yem_es_salesorder_nmzj".equals(yem_billtype)
|
|| ("yem_es_salesorder_ZJ".equals(yem_billtype)) || "yem_es_salesorder_nmzj".equals(yem_billtype)
|
||||||
|| "yem_es_xsalesorder_zj".equals(yem_billtype) || "yem_es_xsalesorder_nmzj".equals(yem_billtype))
|
|| "yem_es_xsalesorder_zj".equals(yem_billtype) || "yem_es_xsalesorder_nmzj".equals(yem_billtype))
|
||||||
&& "P".equals(businesssort) && yem_linetype.equals("add")) {
|
&& "P".equals(businesssort) && !yem_linetype.equals("add")) {
|
||||||
// else if (("yem_im_clientdeman_zj".equals(yem_billtype) || "yem_im_inclientdeman_zj".equals(yem_billtype) || ("yem_es_salesorder_ZJ".equals(yem_billtype)) || "yem_es_salesorder_nmzj".equals(yem_billtype)) && "P".equals(businesssort)) {
|
// else if (("yem_im_clientdeman_zj".equals(yem_billtype) || "yem_im_inclientdeman_zj".equals(yem_billtype) || ("yem_es_salesorder_ZJ".equals(yem_billtype)) || "yem_es_salesorder_nmzj".equals(yem_billtype)) && "P".equals(businesssort)) {
|
||||||
pjFindPrice(yem_exrate, info, pjDatas, rowInfo, list, materials, models, yemBdProductsid);
|
pjFindPrice(yem_exrate, info, pjDatas, rowInfo, list, materials, models, yemBdProductsid);
|
||||||
}
|
}
|
||||||
@ -216,7 +212,7 @@ public class ClientUtils {
|
|||||||
else if (("yem_im_clientdema_pj".equals(yem_billtype) || "yem_im_inclientdema_pj".equals(yem_billtype)
|
else if (("yem_im_clientdema_pj".equals(yem_billtype) || "yem_im_inclientdema_pj".equals(yem_billtype)
|
||||||
|| "yem_es_salesorder_PJ".equals(yem_billtype) || "yem_es_salesorder_nmpj".equals(yem_billtype)
|
|| "yem_es_salesorder_PJ".equals(yem_billtype) || "yem_es_salesorder_nmpj".equals(yem_billtype)
|
||||||
|| "yem_es_xsalesorder_pj".equals(yem_billtype) || "yem_es_xsalesorder_nmpj".equals(yem_billtype))
|
|| "yem_es_xsalesorder_pj".equals(yem_billtype) || "yem_es_xsalesorder_nmpj".equals(yem_billtype))
|
||||||
&& "P".equals(businesssort) && yem_linetype.equals("add")) {
|
&& "P".equals(businesssort)&& !yem_linetype.equals("add")) {
|
||||||
pjFindPrice(yem_exrate, info, pjDatas, rowInfo, list, materials, models, yemBdProductsid);
|
pjFindPrice(yem_exrate, info, pjDatas, rowInfo, list, materials, models, yemBdProductsid);
|
||||||
}
|
}
|
||||||
rowInfo++;
|
rowInfo++;
|
||||||
@ -370,15 +366,7 @@ public class ClientUtils {
|
|||||||
* 获取标准价中 给当前行标准销售加价赋值
|
* 获取标准价中 给当前行标准销售加价赋值
|
||||||
*/
|
*/
|
||||||
public static void setPriceNow(DynamicObjectCollection multiconfig, Map<Long, BigDecimal> dataMap, int rowInfo, IDataModel models) {
|
public static void setPriceNow(DynamicObjectCollection multiconfig, Map<Long, BigDecimal> dataMap, int rowInfo, IDataModel models) {
|
||||||
int multiconfigIndex = 0;
|
|
||||||
if (!multiconfig.isEmpty()) {
|
|
||||||
for (DynamicObject dc : multiconfig) {
|
|
||||||
long configentryid = dc.getLong("yem_configentryid");
|
|
||||||
BigDecimal configentry = dataMap.get(configentryid) == null ? BigDecimal.ZERO : dataMap.get(configentryid).setScale(2);
|
|
||||||
models.setValue("yem_marketraisepribase", configentry, multiconfigIndex, rowInfo);
|
|
||||||
multiconfigIndex++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user