mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix trad currency
This commit is contained in:
parent
2ae776e51b
commit
78ec4d595b
|
|
@ -23,6 +23,7 @@ For users:
|
|||
- Fix: Withdrawal total amount is double
|
||||
- Fix: [ bug #1593 ] Spanish Localtax IRPF not being calculated since 3.6.0 in supplier invoices when adding a line
|
||||
- Fix: Web service categorie WDSL declaration is correct
|
||||
- Fix: ErrorBadValueForParamNotAString was displayed in virtual product if no base price defined
|
||||
|
||||
***** ChangeLog for 3.6 compared to 3.5.* *****
|
||||
For users:
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
|||
|
||||
$langs->load("bills");
|
||||
$langs->load("products");
|
||||
$langs->load("main");
|
||||
|
||||
$id=GETPOST('id','int');
|
||||
$ref=GETPOST('ref','alpha');
|
||||
|
|
@ -292,13 +293,17 @@ if ($id > 0 || ! empty($ref))
|
|||
{
|
||||
// Price
|
||||
print '<tr><td>'.$langs->trans("SellingPrice").'</td><td>';
|
||||
|
||||
if ($object->price_base_type == 'TTC')
|
||||
{
|
||||
print price($object->price_ttc).' '.$langs->trans($object->price_base_type);
|
||||
}
|
||||
else
|
||||
{
|
||||
print price($object->price).' '.$langs->trans($object->price_base_type);
|
||||
print price($object->price);
|
||||
if (!empty($object->price_base_type)) {
|
||||
print ' '.$langs->trans($object->price_base_type);
|
||||
}
|
||||
}
|
||||
print '</td></tr>';
|
||||
|
||||
|
|
@ -310,7 +315,10 @@ if ($id > 0 || ! empty($ref))
|
|||
}
|
||||
else
|
||||
{
|
||||
print price($object->price_min).' '.$langs->trans($object->price_base_type);
|
||||
print price($object->price_min);
|
||||
if (!empty($object->price_base_type)) {
|
||||
print ' '.$langs->trans($object->price_base_type);
|
||||
}
|
||||
}
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user