Browse Source

资金模块-核销单

huangx 7 years ago
parent
commit
e21ff8062c
1 changed files with 8 additions and 8 deletions
  1. 8 8
      frontend/saas-web/app/view/money/verification/FormPanel.js

+ 8 - 8
frontend/saas-web/app/view/money/verification/FormPanel.js

@@ -475,14 +475,14 @@ Ext.define('saas.view.money.verification.FormPanel', {
         },
 
         defaultConditions: {
-            receipts_offset_receivable: ['nvl(sl_custid,0)={vc_custid} and nvl(sl_preamount,0)<>0 and nvl(sl_namount,0)<>0',
-                'nvl(sl_custid,0)={vc_custid} and nvl(sl_preamount,0)=0 and nvl(sl_namount,0)<>0'],
-            prepaid_offset_payable: ['nvl(sl_vendid,0)={vc_vendid} and nvl(sl_preamount,0)<>0 and nvl(sl_namount,0)<>0',
-                'nvl(sl_vendid,0)={vc_vendid} and nvl(sl_preamount,0)=0 and nvl(sl_namount,0)<>0'],
-            receivable_offset_payable: ['nvl(sl_custid,0)={vc_custid} and nvl(sl_preamount,0)=0 and nvl(sl_namount,0)<>0',
-                'nvl(sl_vendid,0)={vc_vendid} and nvl(sl_preamount,0)=0 and nvl(sl_namount,0)<>0'],
-            receivable_to_receivable: ['nvl(sl_custid,0)={vc_outcustid} and nvl(sl_preamount,0)=0 and nvl(sl_namount,0)<>0'],
-            payable_to_payable: ['nvl(sl_vendtid,0)={vc_outvendid} and nvl(sl_preamount,0)=0 and nvl(sl_namount,0)<>0']
+            receipts_offset_receivable: ['ifnull(sl_custid,0)={vc_custid} and ifnull(sl_preamount,0)<>0 and ifnull(sl_namount,0)<>0',
+                'ifnull(sl_custid,0)={vc_custid} and ifnull(sl_preamount,0)=0 and ifnull(sl_namount,0)<>0'],
+            prepaid_offset_payable: ['ifnull(sl_vendid,0)={vc_vendid} and ifnull(sl_preamount,0)<>0 and ifnull(sl_namount,0)<>0',
+                'ifnull(sl_vendid,0)={vc_vendid} and ifnull(sl_preamount,0)=0 and ifnull(sl_namount,0)<>0'],
+            receivable_offset_payable: ['ifnull(sl_custid,0)={vc_custid} and ifnull(sl_preamount,0)=0 and ifnull(sl_namount,0)<>0',
+                'ifnull(sl_vendid,0)={vc_vendid} and ifnull(sl_preamount,0)=0 and ifnull(sl_namount,0)<>0'],
+            receivable_to_receivable: ['ifnull(sl_custid,0)={vc_outcustid} and ifnull(sl_preamount,0)=0 and ifnull(sl_namount,0)<>0'],
+            payable_to_payable: ['ifnull(sl_vendtid,0)={vc_outvendid} and ifnull(sl_preamount,0)=0 and ifnull(sl_namount,0)<>0']
         }
     },