mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-24 16:28:40 -04:00
Set default receivings value for items to 1 in database
Fix item quantity save
This commit is contained in:
@@ -305,6 +305,7 @@ class Items extends Secure_area implements iData_controller
|
||||
'cost_price'=>$this->input->post('cost_price'),
|
||||
'unit_price'=>$this->input->post('unit_price'),
|
||||
'reorder_level'=>$this->input->post('reorder_level'),
|
||||
'receiving_quantity'=>$this->input->post('receiving_quantity'),
|
||||
'allow_alt_description'=>$this->input->post('allow_alt_description'),
|
||||
'is_serialized'=>$this->input->post('is_serialized'),
|
||||
'deleted'=>$this->input->post('is_deleted'), /** Parq 131215 **/
|
||||
|
||||
@@ -101,5 +101,4 @@ ALTER TABLE `ospos_sales_suspended`
|
||||
|
||||
-- add invoice_number column to receivings table
|
||||
ALTER TABLE `ospos_items`
|
||||
ADD COLUMN `receivings_quantity` int(11) DEFAULT '0',
|
||||
ADD UNIQUE `invoice_number` (`invoice_number`);
|
||||
ADD COLUMN `receiving_quantity` int(11) DEFAULT '1';
|
||||
@@ -144,7 +144,7 @@ CREATE TABLE `ospos_items` (
|
||||
`unit_price` decimal(15,2) NOT NULL,
|
||||
`quantity` decimal(15,2) NOT NULL DEFAULT '0',
|
||||
`reorder_level` decimal(15,2) NOT NULL DEFAULT '0',
|
||||
`receivings_quantity` int(11) NOT NULL DEFAULT '0',
|
||||
`receivings_quantity` int(11) NOT NULL DEFAULT '1',
|
||||
`item_id` int(10) NOT NULL AUTO_INCREMENT,
|
||||
`allow_alt_description` tinyint(1) NOT NULL,
|
||||
`is_serialized` tinyint(1) NOT NULL,
|
||||
|
||||
Reference in New Issue
Block a user