Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Journal Entries: not importing all lines #230

Open
chesteralan opened this issue Jan 15, 2019 · 3 comments
Open

Journal Entries: not importing all lines #230

chesteralan opened this issue Jan 15, 2019 · 3 comments

Comments

@chesteralan
Copy link

chesteralan commented Jan 15, 2019

I create a journal entry with multiple lines. Web Connect only imported the last two lines of my journal entries (the 10,000.00).

This affects my deposits since I am using the undeposited funds account.

Sample Entries:

Debit: 10000 · Revolving Fund 20,000.00
Credit: ------ 30000 · Undeposited Funds 20,000.00
-- empty line --
Debit: 10000 · Revolving Fund 2,700.00
Credit: ------ 30000 · Undeposited Funds 2,700.00
-- empty line --
Debit: 10000 · Revolving Fund 3,500.00
Credit: ------ 30000 · Undeposited Funds 3,500.00
-- empty line --
Debit: 10000 · Revolving Fund 10,000.00
Credit: ------ 30000 · Undeposited Funds 10,000.00

@consolibyte
Copy link
Owner

Post your code. It's impossible to help without knowing what you're doing here.

@chesteralan
Copy link
Author

I am not doing anything on the API. I am only mirroring what's being entered on Quickbooks.

And I have observed that only the last item on journaldebitline and and the last item journalcreditline are being imported to the database.

I looked into the XML responses of Qb and the responses are correct.

I think, the problem might be found when parsing xml to php objects.

@chesteralan
Copy link
Author

I am not sure if the problem is on this method:

/Quickbooks/Callbacks/SQL/Callbacks.php -> _ChildObjectsToXML

When converting XML to objects, the item is assigned to one key (not on an array; journalentry_journaldebitline or journalentry_journalcreditline). That's why the previous assignment is being overlapped by the new one until the last item of the loop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants