From 41b2674a1c90335efcc0805e13d97afa85c73b87 Mon Sep 17 00:00:00 2001 From: Prasad <prasad@vtiger.com> Date: Thu, 25 Apr 2024 15:23:29 +0530 Subject: [PATCH] Fixes #1607: Shipping tax for Quotes,SO,PO decimal instead of int --- modules/Migration/schema/540_to_600RC.php | 2 +- modules/Migration/schema/811_to_812.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/Migration/schema/540_to_600RC.php b/modules/Migration/schema/540_to_600RC.php index 96054ff69..f7bda04ee 100644 --- a/modules/Migration/schema/540_to_600RC.php +++ b/modules/Migration/schema/540_to_600RC.php @@ -1551,7 +1551,7 @@ foreach ($inventoryModules as $key => $moduleName) { $field->displaytype = '5'; $field->masseditable = '0'; $field->quickcreate = '0'; - $field->columntype = 'INT(11)'; + $field->columntype = 'DECIMAL(25,3)'; $blockInstance->addField($field); } diff --git a/modules/Migration/schema/811_to_812.php b/modules/Migration/schema/811_to_812.php index 795ce6e92..d0315444b 100644 --- a/modules/Migration/schema/811_to_812.php +++ b/modules/Migration/schema/811_to_812.php @@ -36,4 +36,9 @@ if (defined('VTIGER_UPGRADE')) { $db->pquery("ALTER TABLE vtiger_products MODIFY COLUMN productname VARCHAR(255)", array()); $db->pquery("ALTER TABLE vtiger_service MODIFY COLUMN servicename VARCHAR(255)", array()); + // Shipping & Handling tax column data-type should be consistent (for Invoice fixed in 660 migration). + $db->pquery('ALTER TABLE vtiger_salesorder MODIFY s_h_percent DECIMAL(25,3)', array()); + $db->pquery('ALTER TABLE vtiger_purchaseorder MODIFY s_h_percent DECIMAL(25,3)', array()); + $db->pquery('ALTER TABLE vtiger_quotes MODIFY s_h_percent DECIMAL(25,3)', array()); + } -- GitLab