…
Right, no time. Try using period (.) instead of comma (,) as cents
separator. If I recall, pERP can handle it, but the browsers
(javascript) have trouble.
Where do you mean exactly ? In prices I always use dot, never a comma, for the decimal
separator… [checking supplier catalog] yes, all prices and conversion factors are
using (.) as decimal separator. Even if I modify either one to use comma (,)
it seems it is corrected back to dot. It seems the Invoices Payable are the only ones
that have commas in he line price, everywhere else there are dots.
That’s a bug, and may be related. They should all respect your
preference, and if there’s commas, it may cause problems. I’ll see
what I can do tomorrow.
(cc:d the list)
Apologies for not being able to help more as my php and js fu is quite weak…
But maybe this helps: when I get into inspecting the field showing the line price
on the payable invoice, I get this HTML for the portion of the line:
(under unit price)
(under line price)
(value is correctly calculated, but displayed on the browser as 1500)
I’ve noticed something else - going into Accounts Payable, into the Invoice icon of the Purchase Order,
it seems to display briefly the correct Line Prices AND the total!
The trick is to press Escape so not to let it compute incorrect prices and not to recalculate the total.
Also if i press F5 on that form when incorrectly loaded, then quickly press ESC, the line prices are
CORRECTLY shown.
Inspecting (In firefox) the form again, it shows same HTML, but now the line prices are SHOWN correct.
Looking at what perp_api/js/invoice/edit.js:
I’m guessing, but
function change_quantity(e)
—>8----
if(line_price && unit_price && quantity) {
get_formatted_price(line_price.id, currency_id, (get_float_from_string(quantity.value) * get_float_from_string(unit_price.value)).toFixed(2));
}
----8<----
seems to be the problem (been looking at it through FF’s js debugger, but can’t make sense of it)
Also putting the comma into the Unit Price (e.g. from 0.015 to 0,015) doesn’t make a
difference, line price is updated to 1500,00 (originally 1500.0)
Hope this helps.
Lukasz
(Btw, selecting category on the suppliers catalog, has no effect. Bug?)
Yeah, looks like it’s just not hooked up properly.
Nathan
Don’t let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
Perp-developers mailing list
Perp-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perp-developers