diff --git a/DSWeb/Areas/Account/Viewsjs/Chfee_lock/Chfee_lock.js b/DSWeb/Areas/Account/Viewsjs/Chfee_lock/Chfee_lock.js index 43efa882..8cae8ac4 100644 --- a/DSWeb/Areas/Account/Viewsjs/Chfee_lock/Chfee_lock.js +++ b/DSWeb/Areas/Account/Viewsjs/Chfee_lock/Chfee_lock.js @@ -402,6 +402,29 @@ Ext.extend(Shipping.MsChfeelock, Ext.Panel, { else return ''; } + }, + { + sortable: true, + id: '', + align: 'center', + dataIndex: 'TTLINVDR', + header: '应收开票', + width: 60, + renderer: function (value, cellmeta, record) { + var ttldr = record.data.TTLDR; + if (value == 0) + return '未开票'; + else if (value == ttldr) { + cellmeta.tdCls = 'feestatus_pass'; + return '已开票'; + } + else if (value != ttldr) { + cellmeta.tdCls = 'feestatus_refer'; + return '部分开票'; + } + else + return ''; + } }, { sortable: true, dataIndex: 'OPLBNAME', diff --git a/DSWeb/Areas/MvcShipping/Controllers/MsRptInvTotalController.cs b/DSWeb/Areas/MvcShipping/Controllers/MsRptInvTotalController.cs index 1ed6ba6c..31808a10 100644 --- a/DSWeb/Areas/MvcShipping/Controllers/MsRptInvTotalController.cs +++ b/DSWeb/Areas/MvcShipping/Controllers/MsRptInvTotalController.cs @@ -99,11 +99,11 @@ namespace DSWeb.MvcShipping.Controllers { strSql.Append(" and ISNULL(F.INVOICE,0)<>F.AMOUNT and ISNULL(F.ISINVOICE,0)=0 "); } - else if (feerang == "3") + else if (feerang == "3"|| feerang == "9") { strSql.Append(" and ISNULL(F.INVOICE,0)<>0 AND ((F.AMOUNT>0 and ISNULL(F.INVOICE,0)>ISNULL(F.SETTLEMENT,0)) or (F.AMOUNT<0 and ISNULL(F.INVOICE,0)0 and ISNULL(F.ISINVOICE,0)=0 AND ((F.AMOUNT>0 and ISNULL(F.SETTLEMENT,0)>ISNULL(F.INVOICE,0)) or (F.AMOUNT<0 and ISNULL(F.SETTLEMENT,0)F.AMOUNT and ISNULL(F.ISINVOICE,0)=0 "); } - else if (feerang == "3") + else if (feerang == "3" || feerang == "9") { strSql.Append(" and ISNULL(F.INVOICE,0)<>0 AND ((F.AMOUNT>0 and ISNULL(F.INVOICE,0)>ISNULL(F.SETTLEMENT,0)) or (F.AMOUNT<0 and ISNULL(F.INVOICE,0)0 and ISNULL(F.ISINVOICE,0)=0 AND ((F.AMOUNT>0 and ISNULL(F.SETTLEMENT,0)>ISNULL(F.INVOICE,0)) or (F.AMOUNT<0 and ISNULL(F.SETTLEMENT,0)F.AMOUNT and ISNULL(F.ISINVOICE,0)=0 "); } - else if (feerang == "3") + else if (feerang == "3" || feerang == "9") { strSql.Append(" and ISNULL(F.INVOICE,0)<>0 AND ((F.AMOUNT>0 and ISNULL(F.INVOICE,0)>ISNULL(F.SETTLEMENT,0)) or (F.AMOUNT<0 and ISNULL(F.INVOICE,0)0 and ISNULL(F.ISINVOICE,0)=0 AND ((F.AMOUNT>0 and ISNULL(F.SETTLEMENT,0)>ISNULL(F.INVOICE,0)) or (F.AMOUNT<0 and ISNULL(F.SETTLEMENT,0)F.AMOUNT and ISNULL(F.ISINVOICE,0)=0 "); } - else if (feerang == "3") + else if (feerang == "3" || feerang == "9") { strSql.Append(" and ISNULL(F.INVOICE,0)<>0 AND ((F.AMOUNT>0 and ISNULL(F.INVOICE,0)>ISNULL(F.SETTLEMENT,0)) or (F.AMOUNT<0 and ISNULL(F.INVOICE,0)0 and ISNULL(F.ISINVOICE,0)=0 AND ((F.AMOUNT>0 and ISNULL(F.SETTLEMENT,0)>ISNULL(F.INVOICE,0)) or (F.AMOUNT<0 and ISNULL(F.SETTLEMENT,0) 0) { return '' + lsValue + ''; } } + else { return value; } + } catch (e) { return value; } + //value = usMoney(value, 2, '', true); + return value; + }, + align: 'right', + summaryType: 'sum', + summaryRenderer: function (value, cellmeta, record, rowIndex, columnIndex, store) { + value = usMoney(value, 2, '', true); + return value; + }, + width: 80 + }, { sortable: true, dataIndex: 'RMBDR', diff --git a/DSWeb/Areas/MvcShipping/Viewsjs/WMSNew/WMSNewINEdit.js b/DSWeb/Areas/MvcShipping/Viewsjs/WMSNew/WMSNewINEdit.js index 804ba39a..79b093fe 100644 --- a/DSWeb/Areas/MvcShipping/Viewsjs/WMSNew/WMSNewINEdit.js +++ b/DSWeb/Areas/MvcShipping/Viewsjs/WMSNew/WMSNewINEdit.js @@ -2855,7 +2855,9 @@ Ext.extend(Shipping.WMSNewINEdit, Ext.Panel, { var jianshu2 = store.data.items.length > 0 ? store.data.items[store.data.items.length - 1].data.JIANSHU2 : 0; var zongjianshu = store.data.items.length > 0 ? store.data.items[store.data.items.length - 1].data.GOODSPACK : 0; var goodsmodel = store.data.items.length > 0 ? store.data.items[store.data.items.length - 1].data.GOODSMODEL : ''; - var countryid = store.data.items.length > 0 ? store.data.items[store.data.items.length - 1].data.COUNTRYID : ''; + var countryid = COUNTRYIDSTR; + if (countryid=='') + countryid = store.data.items.length > 0 ? store.data.items[store.data.items.length - 1].data.COUNTRYID : ''; var goodskgs = store.data.items.length > 0 ? store.data.items[store.data.items.length - 1].data.GOODSKGS : 0; @@ -2867,7 +2869,7 @@ Ext.extend(Shipping.WMSNewINEdit, Ext.Panel, { //var countryid = store.data.items.length > 0 ? store.data.items[store.data.items.length - 1].data.COUNTRYID : ''; //var country = store.data.items.length > 0 ? store.data.items[store.data.items.length - 1].data.COUNTRY : ''; var country = COUNTRYNAMESTR; - var countryid = COUNTRYIDSTR; + var record = null; var areaname = data.AREANAME;