FIX #12372
This commit is contained in:
parent
96e93ef103
commit
5a4a421a8e
@ -378,7 +378,7 @@ class PaymentVarious extends CommonObject
|
||||
$sql.= "'".$this->db->idate($this->datep)."'";
|
||||
$sql.= ", '".$this->db->idate($this->datev)."'";
|
||||
$sql.= ", '".$this->db->escape($this->sens)."'";
|
||||
$sql.= ", ".$this->amount;
|
||||
$sql.= ", ".price2num($this->amount);
|
||||
$sql.= ", '".$this->db->escape($this->type_payment)."'";
|
||||
$sql.= ", '".$this->db->escape($this->num_payment)."'";
|
||||
if ($this->note) $sql.= ", '".$this->db->escape($this->note)."'";
|
||||
|
||||
@ -48,12 +48,11 @@ $backtopage = GETPOST('backtopage', 'alpha');
|
||||
$accountid = GETPOST("accountid") > 0 ? GETPOST("accountid", "int") : 0;
|
||||
$label = GETPOST("label", "alpha");
|
||||
$sens = GETPOST("sens", "int");
|
||||
$amount = GETPOST("amount", "alpha");
|
||||
$amount = price2num(GETPOST("amount", "alpha"));
|
||||
$paymenttype = GETPOST("paymenttype", "int");
|
||||
$accountancy_code = GETPOST("accountancy_code", "alpha");
|
||||
$subledger_account = GETPOST("subledger_account", "alpha");
|
||||
$projectid = (GETPOST('projectid', 'int') ? GETPOST('projectid', 'int') : GETPOST('fk_project', 'int'));
|
||||
$category_transaction = GETPOST("category_transaction", 'alpha');
|
||||
|
||||
// Security check
|
||||
$socid = GETPOST("socid", "int");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user