Update card.php
It seems like GETPOST('fk_doc', 'int') of type string or string[] is incompatible with the declared type integer of property $fk_doc
This commit is contained in:
parent
37d692918b
commit
9b61577bf7
@ -171,8 +171,8 @@ elseif ($action == "add") {
|
||||
$object->doc_ref = GETPOST('doc_ref', 'alpha');
|
||||
$object->code_journal = $journal_code;
|
||||
$object->journal_label = $journal_label;
|
||||
$object->fk_doc = GETPOST('fk_doc', 'int');
|
||||
$object->fk_docdet = GETPOST('fk_docdet', 'int');
|
||||
$object->fk_doc = (int) GETPOST('fk_doc', 'int');
|
||||
$object->fk_docdet = (int) GETPOST('fk_docdet', 'int');
|
||||
|
||||
if (floatval($debit) != 0.0) {
|
||||
$object->montant = $debit;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user