Skip to content

Products and Services: multi-currencies "disabled current currency" is always saved

Steps to reproduce issue

  • set more than one currency in Vtiger
  • edit a product (or service)
  • modify currencies values ('more currencies>>')
  • flag more than one Currency and set relative Price
  • set one of these as Base Currency
  • click Save and Save Product
  • edit again same product (or service)
  • open 'more currencies>>'
  • disable current Base Currency (uncheck relative checkbox)
  • set another currency as Base Currency
  • click Save and Save Product
  • edit again same product (or service)
  • open 'more currencies>>'
  • previous Base Currency is still there

into file layouts/vlayout/modules/Vtiger/uitypes/Currency.tpl

<input type="hidden" name="cur_{$BASE_CURRENCY_ID}_check" value="on">

it saves previous current currency

Issue arises into v6.5.0 with 'Merge Request 99' merged, because before this multi-currencies were not saved.

I tested with up above input element removed and 'Merge Request 99' merged: it's working fine.

PS: just improvements.

  • on current currency change by 'more currencies', updates 'Unit Price' value but not 'Unit Price' simbol. New current currency simbol is showed only after product / service saving
  • in product / service detail view I cannot see potential custom currency values