-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update to most recent #17
base: master
Are you sure you want to change the base?
Conversation
…lein#115) * making expenses optional and adding items support for vendor_bill * adding test
@@ -503,6 +506,16 @@ def upsert(self, record): | |||
return record_ref | |||
else: | |||
exc = self._request_error('upsert', detail=status['statusDetail'][0]) | |||
|
|||
if record_type: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this second param is only for error parsing. I think upsertList
should be unaffected by this. We just won't get the benefits of whatever this does.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like the way this is implemented anyhow. You could pass "journal_entry" as the second param in an upsert to a Bill. I wonder what happens then.
@@ -16,7 +18,6 @@ class VendorBills(ApiBase): | |||
'memo', | |||
'tranDate', | |||
'tranId', | |||
'itemList', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the changes here are to support customFields for items. We don't use item based lines, so we're in the clear. 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating this!
I had merge conflicts in vendor bills that need to be looked at closely.
I also notice that the upsert calls are providing a second parameter. Will need to figure out if this is required for upsert_list as well.