入库单优化分摊类型为不分摊逻辑
This commit is contained in:
parent
b58550fa48
commit
4680dd5aff
|
|
@ -230,6 +230,23 @@ public class MaterialInbPurchaseApplyPlugin extends AbstractBillPlugIn implement
|
||||||
return;
|
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();
|
setNewExpenseSummary();
|
||||||
} else if ("zcgj_transtaxamount".equals(key)) {
|
} else if ("zcgj_transtaxamount".equals(key)) {
|
||||||
// 入库单明细-运费税额
|
// 入库单明细-运费税额
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue