This commit is contained in:
Laurent Destailleur 2026-01-21 13:40:25 +01:00
parent 7f3a6a5a40
commit e72345334a

View file

@ -6598,7 +6598,7 @@ if ($action == 'create') {
$langs->load("contracts");
if ($usercancreatecontract) {
print '<a class="butAction" href="' . DOL_URL_ROOT . '/contrat/card.php?action=create&amp;origin=' . $object->element . '&amp;originid=' . $object->id . '&amp;socid=' . $object->socid . '">' . $langs->trans('AddContract') . '</a>';
print '<a class="butAction" href="' . DOL_URL_ROOT . '/contrat/card.php?action=create&origin=' . $object->element . '&originid=' . $object->id . '&socid=' . $object->socid . '">' . $langs->trans('AddContract') . '</a>';
}
}
}
@ -6657,7 +6657,7 @@ if ($action == 'create') {
}
// Request a direct debit order
if ($object->status > Facture::STATUS_DRAFT && $object->paye == 0 && $num == 0) {
if ($object->status > Facture::STATUS_DRAFT && $object->paye == 0) {
if ($resteapayer > 0) {
if ($usercancreatewithdrarequest) {
if (!$objectidnext && $object->close_code != 'replaced') { // Not replaced by another invoice