mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-03-06 08:11:12 -05:00
Fixes a couple of problems with sales tax migration plus a couple of other problems.
This commit is contained in:
@@ -148,6 +148,3 @@ ALTER TABLE `ospos_expenses`
|
||||
INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
|
||||
('default_receivings_discount_type', '0'),
|
||||
('default_receivings_discount', '0');
|
||||
|
||||
ALTER TABLE `ospos_suppliers`
|
||||
CHANGE COLUMN `tax_id` `tax_id` VARCHAR(32) NULL;
|
||||
@@ -74,7 +74,7 @@ CREATE TABLE IF NOT EXISTS `ospos_tax_jurisdictions` (
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
|
||||
|
||||
ALTER TABLE `ospos_suppliers`
|
||||
ADD COLUMN `tax_id` varchar(32) NOT NULL DEFAULT '' AFTER `account_number`;
|
||||
ADD COLUMN `tax_id` varchar(32) DEFAULT NULL AFTER `account_number`;
|
||||
|
||||
ALTER TABLE `ospos_tax_categories`
|
||||
ADD COLUMN `deleted` int(1) NOT NULL DEFAULT 0 AFTER `tax_group_sequence`;
|
||||
|
||||
6
application/migrations/sqlscripts/3.3.0_indiagst1.sql
Normal file
6
application/migrations/sqlscripts/3.3.0_indiagst1.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
UPDATE `ospos_suppliers`
|
||||
SET `tax_id` = ''
|
||||
WHERE `tax_id`IS NULL;
|
||||
|
||||
ALTER TABLE `ospos_suppliers`
|
||||
CHANGE COLUMN `tax_id` `tax_id` varchar(32) NOT NULL DEFAULT '';
|
||||
5
application/migrations/sqlscripts/3.3.0_indiagst2.sql
Normal file
5
application/migrations/sqlscripts/3.3.0_indiagst2.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
-- This is to cleanup any orphaned tax migration tables
|
||||
|
||||
DROP TABLE IF EXISTS `ospos_tax_codes_backup`;
|
||||
DROP TABLE IF EXISTS `ospos_sales_taxes_backup`;
|
||||
DROP TABLE IF EXISTS `ospos_tax_code_rates_backup`;
|
||||
Reference in New Issue
Block a user