Merge branch '9.0' of git@github.com:Dolibarr/dolibarr.git into 10.0
Conflicts: htdocs/fourn/facture/card.php
This commit is contained in:
commit
186a13f101
@ -2667,11 +2667,14 @@ else
|
|||||||
else $calculationrule=(empty($conf->global->MAIN_ROUNDOFTOTAL_NOT_TOTALOFROUND)?'totalofround':'roundoftotal');
|
else $calculationrule=(empty($conf->global->MAIN_ROUNDOFTOTAL_NOT_TOTALOFROUND)?'totalofround':'roundoftotal');
|
||||||
if ($calculationrule == 'totalofround') $calculationrulenum=1;
|
if ($calculationrule == 'totalofround') $calculationrulenum=1;
|
||||||
else $calculationrulenum=2;
|
else $calculationrulenum=2;
|
||||||
|
// Show link for "recalculate"
|
||||||
|
if (empty($object->getVentilExportCompta())) {
|
||||||
$s=$langs->trans("ReCalculate").' ';
|
$s=$langs->trans("ReCalculate").' ';
|
||||||
$s.='<a href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=calculate&calculationrule=totalofround">'.$langs->trans("Mode1").'</a>';
|
$s.='<a href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=calculate&calculationrule=totalofround">'.$langs->trans("Mode1").'</a>';
|
||||||
$s.=' / ';
|
$s.=' / ';
|
||||||
$s.='<a href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=calculate&calculationrule=roundoftotal">'.$langs->trans("Mode2").'</a>';
|
$s.='<a href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=calculate&calculationrule=roundoftotal">'.$langs->trans("Mode2").'</a>';
|
||||||
print $form->textwithtooltip($s, $langs->trans("CalculationRuleDesc", $calculationrulenum).'<br>'.$langs->trans("CalculationRuleDescSupplier"), 2, 1, img_picto('', 'help'));
|
print $form->textwithtooltip($s, $langs->trans("CalculationRuleDesc", $calculationrulenum).'<br>'.$langs->trans("CalculationRuleDescSupplier"), 2, 1, img_picto('', 'help'));
|
||||||
|
}
|
||||||
print '</div></td></tr>';
|
print '</div></td></tr>';
|
||||||
|
|
||||||
// Amount Local Taxes
|
// Amount Local Taxes
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user