入库单优化分摊类型为不分摊逻辑

This commit is contained in:
xuhaihui 2025-11-12 17:17:40 +08:00
parent b58550fa48
commit 4680dd5aff
1 changed files with 17 additions and 0 deletions

View File

@ -230,6 +230,23 @@ public class MaterialInbPurchaseApplyPlugin extends AbstractBillPlugIn implement
return;
}
}
if ("splittype".equals(key)) {
//分摊类型
ChangeData changeData = e.getChangeSet()[0];
Object splitType = changeData.getNewValue();
if ("3".equals(splitType)) {
this.getModel().beginInit();
DynamicObjectCollection entryEntityCollection = this.getModel().getDataEntity(true).getDynamicObjectCollection("entryentity");//入库单分录
for (DynamicObject entryEntity : entryEntityCollection) {
entryEntity.set("zcgj_transtaxamount", BigDecimal.ZERO);
entryEntity.set("ftransamount", BigDecimal.ZERO);
entryEntity.set("taxtransamount", BigDecimal.ZERO);
entryEntity.set("amount", entryEntity.get("notaxamount"));
}
this.getView().updateView("entryentity");
this.getModel().endInit();
}
}
setNewExpenseSummary();
} else if ("zcgj_transtaxamount".equals(key)) {
// 入库单明细-运费税额