2015-09-17 74 views
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 

回答

1

我做了谷歌搜索和源泉this link可能解決您的問題非常有用。否則,我們無法幫助你;應用程序是否超時,數據是否未發佈到快速預覽,日誌文件中是否有錯誤?