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:
commit
9870ed253c
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue