Skip to content

Commit

Permalink
fix invoice extrafield transmition to credit
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-john committed Feb 15, 2018
1 parent 15ab37b commit 63987fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions htdocs/compta/facture/card.php
Expand Up @@ -852,6 +852,12 @@

foreach($facture_source->lines as $line)
{
// Extrafields
if (empty($conf->global->MAIN_EXTRAFIELDS_DISABLED) && method_exists($lines[$i], 'fetch_optionals')) {
// load extrafields
$line->fetch_optionals();
}

// Reset fk_parent_line for no child products and special product
if (($line->product_type != 9 && empty($line->fk_parent_line)) || $line->product_type == 9) {
$fk_parent_line = 0;
Expand Down

0 comments on commit 63987fa

Please sign in to comment.