Fix: Patch calculation field odt

This commit is contained in:
Laurent Destailleur 2012-09-27 21:08:32 +02:00
parent 3a98f6903e
commit e94ddde91d

View File

@ -102,7 +102,8 @@ class doc_generic_invoice_odt extends ModelePDFFactures
{
$invoice_source->fetch($object->fk_facture_source);
}
$alreadypayed=price($object->getSommePaiement(),0,$outputlangs);
$sumpayed = $object->getSommePaiement();
$alreadypayed=price($sumpayed,0,$outputlangs);
return array(
'object_id'=>$object->id,
@ -128,7 +129,7 @@ class doc_generic_invoice_odt extends ModelePDFFactures
'object_note'=>$object->note_public,
// Payments
'object_already_payed'=>$alreadypayed,
'object_remain_to_pay'=>price($object->total_ttc - $alreadypayed,0,$outputlangs)
'object_remain_to_pay'=>price($object->total_ttc - $sumpayed,0,$outputlangs)
);
}