ajency / cashflow-issue-tracker

Issue Tracker for issues
0 stars 1 forks source link

BUG - Creation of Purchase is not successful when the Account types include multiple names or names with spaces #833

Closed HazelColaco19 closed 4 years ago

HazelColaco19 commented 4 years ago

Describe the bug Creation of Purchase is not successful when the Account types include multiple names or names with spaces

Example:

image

image

Example of strings not accepted: Other Current Assets

legred21 commented 4 years ago

Issue got discovered, because accountSubType field value is not a single word for tally. like quickbook where we split single word into multiple words on every uppercase character found in accountSubType. Therefore when existing split logic applies to tally request data, two spaces gets inserted between words. fixed by checking for accounting driver. if accounting driver is quickbook then split accountSubType, else use as it is

nutank commented 4 years ago

@legred21 - why are we changing this logic? shouldn't accountSubType be that way? Stored as one word ?

HazelColaco19 commented 4 years ago

Fixed