mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-07-16 01:42:44 -04:00
Fix invoice number insert in receivings
This commit is contained in:
@@ -203,7 +203,7 @@ class Receivings extends Secure_area
|
||||
$data['invoice_number']=$invoice_number;
|
||||
$data['payment_type']=$this->input->post('payment_type');
|
||||
//SAVE receiving to database
|
||||
$data['receiving_id']='RECV '.$this->Receiving->save($data['cart'], $supplier_id,$employee_id,$comment,$payment_type,$data['stock_location'],$invoice_number);
|
||||
$data['receiving_id']='RECV '.$this->Receiving->save($data['cart'], $supplier_id,$employee_id,$comment,$invoice_number,$payment_type,$data['stock_location']);
|
||||
|
||||
if ($data['receiving_id'] == 'RECV -1')
|
||||
{
|
||||
|
||||
@@ -40,7 +40,7 @@ class Receiving extends CI_Model
|
||||
return $success;
|
||||
}
|
||||
|
||||
function save ($items,$supplier_id,$employee_id,$comment,$payment_type,$receiving_id=false,$invoice_number=NULL)
|
||||
function save ($items,$supplier_id,$employee_id,$comment,$invoice_number,$payment_type,$receiving_id=false)
|
||||
{
|
||||
if(count($items)==0)
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user