currency : adapt middle of payment
This commit is contained in:
parent
b2ab12f8c9
commit
076eadeec5
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue