Sha256: 4240bae12d465bdfb1b84a930bb769a44850ad1820c2782aeb892982f4bf8352

Contents?: true

Size: 912 Bytes

Versions: 33

Compression:

Stored size: 912 Bytes

Contents

module Comee
  module Core
    class SalesOrderSerializer < ActiveModel::Serializer
      attributes :id, :order_number, :order_date, :order_terms, :destination, :handover_date, :shipping_date,
                 :delivery_date, :consignee, :parent_client_name, :payment_term, :delivery_term, :payment_penalty,
                 :status, :purchase_status, :total_price, :amount_paid, :pallete_note, :vat, :consolidator_date,
                 :voyage_no, :shipping_arrangement, :remark, :created_by, :files_url, :created_at
      belongs_to :customer_order
      belongs_to :client
      belongs_to :shipment_address, serializer: ClientAddressSerializer
      belongs_to :delivery_address, serializer: ClientAddressSerializer
      belongs_to :invoice_address, serializer: ClientAddressSerializer
      belongs_to :fulfillment_center
      has_many :sales_order_items
      has_one :customs_detail
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
comee_core-0.3.41 app/serializers/comee/core/sales_order_serializer.rb
comee_core-0.3.40 app/serializers/comee/core/sales_order_serializer.rb
comee_core-0.3.39 app/serializers/comee/core/sales_order_serializer.rb
comee_core-0.3.38 app/serializers/comee/core/sales_order_serializer.rb
comee_core-0.3.37 app/serializers/comee/core/sales_order_serializer.rb
comee_core-0.3.36 app/serializers/comee/core/sales_order_serializer.rb
comee_core-0.3.35 app/serializers/comee/core/sales_order_serializer.rb
comee_core-0.3.34 app/serializers/comee/core/sales_order_serializer.rb
comee_core-0.3.33 app/serializers/comee/core/sales_order_serializer.rb
comee_core-0.3.32 app/serializers/comee/core/sales_order_serializer.rb
comee_core-0.3.31 app/serializers/comee/core/sales_order_serializer.rb
comee_core-0.3.30 app/serializers/comee/core/sales_order_serializer.rb
comee_core-0.3.29 app/serializers/comee/core/sales_order_serializer.rb