We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10dacbe commit cb542f4Copy full SHA for cb542f4
quickbooks/mixins.py
@@ -59,7 +59,7 @@ class UpdateMixin(object):
59
def save(self):
60
qb = QuickBooks()
61
62
- if self.Id > 0:
+ if self.Id and self.Id > 0:
63
json_data = qb.update_object(self.qbo_object_name, self.to_json())
64
else:
65
json_data = qb.create_object(self.qbo_object_name, self.to_json())
0 commit comments