Merge pull request #25588 from Easya-Solutions/new-supplier-invoice-credit-note-standalone

NEW no need to create invoice supplier object on supplier card for standalone credit note
This commit is contained in:
Laurent Destailleur 2023-08-09 15:23:23 +02:00 committed by GitHub
commit 9870ed253c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3095,8 +3095,8 @@ if ($action == 'create') {
print ' <span class="opacitymediumbycolor paddingleft">'.$langs->transnoentities("ReplaceInvoice", $facreplaced->getNomUrl(1)).'</span>';
}
if ($object->type == FactureFournisseur::TYPE_CREDIT_NOTE) {
$facusing = new FactureFournisseur($db);
if ($object->fk_facture_source > 0) {
$facusing = new FactureFournisseur($db);
$facusing->fetch($object->fk_facture_source);
print ' <span class="opacitymediumbycolor paddingleft">'.$langs->transnoentities("CorrectInvoice", $facusing->getNomUrl(1)).'</span>';
} else {