Skip to content

aklaiber/invoice_number

Repository files navigation

InvoiceNumber

Build Status Gem Version Code Climate Dependencies Status

A small and easy invoice number generator

Installation

Add this line to your application's Gemfile:

gem 'invoice_number'

And then execute:

$ bundle

Or install it yourself as:

$ gem install invoice_number

Usage

  InvoiceNumber::Builder.new.create # => INVOICE-0000001
  InvoiceNumber::Builder.new.create('INVOICE-0000001') # => INVOICE-0000001

Change prefix:

  InvoiceNumber::Builder.new(prefix: 'INVOICE_NUMBER').create # => INVOICE_NUMBER-0000001 
  InvoiceNumber::Builder.new(prefix: 'INVOICE_NUMBER').create('INVOICE_NUMBER-0000001') # => INVOICE_NUMBER-0000002 

Contributing

  1. Fork it ( http://github.com/aklaiber/invoice_number/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

A small and easy invoice number generator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages