Project

uomi

0.0
No commit activity in last 3 years
No release in over 3 years
Manage invoices.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Build Status

Basic Usage

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

Invoice Numbering:

A default invoice number will be set with the format INV[invoice id].

A custom invoice number can be specified as follows:

invoice = Uomi::generate_invoice do
  numbered "CUSTOMREF123"
end

You can specify a custom invoice number containing the invoice id as follows:

invoice = Uomi::generate_invoice do
  numbered "CUSTOMREF{id}"
end