From 10c47a95c829a4bb2dcf978e6f2f355fc5ebc6ae Mon Sep 17 00:00:00 2001 From: "Jared M. Smith" Date: Fri, 28 Jul 2023 17:50:03 -0500 Subject: [PATCH 1/4] Update detailline.py --- quickbooks/objects/detailline.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/quickbooks/objects/detailline.py b/quickbooks/objects/detailline.py index c12b31e..094287e 100644 --- a/quickbooks/objects/detailline.py +++ b/quickbooks/objects/detailline.py @@ -115,7 +115,6 @@ def __init__(self): self.UnitPrice = 0 self.Qty = 0 self.ServiceDate = "" - self.TaxInclusiveAmt = 0 self.MarkupInfo = None self.ItemRef = None @@ -177,8 +176,6 @@ class AccountBasedExpenseLineDetail(QuickbooksBaseObject): def __init__(self): super(AccountBasedExpenseLineDetail, self).__init__() self.BillableStatus = None - self.TaxAmount = 0 - self.TaxInclusiveAmt = 0 self.CustomerRef = None self.AccountRef = None @@ -237,7 +234,6 @@ def __init__(self): super(ItemBasedExpenseLineDetail, self).__init__() self.BillableStatus = None self.UnitPrice = 0 - self.TaxInclusiveAmt = 0 self.Qty = 0 self.ItemRef = None self.ClassRef = None From 4335643532922b2ba9811aa941e4422c326cda1c Mon Sep 17 00:00:00 2001 From: "Jared M. Smith" Date: Fri, 28 Jul 2023 17:53:31 -0500 Subject: [PATCH 2/4] Update test_detailline.py --- tests/unit/objects/test_detailline.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/unit/objects/test_detailline.py b/tests/unit/objects/test_detailline.py index 298994f..a0bf19d 100644 --- a/tests/unit/objects/test_detailline.py +++ b/tests/unit/objects/test_detailline.py @@ -94,7 +94,6 @@ def test_init(self): self.assertEqual(detail.BillableStatus, None) self.assertEqual(detail.UnitPrice, 0) - self.assertEqual(detail.TaxInclusiveAmt, 0) self.assertEqual(detail.Qty, 0) self.assertEqual(detail.ItemRef, None) self.assertEqual(detail.ClassRef, None) From c0e1dc25f4752ed19c1d6c464f04ac8cb4441869 Mon Sep 17 00:00:00 2001 From: jaredthecoder Date: Fri, 15 Sep 2023 13:20:58 -0400 Subject: [PATCH 3/4] Fix taxinclusiveamt and vendor setting 1099 creation --- quickbooks/objects/detailline.py | 4 ++++ quickbooks/objects/vendor.py | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/quickbooks/objects/detailline.py b/quickbooks/objects/detailline.py index 094287e..de34cd0 100644 --- a/quickbooks/objects/detailline.py +++ b/quickbooks/objects/detailline.py @@ -1,4 +1,5 @@ from six import python_2_unicode_compatible + from .base import QuickbooksBaseObject, Ref, CustomField, LinkedTxn, MarkupInfo @@ -115,6 +116,7 @@ def __init__(self): self.UnitPrice = 0 self.Qty = 0 self.ServiceDate = "" + self.TaxInclusiveAmt = 0 self.MarkupInfo = None self.ItemRef = None @@ -176,6 +178,7 @@ class AccountBasedExpenseLineDetail(QuickbooksBaseObject): def __init__(self): super(AccountBasedExpenseLineDetail, self).__init__() self.BillableStatus = None + self.TaxInclusiveAmt = 0 self.CustomerRef = None self.AccountRef = None @@ -235,6 +238,7 @@ def __init__(self): self.BillableStatus = None self.UnitPrice = 0 self.Qty = 0 + self.TaxInclusiveAmt = 0 self.ItemRef = None self.ClassRef = None self.PriceLevelRef = None diff --git a/quickbooks/objects/vendor.py b/quickbooks/objects/vendor.py index a0e2f9e..d5d6e64 100644 --- a/quickbooks/objects/vendor.py +++ b/quickbooks/objects/vendor.py @@ -1,4 +1,5 @@ from six import python_2_unicode_compatible + from .base import Address, PhoneNumber, EmailAddress, WebAddress, Ref, QuickbooksBaseObject, \ QuickbooksManagedObject, QuickbooksTransactionEntity @@ -51,7 +52,7 @@ def __init__(self): self.Balance = 0 self.BillRate = 0 self.AcctNum = "" - self.Vendor1099 = True + self.Vendor1099 = False self.TaxReportingBasis = "" self.BillAddr = None From 209ab024e7806f5cfa3831aeafeafa5b9ec66d74 Mon Sep 17 00:00:00 2001 From: jaredthecoder Date: Sun, 24 Dec 2023 14:11:43 -0500 Subject: [PATCH 4/4] Remove six imports added mistakenly --- quickbooks/objects/detailline.py | 1 - quickbooks/objects/vendor.py | 1 - 2 files changed, 2 deletions(-) diff --git a/quickbooks/objects/detailline.py b/quickbooks/objects/detailline.py index 216d0f8..f27449f 100644 --- a/quickbooks/objects/detailline.py +++ b/quickbooks/objects/detailline.py @@ -1,4 +1,3 @@ -from six import python_2_unicode_compatible from .base import QuickbooksBaseObject, Ref, CustomField, LinkedTxn, MarkupInfo diff --git a/quickbooks/objects/vendor.py b/quickbooks/objects/vendor.py index 1d4480a..dec0cfd 100644 --- a/quickbooks/objects/vendor.py +++ b/quickbooks/objects/vendor.py @@ -1,4 +1,3 @@ -from six import python_2_unicode_compatible from .base import Address, PhoneNumber, EmailAddress, WebAddress, Ref, QuickbooksBaseObject, \ QuickbooksManagedObject, QuickbooksTransactionEntity