adamrneary / restful-etl

A promising asynchronous, non-blocking data integration library
2 stars 1 forks source link

non-posting account type #21

Open adamrneary opened 10 years ago

adamrneary commented 10 years ago

{ "type": "error", "message": "required fields does not exist", "objType": "Account", "source_obj": "{\"Name\":\"Sales Orders\",\"SubAccount\":false,\"Active\":true,\"AccountType\":\"Non-Posting\",\"AcctNum\":\"5\",\"CurrentBalance\":0,\"OnlineBankingEnabled\":false,\"status\":\"Synchronized\",\"Id\":\"QB:155\",\"SyncToken\":\"1\",\"MetaData\":{\"CreateTime\":\"2012-10-26T21:36:22Z\",\"LastUpdatedTime\":\"2013-03-21T18:56:53Z\"}}", "_id": { "$oid": "5283ada6d590d70200000018" }, "result_obj": [ { "obj": "{\"company_id\":\"528399e8b475b46751000002\",\"qbd_id\":\"QB:155\",\"name\":\"Sales Orders\",\"sub_type\":\"Non-Posting\",\"account_number\":\"5\"}", "_id": { "$oid": "5283ada6d590d70200000019" }, "missing_fields": [ "type" ] } ], "__v": 0 }

If account type is Non-posting, add the account with type "Non-posting"

This is a valid account type: https://github.com/activecell/customer-revenue/blob/master/app/models/account.rb#L33

dunice-igort commented 10 years ago

Now we get ActiveCell field "type", from QB field "Classification".

adamrneary commented 10 years ago

I am not sure if this is Igor or Alex R commenting. I already explained this to Igor, so if we’re switching up resources again, obviously we’re wasting more of my time having to explain this stuff over and over. I am in the chat room if need be.

Adam Neary | CEO adam.neary@profitably.com (mailto:adam.neary@profitably.com) http://www.profitably.com (http://www.profitably.com/)

On Friday, November 15, 2013 at 8:50 AM, dunice-igort wrote:

Now we get ActiveCell field "type", from QB field "Classification".

— Reply to this email directly or view it on GitHub (https://github.com/activecell/restful-etl/issues/21#issuecomment-28569841).

dunice-igort commented 10 years ago

It was me just a different browser was logged Alex, I remember what you have explained, but "AccountType" is used for sub_type.

adamrneary commented 10 years ago

bottom line: if account type from qb is "non-posting" then the type field in the account table for activecell should be Non-posting such that it doesn't throw this error.

dunice-igort commented 10 years ago

ok