fix retained warranty amount
This commit is contained in:
parent
d8cd1c3fef
commit
30d62e9fc5
@ -4571,14 +4571,14 @@ else if ($id > 0 || ! empty($ref))
|
||||
if($object->type == Facture::TYPE_SITUATION)
|
||||
{
|
||||
$retainedWarranty = $total_global_ttc * $object->retained_warranty / 100;
|
||||
$billedWithRetainedWarranty = $total_global_ttc - $retainedWarranty ;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Because one day retained warranty could be used on standard invoices
|
||||
$retainedWarranty = $object->total_ttc * $object->retained_warranty / 100;
|
||||
$billedWithRetainedWarranty = $object->total_ttc - $retainedWarranty ;
|
||||
}
|
||||
}
|
||||
|
||||
$billedWithRetainedWarranty = $object->total_ttc - $retainedWarranty ;
|
||||
|
||||
print '<tr><td colspan="' . $nbcols . '" align="right">' . $langs->trans("ToPayOn", dol_print_date($object->date_lim_reglement, 'day')) . ' :</td><td align="right">' . price($billedWithRetainedWarranty) . '</td><td> </td></tr>';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user