Skip to content

Commit

Permalink
Merge pull request #10525 from atm-greg/8.0_FIX_supplier_proposal_lin…
Browse files Browse the repository at this point in the history
…es_added_without_unit

FIX add fk_unit on addline action
  • Loading branch information
eldy committed Feb 8, 2019
2 parents 92ef0d7 + 9d0e0c2 commit 3d58e93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions htdocs/supplier_proposal/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,8 @@

$ref_supplier = $productsupplier->ref_supplier;

$fk_unit = $productsupplier->fk_unit;

$tva_tx = get_default_tva($object->thirdparty, $mysoc, $productsupplier->id, GETPOST('idprodfournprice','alpha'));
$tva_npr = get_default_npr($object->thirdparty, $mysoc, $productsupplier->id, GETPOST('idprodfournprice','alpha'));
if (empty($tva_tx)) $tva_npr=0;
Expand Down

0 comments on commit 3d58e93

Please sign in to comment.