abivia / ledger

General Ledger and Journal Accounting Package and API for Laravel
MIT License
102 stars 23 forks source link

Create Balance not working #14

Closed AAUU-Ansari closed 1 year ago

AAUU-Ansari commented 1 year ago

After giving code and uuid still return this error errors : [["Request requires an account code or uuid."], "Bad request.",…] 0: ["Request requires an account code or uuid."] 1:"Bad request." 2:"Request requires an account code or uuid." time:"2023-02-24T03:35:34.008077Z"

abivia commented 1 year ago

Can you provide a copy of the request?

AAUU-Ansari commented 1 year ago

postData('http://127.0.0.1:8000/api/ledger/balance/query', { "code": "310", "currency": "USD", //"domain": "CORP", 'amount':"5000" }).then((data) => { console.log(data); // JSON data parsed by data.json() call }); error

abivia commented 1 year ago

I'm unable to reproduce this. Can you verify that you're running Ledger 1.10.0? I'll keep looking for a possible cause.

abivia commented 1 year ago

Closing this. Feel free to respond and I'll reopen it.

AAUU-Ansari commented 1 year ago

"abivia/ledger": "^1.10", i am using latest version but still facing a balance issue

abivia commented 1 year ago

Still no luck trying to reproduce the problem here. Your request works as expected in our test environment.