UPDATE tbloptions_static SET value = 'global' WHERE name = 'default_estimate_tax_type';
UPDATE tbloptions_static SET value = 'global' WHERE name = 'default_detail_estimate_tax_type';
UPDATE tbloptions_static SET value = 'global' WHERE name = 'default_invoice_tax_type';
UPDATE tbloptions_static SET value = 'before_tax' WHERE name = 'default_estimate_discount_type';
UPDATE tbloptions_static SET value = 'before_tax' WHERE name = 'default_detail_estimate_discount_type';
UPDATE tbloptions_static SET value = 'before_tax' WHERE name = 'default_invoice_discount_type';