mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
fix retained warranty amount
This commit is contained in:
@@ -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>';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user