基本用法
seller = Seller.find(3)
book = Book.find(1) # implements CostItem
decorations = {whatever_you_want: 'here'}
invoice = Uomi::generate_invoice do
from seller
line_item book
due Time.now + 7.days
payment_reference "REF2345"
decorate_with decorations
end
发票编号:
将使用 INV[invoice id] 格式设置默认发票编号。
自定义发票编号可以指定如下:
invoice = Uomi::generate_invoice do
numbered "CUSTOMREF123"
end
您可以指定包含发票
评论0
最新资源