From 3400db550371f284b7cb911769d48fbedf2e0ad1 Mon Sep 17 00:00:00 2001 From: Eric Seigne Date: Fri, 14 Oct 2022 21:58:10 +0200 Subject: [PATCH] fix #19912: add default informations from customer to new invoices --- htdocs/projet/tasks/time.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php index db2e1508e92..678577043a6 100644 --- a/htdocs/projet/tasks/time.php +++ b/htdocs/projet/tasks/time.php @@ -384,6 +384,9 @@ if ($action == 'confirm_generateinvoice') $tmpinvoice->socid = $projectstatic->thirdparty->id; $tmpinvoice->date = dol_mktime(GETPOST('rehour', 'int'), GETPOST('remin', 'int'), GETPOST('resec', 'int'), GETPOST('remonth', 'int'), GETPOST('reday', 'int'), GETPOST('reyear', 'int')); $tmpinvoice->fk_project = $projectstatic->id; + $tmpinvoice->cond_reglement_id = $projectstatic->thirdparty->cond_reglement_id; + $tmpinvoice->mode_reglement_id = $projectstatic->thirdparty->mode_reglement_id; + $tmpinvoice->fk_account = $projectstatic->thirdparty->fk_account; if ($invoiceToUse) { $tmpinvoice->fetch($invoiceToUse);