Add thousands separator option (#458)

Fix adding payment with comma as decimal separator (#740)
This commit is contained in:
jekkos
2016-07-15 11:22:31 +02:00
parent cfdbd01dac
commit 1af612d18e
8 changed files with 57 additions and 27 deletions

View File

@@ -224,7 +224,7 @@ class Sales extends Secure_Controller
}
else
{
$amount_tendered = parse_decimals($this->input->post('amount_tendered'));
$amount_tendered = $this->input->post('amount_tendered');
$this->sale_lib->add_payment($payment_type, $amount_tendered);
}
@@ -286,7 +286,7 @@ class Sales extends Secure_Controller
function numeric($str)
{
return parse_decimals($str, 2);
return parse_decimals($str, 3);
}
public function edit_item($item_id)