From 284a73f41d40da64378fe15d80fffcbf7f6157b1 Mon Sep 17 00:00:00 2001 From: FrancescoUK Date: Sun, 13 Nov 2016 11:25:31 +0000 Subject: [PATCH] Add missing Receivings default item_location value in phppos_migrate.sql script --- database/migrate_phppos_dist.sql | 4 ++-- database/phppos_migrate.sql | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/database/migrate_phppos_dist.sql b/database/migrate_phppos_dist.sql index 9a675ab6f..dc5b4a4ce 100644 --- a/database/migrate_phppos_dist.sql +++ b/database/migrate_phppos_dist.sql @@ -853,8 +853,8 @@ SELECT `receiving_time`, `supplier_id`, `employee_id`, `comment`, `receiving_id` -- Copy data to table `ospos_receivings_items` -- -INSERT INTO `ospos_receivings_items` (`receiving_id`, `item_id`, `description`, `serialnumber`, `line`, `quantity_purchased`, `item_cost_price`, `item_unit_price`, `discount_percent`) -SELECT `receiving_id`, `item_id`, `description`, `serialnumber`, `line`, `quantity_purchased`, `item_cost_price`, `item_unit_price`, `discount_percent` FROM `phppos`.phppos_receivings_items; +INSERT INTO `ospos_receivings_items` (`receiving_id`, `item_id`, `description`, `serialnumber`, `line`, `quantity_purchased`, `item_cost_price`, `item_unit_price`, `discount_percent`, `item_location`) +SELECT `receiving_id`, `item_id`, `description`, `serialnumber`, `line`, `quantity_purchased`, `item_cost_price`, `item_unit_price`, `discount_percent`, 1 FROM `phppos`.phppos_receivings_items; -- -- Copy data to table `ospos_sales` diff --git a/database/phppos_migrate.sql b/database/phppos_migrate.sql index 1e0e3325e..e8eb03835 100644 --- a/database/phppos_migrate.sql +++ b/database/phppos_migrate.sql @@ -118,8 +118,8 @@ SELECT `receiving_time`, `supplier_id`, `employee_id`, `comment`, `receiving_id` -- Copy data to table `ospos_receivings_items` -- -INSERT INTO `ospos_receivings_items` (`receiving_id`, `item_id`, `description`, `serialnumber`, `line`, `quantity_purchased`, `item_cost_price`, `item_unit_price`, `discount_percent`) -SELECT `receiving_id`, `item_id`, `description`, `serialnumber`, `line`, `quantity_purchased`, `item_cost_price`, `item_unit_price`, `discount_percent` FROM `phppos`.phppos_receivings_items; +INSERT INTO `ospos_receivings_items` (`receiving_id`, `item_id`, `description`, `serialnumber`, `line`, `quantity_purchased`, `item_cost_price`, `item_unit_price`, `discount_percent`, `item_location`) +SELECT `receiving_id`, `item_id`, `description`, `serialnumber`, `line`, `quantity_purchased`, `item_cost_price`, `item_unit_price`, `discount_percent`, 1 FROM `phppos`.phppos_receivings_items; -- -- Copy data to table `ospos_sales`