Browse Source

锦州代码修改

master
TML 4 years ago
parent
commit
e045fc98fb
  1. 10
      SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx.cs

10
SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx.cs

@ -120,7 +120,7 @@ namespace SCP.SupplierData
if (!string.IsNullOrEmpty(_ls.Site) && !string.IsNullOrEmpty(_venderId))
{
var _vender = SCP_TB_VENDER_CONTROLLER.GetVender(_venderId, _ls.Site);
if (_vender.Tax != null)
if (_vender.Tax > 0 && _vender.Tax != null)
{
lbTaxRate.SelectedValue = _vender.Tax.ToString();
}
@ -139,13 +139,13 @@ namespace SCP.SupplierData
if (!string.IsNullOrEmpty(_ls.Site) && !string.IsNullOrEmpty(_venderId))
{
var _vender = SCP_TB_VENDER_CONTROLLER.GetVender(_venderId, _ls.Site);
if (_vender.Tax != null)
if (_vender.Tax >0&&_vender.Tax!=null)
{
lbTaxRate.Text = _vender.Tax.ToString();
lbTaxRate.SelectedValue = _vender.Tax.ToString();
}
else
{
lbTaxRate.SelectedValue = _vender.Tax.ToString();
lbTaxRate.SelectedValue = "0";
}
}
}
@ -420,7 +420,7 @@ namespace SCP.SupplierData
if (!string.IsNullOrEmpty(_ls.Site) && !string.IsNullOrEmpty(_venderId))
{
var _vender = SCP_TB_VENDER_CONTROLLER.GetVender(_venderId, _ls.Site);
if (_vender.Tax != null)
if (_vender.Tax > 0 && _vender.Tax != null)
{
lbTaxRate.SelectedValue = _vender.Tax.ToString();
}

Loading…
Cancel
Save