Sha256: 97e2ba1f56da30f6d7b8e16ff536ceecd92d94e8fb883b7fb53db93f524602ea

Contents?: true

Size: 844 Bytes

Versions: 10

Compression:

Stored size: 844 Bytes

Contents

module Economic
  class Order < Base
    field :attachment
    field :costPriceInBaseCurrency
    field :currency
    field :date
    field :dueDate
    field :exchangeRate
    field :grossAmount
    field :grossAmountInBaseCurrency
    field :lines
    field :marginInBaseCurrency
    field :marginPercentage
    field :netAmount
    field :netAmountInBaseCurrency
    field :orderNumber, id: true
    field :roundingAmount
    field :vatAmount

    relation :customer, fields: [:customerNumber]
    #   relation :delivery, fields: []
    #    relation :notes, fields: []
    relation :paymentTerms, fields: [:paymentTermsNumber]
    #   relation :pdf, fields: []
    #    relation :project, fields: []
    relation :recipient, fields: [:name]
    relation :references, fields: [:other]
    relation :layout, fields: [:layoutNumber]
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
economic-rest-0.4.6 lib/economic/order.rb
economic-rest-0.4.4 lib/economic/order.rb
economic-rest-0.4.3 lib/economic/order.rb
economic-rest-0.4.2 lib/economic/order.rb
economic-rest-0.4.1 lib/economic/order.rb
economic-rest-0.4.0 lib/economic/order.rb
economic-rest-0.3.6 lib/economic/order.rb
economic-rest-0.3.5 lib/economic/order.rb
economic-rest-0.3.4 lib/economic/order.rb
economic-rest-0.3.3 lib/economic/order.rb