Merge pull request #12889 from mapiolca/patch-21
Fix double display of create credit note button
This commit is contained in:
commit
cb41168904
@ -4829,6 +4829,7 @@ elseif ($id > 0 || ! empty($ref))
|
||||
|
||||
// For situation invoice with excess received
|
||||
if ($object->statut > Facture::STATUS_DRAFT
|
||||
&& $object->type == Facture::TYPE_SITUATION
|
||||
&& ($object->total_ttc - $totalpaye - $totalcreditnotes - $totaldeposits) > 0
|
||||
&& $usercancreate
|
||||
&& !$objectidnext
|
||||
|
||||
Loading…
Reference in New Issue
Block a user