Sha256: f2adb2d23d55db1108eafe91102316ede54924933e6fa12d534349a3366a5462

Contents?: true

Size: 843 Bytes

Versions: 10

Compression:

Stored size: 843 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: []
    relation :layout, fields: [:layoutNumber]
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
economic-rest-0.3.2 lib/economic/order.rb
economic-rest-0.3.1 lib/economic/order.rb
economic-rest-0.3.0 lib/economic/order.rb
economic-rest-0.2.8 lib/economic/order.rb
economic-rest-0.2.7 lib/economic/order.rb
economic-rest-0.2.5 lib/economic/order.rb
economic-rest-0.2.4 lib/economic/order.rb
economic-rest-0.2.3 lib/economic/order.rb
economic-rest-0.2.1 lib/economic/order.rb
economic-rest-0.2.0 lib/economic/order.rb