Skip to content

Commit cb542f4

Browse files
committed
Fixed issue with update mixin.
1 parent 10dacbe commit cb542f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quickbooks/mixins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class UpdateMixin(object):
5959
def save(self):
6060
qb = QuickBooks()
6161

62-
if self.Id > 0:
62+
if self.Id and self.Id > 0:
6363
json_data = qb.update_object(self.qbo_object_name, self.to_json())
6464
else:
6565
json_data = qb.create_object(self.qbo_object_name, self.to_json())

0 commit comments

Comments
 (0)