Better tooltips

This commit is contained in:
Laurent Destailleur 2025-01-27 03:46:51 +01:00
parent c2b11a7819
commit b4bf3978ef

View File

@ -185,10 +185,22 @@ if (getDolGlobalString('TAX_MODE_SELL_SERVICE') == 'payment') {
$description .= '<br>' . $langs->trans("RulesVATInServices");
}
if (getDolGlobalString('FACTURE_DEPOSITS_ARE_JUST_PAYMENTS')) {
$description .= '<br>' . $langs->trans("DepositsAreNotIncluded");
if (getDolGlobalString('TAX_MODE_SELL_SERVICE') == 'invoice' && getDolGlobalString('TAX_MODE_SELL_PRODUCT') == 'invoice') {
$description .= '<br>' . $langs->trans("DepositsAreNotIncluded");
} elseif (getDolGlobalString('TAX_MODE_SELL_SERVICE') == 'invoice') { // calculate on sale invoice for service only
$description .= '<br>' . $langs->trans("DepositsAreNotIncluded").' (for services)';
} elseif (getDolGlobalString('TAX_MODE_SELL_PRODUCT') == 'invoice') { // calculate on sale invoice for service only
$description .= '<br>' . $langs->trans("DepositsAreNotIncluded").' (for products)';
}
}
if (getDolGlobalString('FACTURE_SUPPLIER_DEPOSITS_ARE_JUST_PAYMENTS')) {
$description .= $langs->trans("SupplierDepositsAreNotIncluded");
if (getDolGlobalString('TAX_MODE_BUY_SERVICE') == 'invoice' && getDolGlobalString('TAX_MODE_BUY_PRODUCT') == 'invoice') {
$description .= '<br>' . $langs->trans("SupplierDepositsAreNotIncluded");
} elseif (getDolGlobalString('TAX_MODE_BUY_SERVICE') == 'invoice') { // calculate on supplier invoice for service only
$description .= '<br>' . $langs->trans("SupplierDepositsAreNotIncluded").' (for services)';
} elseif (getDolGlobalString('TAX_MODE_BUY_PRODUCT') == 'invoice') { // calculate on supplier invoice for product only
$description .= '<br>' . $langs->trans("SupplierDepositsAreNotIncluded").' (for products)';
}
}
if (isModEnabled('accounting')) {
$description .= '<br>' . $langs->trans("ThisIsAnEstimatedValue");