Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

BUG - Purchases -> New Payment - Amount defaults to NaN

Luke Williams   ( User )

Commented 2 years ago

Purchases > Payments > New Payment - the amount then defaults to NaN and it is not possible to add a number or change it at all therefore I cannot save the payment as it is required. Does anyone know how to fix this please?

Melda Melda   ( User )

Commented 2 years ago

Hi Luke,

Thank you for your feedback. However, I could not reproduce any issue both on Local-host or Cloud. Could you please give us more details?

Luke Williams   ( User )

Commented 2 years ago

It is local-host. Everything else works perfect but when trying to add a new payment it chances from 0.00 to NaN after a second of loading

Some Dude   ( User )

Commented 2 years ago

I have the same issue on 2 versions.
amount defaults to NAN, doesn't matter which "Add" template.

console errors say:

transactions.js?v=2.1.30:163558 [Vue warn]: Invalid prop: type check failed for prop "dynamicCurrency". Expected Object, got Array

found in

---> at resources/assets/js/components/AkauntingMoney.vue

Some Dude   ( User )

Commented 2 years ago

Also to note, This was a fresh install from git

Some Dude   ( User )

Commented 2 years ago

Further to my previous post, For adding invoice I found that it calls
https://akaunting.axihost.net/1/banking/accounts/currency?account_id=1
which does not read the get variable (account_id=1) for some reason and returns [].
I am still working on trying to locate why it is not reading the get variable

Some Dude   ( User )

Commented 2 years ago

OK, after alot of playing around I found the issue on my instance, it had to do with the fact that I was using nginx as the webserver and had set.
try_files $uri $uri/ /index.php;
on the redirect for the seo urls, therefore the query string was not being passed, fixed with the addition of
try_files $uri $uri/ /index.php?$query_string;

For anyone that may have a similar issue

Please login or register to leave a response.

Showing 1 to 7 of 7 discussions