Skip to content

Commit

Permalink
FIX: supplier credit notes: correctly handle discount split
Browse files Browse the repository at this point in the history
  • Loading branch information
ATM-Marc committed Feb 16, 2018
1 parent 7367769 commit fa0c65e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions htdocs/comm/remx.php
Expand Up @@ -93,6 +93,12 @@
$newdiscount2->fk_facture=$discount->fk_facture;
$newdiscount1->fk_facture_line=$discount->fk_facture_line;
$newdiscount2->fk_facture_line=$discount->fk_facture_line;
$newdiscount1->fk_invoice_supplier_source=$discount->fk_invoice_supplier_source;
$newdiscount2->fk_invoice_supplier_source=$discount->fk_invoice_supplier_source;
$newdiscount1->fk_invoice_supplier=$discount->fk_invoice_supplier;
$newdiscount2->fk_invoice_supplier=$discount->fk_invoice_supplier;
$newdiscount1->fk_invoice_supplier_line=$discount->fk_invoice_supplier_line;
$newdiscount2->fk_invoice_supplier_line=$discount->fk_invoice_supplier_line;
if ($discount->description == '(CREDIT_NOTE)' || $discount->description == '(DEPOSIT)')
{
$newdiscount1->description=$discount->description;
Expand All @@ -107,6 +113,8 @@
$newdiscount2->fk_user=$discount->fk_user;
$newdiscount1->fk_soc=$discount->fk_soc;
$newdiscount2->fk_soc=$discount->fk_soc;
$newdiscount1->discount_type=$discount->discount_type;
$newdiscount2->discount_type=$discount->discount_type;
$newdiscount1->datec=$discount->datec;
$newdiscount2->datec=$discount->datec;
$newdiscount1->tva_tx=$discount->tva_tx;
Expand Down

0 comments on commit fa0c65e

Please sign in to comment.