ajency / cashflow-issue-tracker

Issue Tracker for issues
0 stars 1 forks source link

BUG - Changed subaccount: False, but kept parent ID value. Account is created as a sub account under Parent ID 58. child account shud be decided if they have parent ID value and subaccount as true #825

Closed HazelColaco19 closed 4 years ago

HazelColaco19 commented 4 years ago

Describe the bug with expected result:

Changed subaccount: False, but kept parent ID value. Account is created as a sub account under Parent ID 58. child account shud be decided if they have parent ID value and sub account as true.

Data Used:

{ "source": "tally", "data": [ { "id": 77, "name": "Cost of Labor-2", "balance": 0, "type": "Expense", "active": true, "subAccount": false, "classification": "Expense", "accountSubType": "Other Miscellaneous Service Cost", "currentBalanceWithSubAccounts": 0, "parentId": 58, "fullyQualifiedName": "Job Expenses:Cost of Labor" } ]}

legred21 commented 4 years ago

Fixed by validating for subAccount and parentId field

HazelColaco19 commented 4 years ago

fixed

image