Explorar o código

收入凭证实现对冲功能

沈静伟 %!s(int64=4) %!d(string=hai) anos
pai
achega
2cb83a1c34
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      src/apps/twriteoffbill/twriteoffbill.java

+ 7 - 0
src/apps/twriteoffbill/twriteoffbill.java

@@ -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);