From 5c0be053e7c9080b266dc95c36e114b2e1793cbe Mon Sep 17 00:00:00 2001 From: gww Date: Tue, 15 May 2018 12:13:37 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../B3ButcherManageExport/NC_/StatPayToNc_/StatPayToNcList.cs | 1 + .../BL/NC/script/大红门结算单导NC凭证.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/BWP.B3ButcherManageExport.Web/Pages/B3ButcherManageExport/NC_/StatPayToNc_/StatPayToNcList.cs b/BWP.B3ButcherManageExport.Web/Pages/B3ButcherManageExport/NC_/StatPayToNc_/StatPayToNcList.cs index 7570778..7d44ac1 100644 --- a/BWP.B3ButcherManageExport.Web/Pages/B3ButcherManageExport/NC_/StatPayToNc_/StatPayToNcList.cs +++ b/BWP.B3ButcherManageExport.Web/Pages/B3ButcherManageExport/NC_/StatPayToNc_/StatPayToNcList.cs @@ -84,6 +84,7 @@ namespace BWP.Web.Pages.B3ButcherManageExport.NC_.StatPayToNc_ AddDFBrowseGridColumn(grid, "AccountingUnit_Name"); AddDFBrowseGridColumn(grid, "Department_Name"); AddDFBrowseGridColumn(grid, "Supplier_Name"); + AddDFBrowseGridColumn(grid, "Money"); AddDFBrowseGridColumn(grid, "Employee_Name"); AddDFBrowseGridColumn(grid, "CheckUser_Name"); AddDFBrowseGridColumn(grid, "Remark"); diff --git a/BWP.B3ButcherManageExport/BL/NC/script/大红门结算单导NC凭证.py b/BWP.B3ButcherManageExport/BL/NC/script/大红门结算单导NC凭证.py index 6846a15..4655c59 100644 --- a/BWP.B3ButcherManageExport/BL/NC/script/大红门结算单导NC凭证.py +++ b/BWP.B3ButcherManageExport/BL/NC/script/大红门结算单导NC凭证.py @@ -23,6 +23,8 @@ class BLMethodEvents(BLMethodEventsBase): voucher2 = NcVoucher(); for dmo in dmos: + if dmo.Money is None or dmo.Money==0: + self.error("结算单No."+str(dmo.ID)+" 金额为0或为空"); voucher2.B2BillIDs.Add(dmo.ID); statePay = dmos[0];