Posts

Showing posts from October, 2025

Useful predefined functoins

Current date and time  PurchTable.AccountingDate   = DateTimeUtil::date(DateTimeUtil::applyTimeZoneOffset(DateTimeUtil::getSystemDateTime(), DateTimeUtil::getUserPreferredTimeZone()));  with in qutoation string extraction example :   'Test'    int len = strLen(_formula);    int exprVal1 = strScan(_formula,"'",1,len);    int exprVal2 = strScan(_formula,"'",exprVal1+1,len);    int exprVal1Act = exprVal1+1;    if(exprVal1 && exprVal2)    {        Description typeId = subStr(_formula,exprVal1Act,exprVal2-(exprVal1Act));   } Num2Str convert number to string num2Str(_value,1,2,DecimalSeparator::Dot,ThousandSeparator::None); Formula conversion from string mathematics formula to result  ProdMathEvaluator mathEvaluator = ProdMathEvaluator::construct();  mathEvaluator.parmHandleException(true);  mathEvaluator.parmThrowOnError(false);  mathEvaluator.parmCal...