currency : adapt middle of payment

This commit is contained in:
Dany De Bontridder 2018-12-09 12:12:50 +01:00
parent b2ab12f8c9
commit 076eadeec5
2 changed files with 2 additions and 2 deletions

View file

@ -992,7 +992,7 @@ class Acc_Ledger_Purchase extends Acc_Ledger
/* if ledger is FIN then insert into quant_fin */
if ( $prop['jrn_def_type'] == 'FIN' )
{
$ledger->insert_quant_fin($acfiche->id,$mp_jr_id,$cust->id,bcmul($famount,-1));
$ledger->insert_quant_fin($acfiche->id,$mp_jr_id,$cust->id,bcmul($famount,-1),$let_other);
}

View file

@ -675,7 +675,7 @@ class Acc_Ledger_Sold extends Acc_Ledger {
/* if ledger is FIN then insert into quant_fin */
if ($prop['jrn_def_type'] == 'FIN') {
$ledger->insert_quant_fin($acfiche->id, $mp_jr_id, $cust->id, bcmul($famount, 1));
$ledger->insert_quant_fin($acfiche->id, $mp_jr_id, $cust->id, bcmul($famount, 1),$let_other);
}
}
} catch (Exception $e) {