Skip to content

Commit

Permalink
Addition of TaxInclusiveAmt attribute Line.SalesItemLineDetail, `…
Browse files Browse the repository at this point in the history
…Line.ItemBasedExpenseLineDetail`, and `Line.AccountBasedExpenseLineDetail` line types

Closes #569
  • Loading branch information
ruckus committed Dec 8, 2021
1 parent cdb303b commit 1d5cee0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.19 (2021-12-08)

* Addition of `TaxInclusiveAmt` attribute `Line.SalesItemLineDetail`, `Line.ItemBasedExpenseLineDetail`, and `Line.AccountBasedExpenseLineDetail` line types.

## 1.0.18 (2021-09-09)

* bump roxml version to `~ 4.2` to resolve URI deprecation issues
Expand Down
1 change: 1 addition & 0 deletions lib/quickbooks/model/account_based_expense_line_detail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class AccountBasedExpenseLineDetail < BaseModel
xml_accessor :billable_status, :from => 'BillableStatus'
xml_accessor :tax_amount, :from => 'UnitPrice', :as => BigDecimal, :to_xml => to_xml_big_decimal
xml_accessor :tax_code_ref, :from => 'TaxCodeRef', :as => BaseReference
xml_accessor :tax_inclusive_amount, from: 'TaxInclusiveAmt', to_xml: Proc.new { |val| val.to_f }

reference_setters :customer_ref, :class_ref, :account_ref, :tax_code_ref

Expand Down
1 change: 1 addition & 0 deletions lib/quickbooks/model/item_based_expense_line_detail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class ItemBasedExpenseLineDetail < BaseModel
xml_accessor :tax_code_ref, :from => 'TaxCodeRef', :as => BaseReference
xml_accessor :customer_ref, :from => 'CustomerRef', :as => BaseReference
xml_accessor :billable_status, :from => 'BillableStatus'
xml_accessor :tax_inclusive_amount, from: 'TaxInclusiveAmt', to_xml: Proc.new { |val| val.to_f }

reference_setters :item_ref, :class_ref, :price_level_ref, :customer_ref, :tax_code_ref
end
Expand Down
1 change: 1 addition & 0 deletions lib/quickbooks/model/sales_item_line_detail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class SalesItemLineDetail < BaseModel
xml_accessor :quantity, :from => 'Qty', :as => BigDecimal, :to_xml => Proc.new { |val| val.to_f }
xml_accessor :tax_code_ref, :from => 'TaxCodeRef', :as => BaseReference
xml_accessor :service_date, :from => 'ServiceDate', :as => Date
xml_accessor :tax_inclusive_amount, from: 'TaxInclusiveAmt', to_xml: Proc.new { |val| val.to_f }

reference_setters :item_ref, :class_ref, :price_level_ref, :tax_code_ref
end
Expand Down
2 changes: 1 addition & 1 deletion lib/quickbooks/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Quickbooks

VERSION = "1.0.18"
VERSION = "1.0.19"

end

0 comments on commit 1d5cee0

Please sign in to comment.