Merge pull request #18317 from altairisfr/PROPAL_NOT_BILLABLE
NEW : add constant PROPOSAL_ARE_NOT_BILLABLE
This commit is contained in:
commit
012eee7e06
@ -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&origin='.$object->element.'&originid='.$object->id.'&socid='.$object->socid.'">'.$langs->trans("AddBill").'</a>';
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user