Skip to content

Commit

Permalink
FIX: supplier credit notes: display link to discount in supplier cred…
Browse files Browse the repository at this point in the history
…it note card
  • Loading branch information
ATM-Marc committed Feb 21, 2018
1 parent cfdbef6 commit 34d84c6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions htdocs/fourn/facture/card.php
Expand Up @@ -2409,6 +2409,13 @@
$facthatreplace->fetch($facidnext);
print ' ('.$langs->transnoentities("ReplacedByInvoice",$facthatreplace->getNomUrl(1)).')';
}
if ($object->type == FactureFournisseur::TYPE_CREDIT_NOTE || $object->type == FactureFournisseur::TYPE_DEPOSIT) {
$discount = new DiscountAbsolute($db);
$result = $discount->fetch(0, 0, $object->id);
if ($result > 0){
print '. '.$langs->trans("CreditNoteConvertedIntoDiscount", $object->getLibType(), $discount->getNomUrl(1, 'discount')).'<br>';
}
}
print '</td></tr>';

if ($conf->global->MAIN_FEATURES_LEVEL > 0) {
Expand Down

0 comments on commit 34d84c6

Please sign in to comment.