fix:
1.外销合同获取标准价按钮生成数据更改问题处理
This commit is contained in:
parent
da7aa098ab
commit
c6b75c4d8e
@ -420,9 +420,9 @@ public class SalesOrderZJEdit extends AbstractBillPlugIn implements Plugin, Befo
|
|||||||
case "yem_singlenumber":
|
case "yem_singlenumber":
|
||||||
ZJUtils.countCostSumAmountZJ(model);//
|
ZJUtils.countCostSumAmountZJ(model);//
|
||||||
break;
|
break;
|
||||||
// case "yem_marketraisepribase":
|
case "yem_marketraisepribase":
|
||||||
// ClientUtils.countStandardSales(model);
|
ClientUtils.countStandardSales(model);
|
||||||
// break;
|
break;
|
||||||
case "yem_giftcurrency":
|
case "yem_giftcurrency":
|
||||||
countGiftRate();
|
countGiftRate();
|
||||||
break;
|
break;
|
||||||
|
@ -1950,6 +1950,7 @@ public class ClientUtils {
|
|||||||
// if (!isFCAPriceItem(model, idx)) {
|
// if (!isFCAPriceItem(model, idx)) {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
String string = model.getDataEntityType().getName();
|
||||||
|
|
||||||
DynamicObject dataEntity = model.getDataEntity(true);
|
DynamicObject dataEntity = model.getDataEntity(true);
|
||||||
DynamicObjectCollection c = dataEntity.getDynamicObjectCollection("yem_es_materialinfo");
|
DynamicObjectCollection c = dataEntity.getDynamicObjectCollection("yem_es_materialinfo");
|
||||||
@ -1971,6 +1972,15 @@ public class ClientUtils {
|
|||||||
int rowCount = model.getEntryRowCount("yem_es_materialinfo");
|
int rowCount = model.getEntryRowCount("yem_es_materialinfo");
|
||||||
for (int i = 0; i < rowCount; i++) {
|
for (int i = 0; i < rowCount; i++) {
|
||||||
DynamicObject d = c.get(i);
|
DynamicObject d = c.get(i);
|
||||||
|
if (string.equals("yem_es_xsalesorder")){
|
||||||
|
String yemLinetype = d.getString("yem_linetype");
|
||||||
|
if (!"add".equals(yemLinetype)){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!"Z".equals(d.getString("yem_businesssort"))){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
DynamicObjectCollection subC = d.getDynamicObjectCollection("yem_multiconfig");
|
DynamicObjectCollection subC = d.getDynamicObjectCollection("yem_multiconfig");
|
||||||
BigDecimal sumAmt = BigDecimal.ZERO;
|
BigDecimal sumAmt = BigDecimal.ZERO;
|
||||||
for (DynamicObject sub : subC) {
|
for (DynamicObject sub : subC) {
|
||||||
|
Loading…
Reference in New Issue
Block a user