added fk_project in $facture

This commit is contained in:
Dorian Vabre 2021-04-27 09:57:27 +02:00
parent 7f9f67e7ef
commit 99589fd693

View File

@ -342,7 +342,7 @@ if (empty($reshook) && $action == 'add') {
$facture->paye = 0;
$facture->date = dol_now();
$facture->cond_reglement_id = $confattendee->cond_reglement_id;
$facture->fk_project = $project->id;
if (empty($facture->cond_reglement_id)) {
$paymenttermstatic = new PaymentTerm($confattendee->db);
$facture->cond_reglement_id = $paymenttermstatic->getDefaultId();