This will fix the issue with the PHP error when adding a new item kit. It also initializes the line_sequence config option.

This commit is contained in:
Steve Ireland
2017-02-02 23:25:04 -05:00
parent e7cbacaae6
commit 4cda5343aa
4 changed files with 6 additions and 0 deletions

View File

@@ -89,6 +89,7 @@ class Item_kits extends Secure_Controller
{
$info->price_option = '0';
$info->print_option = '0';
$info->kit_item_id = 0;
}
foreach(get_object_vars($info) as $property => $value)
{

View File

@@ -20,6 +20,9 @@ ALTER TABLE `ospos_sales_items`
ALTER TABLE `ospos_sales_suspended_items`
ADD COLUMN `print_option` TINYINT(2) NOT NULL DEFAULT 0;
INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
('line_sequence', '0');
-- alter pic_id field, to rather contain a file name
ALTER TABLE `ospos_items` CHANGE `pic_id` `pic_filename` VARCHAR(255);

View File

@@ -44,6 +44,7 @@ INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
('receipt_show_description', '1'),
('receipt_show_serialnumber', '1'),
('invoice_enable', '1'),
('line_sequence', '0'),
('recv_invoice_format', '$CO'),
('sales_invoice_format', '$CO'),
('invoice_email_message', 'Dear $CU, In attachment the receipt for sale $INV'),

View File

@@ -44,6 +44,7 @@ INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
('receipt_show_description', '1'),
('receipt_show_serialnumber', '1'),
('invoice_enable', '1'),
('line_sequence', '0'),
('recv_invoice_format', '$CO'),
('sales_invoice_format', '$CO'),
('invoice_email_message', 'Dear $CU, In attachment the receipt for sale $INV'),