Merge pull request #18317 from altairisfr/PROPAL_NOT_BILLABLE

NEW : add constant PROPOSAL_ARE_NOT_BILLABLE
This commit is contained in:
Laurent Destailleur 2021-08-11 21:00:53 +02:00 committed by GitHub
commit 012eee7e06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2579,7 +2579,7 @@ if ($action == 'create') {
}
// Create an invoice and classify billed
if ($object->statut == Propal::STATUS_SIGNED) {
if ($object->statut == Propal::STATUS_SIGNED && empty($conf->global->PROPOSAL_ARE_NOT_BILLABLE)) {
if (!empty($conf->facture->enabled) && $usercancreateinvoice) {
print '<a class="butAction" href="'.DOL_URL_ROOT.'/compta/facture/card.php?action=create&amp;origin='.$object->element.'&amp;originid='.$object->id.'&amp;socid='.$object->socid.'">'.$langs->trans("AddBill").'</a>';
}