Skip to content

Commit

Permalink
Fixed issue with update mixin.
Browse files Browse the repository at this point in the history
  • Loading branch information
ej2 committed Sep 18, 2015
1 parent 10dacbe commit cb542f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quickbooks/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class UpdateMixin(object):
def save(self):
qb = QuickBooks()

if self.Id > 0:
if self.Id and self.Id > 0:
json_data = qb.update_object(self.qbo_object_name, self.to_json())
else:
json_data = qb.create_object(self.qbo_object_name, self.to_json())
Expand Down

0 comments on commit cb542f4

Please sign in to comment.