Set default receivings value for items to 1 in database

Fix item quantity save
This commit is contained in:
jekkos-t520
2014-11-03 17:49:18 +01:00
parent 7a46078734
commit d43015e8c9
3 changed files with 3 additions and 3 deletions

View File

@@ -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 **/

View File

@@ -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';

View File

@@ -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,