Debug v19

This commit is contained in:
Laurent Destailleur 2023-11-28 10:37:07 +01:00
parent e12818be0a
commit bc1574c418

View file

@ -2172,7 +2172,7 @@ if ($action == 'create') {
'perm' => $user->hasRight('commande', 'creer')
);
}
if (isModEnabled('facture') && $object->status > 0 && $soc->client ==1) {
if (isModEnabled('facture') && $object->status > 0 && $soc->client > 0) {
$arrayofcreatebutton[] = array(
'url' => '/compta/facture/card.php?action=create&origin='.$object->element.'&originid='.$object->id.'&socid='.$object->thirdparty->id,
'label' => $langs->trans('Bill'),