mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-24 16:28:40 -04:00
sales fixes
This commit is contained in:
committed by
FrancescoUK
parent
7a91388d8d
commit
6dc49ca00e
@@ -195,10 +195,12 @@ class Sales extends Secure_Controller
|
||||
public function add_payment()
|
||||
{
|
||||
$data = array();
|
||||
$this->form_validation->set_rules('amount_tendered', 'lang:sales_amount_tendered', 'trim|required|callback_numeric');
|
||||
|
||||
$payment_type = $this->input->post('payment_type');
|
||||
|
||||
if($payment_type != $this->lang->line('sales_giftcard'))
|
||||
$this->form_validation->set_rules('amount_tendered', 'lang:sales_amount_tendered', 'trim|required|callback_numeric');
|
||||
else
|
||||
$this->form_validation->set_rules('amount_tendered', 'lang:sales_amount_tendered', 'trim|required');
|
||||
if($this->form_validation->run() == FALSE)
|
||||
{
|
||||
if($payment_type == $this->lang->line('sales_giftcard'))
|
||||
|
||||
Reference in New Issue
Block a user