diff --git a/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx.cs b/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx.cs index 4a7a9d0..d6a1a66 100644 --- a/SCP/Views/SupplierData/SCP_RECEIVE_LIST.aspx.cs +++ b/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(); }