mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-24 08:20:54 -04:00
Further review and fixes to input->post(...) (#120)
This commit is contained in:
@@ -44,7 +44,7 @@ class Items extends Secure_area implements iData_controller
|
||||
|
||||
function find_item_info()
|
||||
{
|
||||
$item_number=$this->input->post('scan_item_number');
|
||||
$item_number = $this->input->post('scan_item_number');
|
||||
echo json_encode($this->Item->find_item_info($item_number));
|
||||
}
|
||||
|
||||
@@ -391,8 +391,8 @@ class Items extends Secure_area implements iData_controller
|
||||
'name'=>$this->input->post('name'),
|
||||
'description'=>$this->input->post('description'),
|
||||
'category'=>$this->input->post('category'),
|
||||
'supplier_id'=>$this->input->post('supplier_id')=='' ? null : $this->input->post('supplier_id'),
|
||||
'item_number'=>$this->input->post('item_number')=='' ? null : $this->input->post('item_number'),
|
||||
'supplier_id'=>$this->input->post('supplier_id') == '' ? null : $this->input->post('supplier_id'),
|
||||
'item_number'=>$this->input->post('item_number') == '' ? null : $this->input->post('item_number'),
|
||||
'cost_price'=>$this->input->post('cost_price'),
|
||||
'unit_price'=>$this->input->post('unit_price'),
|
||||
'reorder_level'=>$this->input->post('reorder_level'),
|
||||
|
||||
Reference in New Issue
Block a user