Merge pull request #12889 from mapiolca/patch-21

Fix double display of create credit note button
This commit is contained in:
Laurent Destailleur 2020-01-22 13:57:47 +01:00 committed by GitHub
commit cb41168904
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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