【物料变更】

This commit is contained in:
tanfengling@x-ri.com 2025-12-05 10:39:53 +08:00
parent 965ecaf85f
commit 6e5ed2a502
1 changed files with 3 additions and 2 deletions

View File

@ -89,7 +89,7 @@ public class MaterialBillPlugin extends AbstractBillPlugIn {
if (iDataEntityProperties.size() > 0) {
for (IDataEntityProperty prop : iDataEntityProperties) {
String name = prop.getName();//字段标识
if ("status".equals(name) || "useorg".equals(name) || "modifytime".equals(name)) {
if ("status".equals(name) || "useorg".equals(name) || "modifytime".equals(name) || "tqq9_changereason".equals(name)) {
continue;
}
LocaleString displayNameLocaleStr = prop.getDisplayName();
@ -319,7 +319,8 @@ public class MaterialBillPlugin extends AbstractBillPlugIn {
// String copySrcBillName = this.getPageCache().get("copySrcBillName");
// String copySrcBillNumber = this.getPageCache().get("copySrcBillNumber");
DynamicObject dataEntity = this.getModel().getDataEntity(true);
dataEntity.set("name", copySrcBillName + "_copy");
dataEntity.set("number", copySrcBillNumber + "_copy");
dataEntity.set("name", copySrcBillName);
dataEntity.set("tqq9_srcnumber", copySrcBillNumber);
this.getView().invokeOperation("save");
}