Просмотр исходного кода

收入凭证实现对冲功能

沈静伟 4 лет назад
Родитель
Сommit
adb289c6e0
2 измененных файлов с 2 добавлено и 12 удалено
  1. 0 2
      src/apps/ficashbill/ficashbill.java
  2. 2 10
      src/apps/twriteoffbill/twriteoffbill.java

+ 0 - 2
src/apps/ficashbill/ficashbill.java

@@ -581,8 +581,6 @@ public class ficashbill extends PaoCust {
         pao.setValue("fdate", getDate());
         pao.setValue("fagentnum", getString("fagentnum"));
         pao.setValue("ficashbillnum", getString("fbillnum"));
-        pao.setValue("funwriteoffamount", getDouble("funwriteoffamount"));
-        pao.setValue("fwriteoffamount", getDouble("funwriteoffamount"));
         return pao.getUniqueIDValue();
     }
 

+ 2 - 10
src/apps/twriteoffbill/twriteoffbill.java

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