Przeglądaj źródła

收入凭证实现对冲功能

沈静伟 4 lat temu
rodzic
commit
2cb83a1c34
1 zmienionych plików z 7 dodań i 0 usunięć
  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("funwriteoffamount", 0, 11L);
                 setValue("fwriteoffamount", 0, 11L);
                 setValue("fwriteoffamount", 0, 11L);
                 setValue("faccclsnum", "", 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)) {
         } else if ("FAGENTNUM".equals(fieldname)) {
             setValue("ficashbillnum", "", 11L);
             setValue("ficashbillnum", "", 11L);