narsil/Sql/Service Tax Change/2. Update Taxes.sql
unknown 2d1030abf6 Scripts to transition database to new version.
Changed inventory and product entities to split Vat and Service Tax and IsScTaxable.
Added MessageBox on startup to inform about Debug Mode.
Updated ProductForm for the change.
Work still needs to be done on Thermal Printing where the hack for VAT on Food and VAT on Liqour is still there.
Now No Service Tax on Delivery Works as promised.
2012-04-08 17:58:15 +05:30

41 lines
1.3 KiB
SQL

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