|
|
@@ -207,6 +207,13 @@ 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);
|