|
@@ -144,8 +144,6 @@ public class CostAllocationEditPlugin extends AbstractListPlugin implements Plug
|
|
|
this.getModel().setValue("nckd_orireceiveamount",new BigDecimal(0),0);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -256,29 +254,29 @@ public class CostAllocationEditPlugin extends AbstractListPlugin implements Plug
|
|
|
DynamicObjectCollection accountentry = this.getModel().getEntryEntity("accountentry");
|
|
|
DynamicObject dynamicObject = accountentry.get(0);
|
|
|
if(dynamicObject!=null){
|
|
|
- this.getModel().setValue("orireceiveamount",new BigDecimal(0),0);
|
|
|
+ this.getModel().setValue("nckd_orireceiveamount",new BigDecimal(0),0);
|
|
|
|
|
|
}
|
|
|
} else if (bigDecimal1.compareTo(bigDecimal) == 0) {
|
|
|
DynamicObjectCollection accountentry = this.getModel().getEntryEntity("accountentry");
|
|
|
DynamicObject dynamicObject = accountentry.get(0);
|
|
|
if(dynamicObject!=null){
|
|
|
- this.getModel().setValue("orireceiveamount",new BigDecimal(0),0);
|
|
|
+ this.getModel().setValue("nckd_orireceiveamount",new BigDecimal(0),0);
|
|
|
}
|
|
|
}else {
|
|
|
DynamicObjectCollection accountentry = this.getModel().getEntryEntity("accountentry");
|
|
|
DynamicObject dynamicObject = accountentry.get(0);
|
|
|
if(dynamicObject!=null){
|
|
|
- String orireceiveamount = this.getModel().getValue("orireceiveamount", 0).toString();
|
|
|
+ String orireceiveamount = this.getModel().getValue("nckd_orireceiveamount", 0).toString();
|
|
|
BigDecimal bigDecimal2 = new BigDecimal(orireceiveamount);
|
|
|
if(accountentry.size()==1){
|
|
|
bigDecimal=bigDecimal.subtract(bigDecimal1);
|
|
|
- this.getModel().setValue("orireceiveamount",bigDecimal,0);
|
|
|
+ this.getModel().setValue("nckd_orireceiveamount",bigDecimal,0);
|
|
|
}else{
|
|
|
BigDecimal bigDecimal3 = new BigDecimal(0);
|
|
|
for(int i=0;i<accountentry.size();i++){
|
|
|
DynamicObject dynamicObjects = accountentry.get(i);
|
|
|
- BigDecimal nckdUnexporiusedamount = dynamicObjects.getBigDecimal("orireceiveamount");
|
|
|
+ BigDecimal nckdUnexporiusedamount = dynamicObjects.getBigDecimal("nckd_orireceiveamount");
|
|
|
if(i>0){
|
|
|
bigDecimal3=bigDecimal3.add(nckdUnexporiusedamount);
|
|
|
}
|
|
@@ -287,9 +285,9 @@ public class CostAllocationEditPlugin extends AbstractListPlugin implements Plug
|
|
|
BigDecimal con1=bigDecimal.subtract(bigDecimal3);//收款信息第一行的金额
|
|
|
con1=con1.subtract(bigDecimal1);
|
|
|
if(con1.compareTo(BigDecimal.ZERO) > 0){
|
|
|
- this.getModel().setValue("orireceiveamount",con1,0);
|
|
|
+ this.getModel().setValue("nckd_orireceiveamount",con1,0);
|
|
|
}else {
|
|
|
- this.getModel().setValue("orireceiveamount",new BigDecimal(0),0);
|
|
|
+ this.getModel().setValue("nckd_orireceiveamount",new BigDecimal(0),0);
|
|
|
}
|
|
|
}
|
|
|
|