0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-01-11 17:18:10 +03:00

currencyUSBasedFormat has been fixed

This commit is contained in:
Arin Alex 2018-08-21 23:08:29 +03:00
parent 0bbb4be044
commit 4c5a6b0183

View File

@ -733,7 +733,7 @@ bool ScriptEngineManager::createCurrencyUSBasedFormatFunction(){
fd.setDescription("currencyUSBasedFormat(\""+tr("Value")+",\""+tr("CurrencySymbol")+"\")");
fd.setScriptWrapper(QString("function currencyUSBasedFormat(value, currencySymbol){"
" if(typeof(currencySymbol)==='undefined') currencySymbol = \"\"; "
"return %1.currencyFormat(value,currencySymbol);}"
"return %1.currencyUSBasedFormat(value,currencySymbol);}"
).arg(LimeReport::Const::FUNCTION_MANAGER_NAME)
);
return addFunction(fd);