|
@@ -41,9 +41,15 @@ public class TravelCollectionEntryAmtFromPlugin extends AbstractListPlugin imple
|
|
}
|
|
}
|
|
BigDecimal con1=bigDecimal.subtract(bigDecimal3);//收款信息第一行的金额
|
|
BigDecimal con1=bigDecimal.subtract(bigDecimal3);//收款信息第一行的金额
|
|
if(con1.compareTo(BigDecimal.ZERO) > 0){
|
|
if(con1.compareTo(BigDecimal.ZERO) > 0){
|
|
- this.getModel().setValue("nckd_orireceiveamount",con1,0);
|
|
|
|
|
|
+ DynamicObjectCollection accountentry1 = this.getModel().getEntryEntity("accountentry");
|
|
|
|
+ if(accountentry1.size()==1){
|
|
|
|
+ this.getModel().setValue("nckd_orireceiveamount",con1,0);
|
|
|
|
+ }
|
|
}else {
|
|
}else {
|
|
- this.getModel().setValue("nckd_orireceiveamount",new BigDecimal(0),0);
|
|
|
|
|
|
+ DynamicObjectCollection accountentry1 = this.getModel().getEntryEntity("accountentry");
|
|
|
|
+ if(accountentry1.size()==1){
|
|
|
|
+ this.getModel().setValue("nckd_orireceiveamount",new BigDecimal(0),0);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -92,9 +98,15 @@ public class TravelCollectionEntryAmtFromPlugin extends AbstractListPlugin imple
|
|
BigDecimal con1=bigDecimal.subtract(bigDecimal3);//收款信息第一行的金额
|
|
BigDecimal con1=bigDecimal.subtract(bigDecimal3);//收款信息第一行的金额
|
|
con1=con1.subtract(bigDecimal1);
|
|
con1=con1.subtract(bigDecimal1);
|
|
if(con1.compareTo(BigDecimal.ZERO) > 0){
|
|
if(con1.compareTo(BigDecimal.ZERO) > 0){
|
|
- this.getModel().setValue("nckd_orireceiveamount",con1,0);
|
|
|
|
|
|
+ DynamicObjectCollection accountentry1 = this.getModel().getEntryEntity("accountentry");
|
|
|
|
+ if(accountentry1.size()==1){
|
|
|
|
+ this.getModel().setValue("nckd_orireceiveamount",con1,0);
|
|
|
|
+ }
|
|
}else {
|
|
}else {
|
|
- this.getModel().setValue("nckd_orireceiveamount",new BigDecimal(0),0);
|
|
|
|
|
|
+ DynamicObjectCollection accountentry1 = this.getModel().getEntryEntity("accountentry");
|
|
|
|
+ if(accountentry1.size()==1){
|
|
|
|
+ this.getModel().setValue("nckd_orireceiveamount",new BigDecimal(0),0);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -169,9 +181,15 @@ public class TravelCollectionEntryAmtFromPlugin extends AbstractListPlugin imple
|
|
BigDecimal con1=bigDecimal.subtract(bigDecimal3);//收款信息第一行的金额
|
|
BigDecimal con1=bigDecimal.subtract(bigDecimal3);//收款信息第一行的金额
|
|
con1=con1.subtract(bigDecimal1);
|
|
con1=con1.subtract(bigDecimal1);
|
|
if(con1.compareTo(BigDecimal.ZERO) > 0){
|
|
if(con1.compareTo(BigDecimal.ZERO) > 0){
|
|
- this.getModel().setValue("nckd_orireceiveamount",con1,0);
|
|
|
|
|
|
+ DynamicObjectCollection accountentry1 = this.getModel().getEntryEntity("accountentry");
|
|
|
|
+ if(accountentry1.size()==1){
|
|
|
|
+ this.getModel().setValue("nckd_orireceiveamount",con1,0);
|
|
|
|
+ }
|
|
}else {
|
|
}else {
|
|
- this.getModel().setValue("nckd_orireceiveamount",new BigDecimal(0),0);
|
|
|
|
|
|
+ DynamicObjectCollection accountentry1 = this.getModel().getEntryEntity("accountentry");
|
|
|
|
+ if(accountentry1.size()==1){
|
|
|
|
+ this.getModel().setValue("nckd_orireceiveamount",new BigDecimal(0),0);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -242,10 +260,16 @@ public class TravelCollectionEntryAmtFromPlugin extends AbstractListPlugin imple
|
|
|
|
|
|
BigDecimal con1 = bigDecimal.subtract(bigDecimal3);//收款信息第一行的金额
|
|
BigDecimal con1 = bigDecimal.subtract(bigDecimal3);//收款信息第一行的金额
|
|
con1 = con1.subtract(bigDecimal1);
|
|
con1 = con1.subtract(bigDecimal1);
|
|
- if (con1.compareTo(BigDecimal.ZERO) > 0) {
|
|
|
|
- this.getModel().setValue("nckd_orireceiveamount", con1, 0);
|
|
|
|
- } else {
|
|
|
|
- this.getModel().setValue("nckd_orireceiveamount", new BigDecimal(0), 0);
|
|
|
|
|
|
+ if(con1.compareTo(BigDecimal.ZERO) > 0){
|
|
|
|
+ DynamicObjectCollection accountentry1 = this.getModel().getEntryEntity("accountentry");
|
|
|
|
+ if(accountentry1.size()==1){
|
|
|
|
+ this.getModel().setValue("nckd_orireceiveamount",con1,0);
|
|
|
|
+ }
|
|
|
|
+ }else {
|
|
|
|
+ DynamicObjectCollection accountentry1 = this.getModel().getEntryEntity("accountentry");
|
|
|
|
+ if(accountentry1.size()==1){
|
|
|
|
+ this.getModel().setValue("nckd_orireceiveamount",new BigDecimal(0),0);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -317,10 +341,16 @@ public class TravelCollectionEntryAmtFromPlugin extends AbstractListPlugin imple
|
|
|
|
|
|
BigDecimal con1 = bigDecimal.subtract(bigDecimal3);//收款信息第一行的金额
|
|
BigDecimal con1 = bigDecimal.subtract(bigDecimal3);//收款信息第一行的金额
|
|
con1 = con1.subtract(bigDecimal1);
|
|
con1 = con1.subtract(bigDecimal1);
|
|
- if (con1.compareTo(BigDecimal.ZERO) > 0) {
|
|
|
|
- this.getModel().setValue("nckd_orireceiveamount", con1, 0);
|
|
|
|
- } else {
|
|
|
|
- this.getModel().setValue("nckd_orireceiveamount", new BigDecimal(0), 0);
|
|
|
|
|
|
+ if(con1.compareTo(BigDecimal.ZERO) > 0){
|
|
|
|
+ DynamicObjectCollection accountentry1 = this.getModel().getEntryEntity("accountentry");
|
|
|
|
+ if(accountentry1.size()==1){
|
|
|
|
+ this.getModel().setValue("nckd_orireceiveamount",con1,0);
|
|
|
|
+ }
|
|
|
|
+ }else {
|
|
|
|
+ DynamicObjectCollection accountentry1 = this.getModel().getEntryEntity("accountentry");
|
|
|
|
+ if(accountentry1.size()==1){
|
|
|
|
+ this.getModel().setValue("nckd_orireceiveamount",new BigDecimal(0),0);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -392,14 +422,18 @@ public class TravelCollectionEntryAmtFromPlugin extends AbstractListPlugin imple
|
|
|
|
|
|
BigDecimal con1 = bigDecimal.subtract(bigDecimal3);//收款信息第一行的金额
|
|
BigDecimal con1 = bigDecimal.subtract(bigDecimal3);//收款信息第一行的金额
|
|
con1 = con1.subtract(bigDecimal1);
|
|
con1 = con1.subtract(bigDecimal1);
|
|
- if (con1.compareTo(BigDecimal.ZERO) > 0) {
|
|
|
|
- this.getModel().setValue("nckd_orireceiveamount", con1, 0);
|
|
|
|
- } else {
|
|
|
|
- this.getModel().setValue("nckd_orireceiveamount", new BigDecimal(0), 0);
|
|
|
|
|
|
+ if(con1.compareTo(BigDecimal.ZERO) > 0){
|
|
|
|
+ DynamicObjectCollection accountentry1 = this.getModel().getEntryEntity("accountentry");
|
|
|
|
+ if(accountentry1.size()==1){
|
|
|
|
+ this.getModel().setValue("nckd_orireceiveamount",con1,0);
|
|
|
|
+ }
|
|
|
|
+ }else {
|
|
|
|
+ DynamicObjectCollection accountentry1 = this.getModel().getEntryEntity("accountentry");
|
|
|
|
+ if(accountentry1.size()==1){
|
|
|
|
+ this.getModel().setValue("nckd_orireceiveamount",new BigDecimal(0),0);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|