Skip to content

Commit 9da751a

Browse files
authored
Update attachable.py
1 parent 9dc8e7e commit 9da751a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

quickbooks/objects/attachable.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ def to_ref(self):
4646
ref.value = self.Id
4747
return ref
4848

49-
def save(self):
50-
qb = QuickBooks()
49+
def save(self, qb=None):
50+
if not qb:
51+
qb = QuickBooks()
5152

5253
if self.Id and self.Id > 0:
5354
json_data = qb.update_object(self.qbo_object_name, self.to_json(), _file_path=self._FilePath)

0 commit comments

Comments
 (0)