mirror of
https://github.com/rickbarrette/redmine_qbo_lineitems.git
synced 2026-04-02 07:01:59 -04:00
Default to taxable, otherwise folllow tax flag
This commit is contained in:
@@ -58,7 +58,7 @@ class BillLineItemsJob < ActiveJob::Base
|
||||
line.sales_item! do |detail|
|
||||
detail.unit_price = item.unit_price
|
||||
detail.quantity = item.quantity
|
||||
detail.tax_code_ref = Quickbooks::Model::BaseReference.new("TAX")
|
||||
detail.tax_code_ref = Quickbooks::Model::BaseReference.new("TAX") item.item.nil? || item.item.taxable
|
||||
end
|
||||
|
||||
estimate.line_items << line
|
||||
|
||||
Reference in New Issue
Block a user