|
|
@@ -22,9 +22,8 @@ public class twriteoffbill extends PaoCust {
|
|
|
}
|
|
|
PaoSetRemote ficashbillSet = getPaoSet("ficashbill");
|
|
|
if (!ficashbillSet.isEmpty()) {
|
|
|
- double famount = ficashbillSet.getPao(0).getDouble("famount");
|
|
|
- double fwriteoffamount = ficashbillSet.getPao(0).getDouble("fwriteoffamount");
|
|
|
- setValue("funwriteoffamount", Math.add(famount, -fwriteoffamount), 11L);
|
|
|
+ double funwriteoffamount = ficashbillSet.getPao(0).getDouble("funwriteoffamount");
|
|
|
+ setValue("funwriteoffamount", funwriteoffamount, 11L);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -207,13 +206,6 @@ public class twriteoffbill extends PaoCust {
|
|
|
setValue("funwriteoffamount", 0, 11L);
|
|
|
setValue("fwriteoffamount", 0, 11L);
|
|
|
setValue("faccclsnum", "", 11L);
|
|
|
- } else {
|
|
|
- PaoSetRemote ficashbillSet = getPaoSet("ficashbill");
|
|
|
- if (!ficashbillSet.isEmpty()) {
|
|
|
- double funwriteoffamount = ficashbillSet.getPao(0).getDouble("funwriteoffamount");
|
|
|
- setValue("funwriteoffamount", funwriteoffamount, 11L);
|
|
|
- setValue("fwriteoffamount", funwriteoffamount, 11L);
|
|
|
- }
|
|
|
}
|
|
|
} else if ("FAGENTNUM".equals(fieldname)) {
|
|
|
setValue("ficashbillnum", "", 11L);
|