Sha256: 388ce8dd599a817a8a55f1c00bf614d80f100e336ac2bf83c104e4f1f554f2db
Contents?: true
Size: 407 Bytes
Versions: 1
Compression:
Stored size: 407 Bytes
Contents
module InvoiceTest class InvoicePlugin < Killbill::Plugin::Invoice def get_additional_invoice_items(invoice, properties, context) additional_items = [] invoice.invoice_items.each do |original_item| additional_items << build_item(original_item, original_item.amount * 7 / 100, 'Tax item', :TAX) unless original_item.amount == 0 end additional_items end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
killbill-invoice-test-0.0.1 | lib/invoice_test/api.rb |