Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error on net value on payments
#1
System calculate a net value with wrong, value.

See attached


Attached Files Image(s)
   
Ranieri
eCRM Web
Reply
#2
please reproduce online
Joe
TSolucio
Reply
#3
http://demo.corebos.com/index.php?action=DetailView&module=CobroPago&record=43235&parenttab=ptab

Look
Amout 1000
Cost 500

Benefit -499

??


Attached Files Image(s)
   
Ranieri
eCRM Web
Reply
#4
try setting credit to true
Joe
TSolucio
Reply
#5
But the value is wrong, not?

Correct value is 500 ... not 499

and In demo, currency olnly display EURO or Dollar and a problem with a Real, because a inversion of comma and decimal point ...

even I include a Brazil Real, in currency, and setting in users preferences ...

See attached images


Attached Files Image(s)
           
Ranieri
eCRM Web
Reply
#6
Fixed:

https://github.com/tsolucio/corebos/commit/3a1f9777bfa7a4547a286c5b278ff39917d9da0e
Joe
TSolucio
Reply
#7
In my test, I need inform a expression always with a decimal point right?

I setting user with a Brazilian stadand. but when I try using a expression with comma, system shows

Fatal error: Uncaught Exception: Was expecting a close bracket in /usr/share/eCRM/ecrmweb-master/modules/com_vtiger_workflow/expression_engine/VTParser.inc:97 Stack trace: #0 /usr/share/eCRM/ecrmweb-master/modules/com_vtiger_workflow/expression_engine/VTParser.inc(188): VTExpressionParser->atom() #1 /usr/share/eCRM/ecrmweb-master/modules/com_vtiger_workflow/expression_engine/VTParser.inc(176): VTExpressionParser->unaryOp() #2 /usr/share/eCRM/ecrmweb-master/modules/com_vtiger_workflow/expression_engine/VTParser.inc(166): VTExpressionParser->binOpPrec(-1) #3 /usr/share/eCRM/ecrmweb-master/modules/com_vtiger_workflow/expression_engine/VTParser.inc(166): VTExpressionParser->binOpPrec(0) #4 /usr/share/eCRM/ecrmweb-master/modules/com_vtiger_workflow/expression_engine/VTParser.inc(166): VTExpressionParser->binOpPrec(1) #5 /usr/share/eCRM/ecrmweb-master/modules/com_vtiger_workflow/expression_engine/VTParser.inc(166): VTExpressionParser->binOpPrec(2) #6 /usr/share/eCRM/ecrmweb-master/modules/com_vtiger_workflow/expression_engine/V in /usr/share/eCRM/ecrmweb-master/modules/com_vtiger_workflow/expression_engine/VTParser.inc on line 97


example

I wish, add a more than one field, to calculte a cost and a financial cost ( with credicard )

(amount * 0.03) + cf_1045 ( works, only I use a decimal point ) if I user a comma, system shows message above ...
Ranieri
eCRM Web
Reply
#8
Yes, expressions and formulas always use US format
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)