Sha256: 45dffa4303d65b7dd0d76d8f43326b7ecd19e6c7d186fceca2f7a8870ca00d35

Contents?: true

Size: 926 Bytes

Versions: 4

Compression:

Stored size: 926 Bytes

Contents

class Skr.Models.PurchaseOrder extends Skr.Models.Base


    props:
        id:                    {type:"integer"}
        visible_id:            {type:"visible_id"}
        vendor_id:             {type:"integer"}
        location_id:           {type:"integer"}
        ship_addr_id:          {type:"integer"}
        terms_id:              {type:"integer"}
        state:              {type:"integer"}
        is_revised:            {type:"boolean", default:false}
        order_date:            {type:"any"}
        receiving_completed_at:"date"

    mixins: [ 'HasVisibleId' ]

    enums:
        state:
            open: 1
            received: 2

    associations:
        terms:     { model: "PaymentTerm" }
        vendor:    { model: "Vendor" }
        location:  { model: "Location" }
        ship_addr: { model: "Address" }
        lines:     { collection: "PoLine" }
        receipts:  { collection: "PoReceipt" }

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stockor-0.5.0 client/skr/models/PurchaseOrder.coffee
stockor-0.4.0 client/skr/models/PurchaseOrder.coffee
stockor-0.3.0 client/skr/models/PurchaseOrder.coffee
stockor-0.2 client/skr/models/PurchaseOrder.coffee