Gildas Rossignon
|
80a4428955
|
Fix value cond_reglement_id & mode_reglement_id
I had a bug when trying to create a supplier proposal by this way :
$fournisseur = new Societe($db);
$fournisseur->fetch(1);
$supplierproposal = new SupplierProposal($db, $fournisseur->id);
if ($supplierproposal->create($user) < 1) {
echo $supplierproposal->error . '<br/><br/>';
echo $db->lastquery;
}
This would generate an insert query with an empty value :
INSERT INTO llx_supplier_proposal (fk_soc, price, remise, remise_percent, remise_absolue, tva, total, datec, ref, fk_user_author, note_private, note_public, model_pdf, fk_cond_reglement, fk_mode_reglement, fk_account, date_livraison, fk_shipping_method, fk_projet, entity, fk_multicurrency, multicurrency_code, multicurrency_tx) VALUES (1, 0, 0, null, null, 0, 0, '2018-04-10 23:01:52', '(PROV)', '1', '', '', '', , , NULL, null, NULL, null, 1, 0, 'EUR', 1)
|
2018-04-10 23:11:32 +02:00 |
|