private void SetTaxesForNewTradeInInventory(int inventoryID, object[] objPageDetails) { TaxManager TM = new TaxManager(); ItemDataUtilities IDU = new ItemDataUtilities(); DataTable lTax = TM.ReturnTaxList(objPageDetails); foreach (DataRow TR in lTax.Rows) { bool chargeTax = true; if (TM.CallCheckForLiquorTax(Convert.ToInt32(TR[0]), objPageDetails)) { chargeTax = false; } IDU.CallSaveTaxIDForNewInventoryItem(inventoryID, Convert.ToInt32(TR[0]), chargeTax, objPageDetails); } }
public void SetTaxesForNewInventory(int inventoryID, object[] objPageDetails) { TaxManager TM = new TaxManager(); DataTable lTax = TM.ReturnTaxList(objPageDetails); foreach (DataRow TR in lTax.Rows) { bool chargeTax = true; if (TM.CallCheckForLiquorTax(Convert.ToInt32(TR[0]), objPageDetails)) { chargeTax = false; } if (TM.CallCheckForQuebecSalesTax(Convert.ToInt32(TR[0]), objPageDetails)) { chargeTax = false; } if (TM.CallCheckForRetailSalesTax(Convert.ToInt32(TR[0]), objPageDetails)) { chargeTax = false; } SaveTaxIDForNewInventoryItem(inventoryID, Convert.ToInt32(TR[0]), chargeTax, objPageDetails); } }