mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-03-22 00:41:22 -04:00
Merge pull request #1114 from RuleDomain/this-fixes-add-item-kit
This will fix the issue with the PHP error when adding a new item kit…
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user