Merge pull request #22591 from rycks/13.0_19912_add_default_payment_terms_to_invoices
close #19912 : add default payment terms to invoice
This commit is contained in:
commit
332df184bf
1 changed files with 3 additions and 0 deletions
|
|
@ -432,6 +432,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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue