Sha256: f53087ec1cf7244630a2f03c18d410697978116ce1425a2a7c9a7b27ad9abea5

Contents?: true

Size: 484 Bytes

Versions: 147

Compression:

Stored size: 484 Bytes

Contents

require 'autoinc'

#
# Invoice - for wasya.co
# _vp_ 20171031
#
class Ish::Invoice
  include Mongoid::Document
  include Mongoid::Timestamps
  include Mongoid::Autoinc

  store_in :collection => 'ish_invoice'

  field :email, :type => String

  field :number, :type => Integer
  increments :number

  field :amount, :type => Integer

  has_many :payments, :class_name => 'Ish::Payment'
  field :paid_amount, :type => Integer, :default => 0

  field :description, :type => String

end

Version data entries

147 entries across 147 versions & 1 rubygems

Version Path
ish_models-0.0.33.258 lib/ish/invoice.rb
ish_models-0.0.33.257 lib/ish/invoice.rb
ish_models-0.0.33.256 lib/ish/invoice.rb
ish_models-0.0.33.255 lib/ish/invoice.rb
ish_models-0.0.33.254 lib/ish/invoice.rb
ish_models-0.0.33.253 lib/ish/invoice.rb
ish_models-0.0.33.252 lib/ish/invoice.rb
ish_models-0.0.33.251 lib/ish/invoice.rb
ish_models-0.0.33.250 lib/ish/invoice.rb
ish_models-0.0.33.249 lib/ish/invoice.rb
ish_models-0.0.33.248 lib/ish/invoice.rb
ish_models-0.0.33.247 lib/ish/invoice.rb
ish_models-0.0.33.246 lib/ish/invoice.rb
ish_models-0.0.33.245 lib/ish/invoice.rb
ish_models-0.0.33.244 lib/ish/invoice.rb
ish_models-0.0.33.243 lib/ish/invoice.rb
ish_models-0.0.33.242 lib/ish/invoice.rb
ish_models-0.0.33.241 lib/ish/invoice.rb
ish_models-0.0.33.240 lib/ish/invoice.rb
ish_models-0.0.33.239 lib/ish/invoice.rb