0
我想在快速書中應用折扣價值,但由於某些原因折扣不適用於Quickbook。你能指導我如何解決這個問題?如何在Quick Book中設置折扣價值?
https://github.com/ruckus/quickbooks-ruby/issues/267
折扣值碼:
discount_amount = discount_value
discount_line_item = Quickbooks::Model::InvoiceLineItem.new
discount_line_item.amount = discount_amount#149
discount_line_item.discount_item! do |detail|
detail.discount_account_id = 48
end
Discount percentage code:
discount_line_item = Quickbooks::Model::InvoiceLineItem.new
discount_line_item.amount = discount_percentage_value#149
discount_line_item.discount_item! do |detail|
detail.discount_percent = discount_percentage_value#60
detail.percent_based = percent_based
detail.discount_account_id = 48
end
invoice.line_items << discount_line_item