Skip to content

Commit

Permalink
Fix: Bad init of specimen
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Sep 11, 2012
1 parent 1c91027 commit c10e587
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/fourn/class/fournisseur.facture.class.php
Expand Up @@ -1355,6 +1355,7 @@ function initAsSpecimen()
$line->desc=$langs->trans("Description")." ".$xnbp;
$line->qty=1;
$line->subprice=100;
$line->pu_ht=100; // the canelle template use pu_ht and not subprice
$line->price=100;
$line->tva_tx=19.6;
$line->localtax1_tx=0;
Expand All @@ -1371,7 +1372,7 @@ function initAsSpecimen()
$line->total_ht=100;
$line->total_ttc=119.6;
$line->total_tva=19.6;
$line->remise_percent=00;
$line->remise_percent=0;
}

$prodid = rand(1, $num_prods);
Expand Down

0 comments on commit c10e587

Please sign in to comment.