narsil/Sql/Service Tax Change/2. Update Taxes.sql

41 lines
1.3 KiB
MySQL
Raw Normal View History

select distinct vat from entities_inventories
select * from entities_taxes
update entities_inventories set issctaxable = 0, servicetax = 0, vat = 0
where vat = 0.00000
update entities_inventories set issctaxable = 1, servicetax = 0, vat = 0.13125
where vat = 0.13125
update entities_inventories set issctaxable = 1, servicetax = 0, vat = 0.26250
where vat = 0.26250
update entities_inventories set issctaxable = 0, servicetax = 0.03708, vat = 0.13125
where vat = 0.15303
update entities_inventories set issctaxable = 0, servicetax = 0.03708, vat = 0.1575
where vat = 0.17690
update entities_inventories set issctaxable = 0, servicetax = 0.0309, vat = 0.13125
where vat = 0.14741
update entities_inventories set issctaxable = 0, servicetax = 0.0309, vat = 0.2625
where vat = 0.26673
update entities_inventories set issctaxable = 0, servicetax = 0.03, vat = 0.13125
where vat = 0.14659
update entities_inventories set issctaxable = 0, servicetax = 0.03, vat = 0.2625
where vat = 0.26591
UPDATE Entities_Taxes SET Name = 'VAT on Food 12.5%', Rate = .13125 WHERE TaxID = 1
UPDATE Entities_Taxes SET Name = 'VAT on Liquor 15%', Rate = .1575 WHERE TaxID = 2
UPDATE Entities_Taxes SET Name = 'Cental Govt. ST 12%', Rate = 0.03708 WHERE TaxID = 3
UPDATE Entities_Taxes SET Name = 'Tax Paid / Free', Rate = 0 WHERE TaxID = 4