Sha256: 3d1f48e4cb21db0e748cac7a349b0f9845dd5fca07dc4678b5a5dfd52a7bab65

Contents?: true

Size: 1.18 KB

Versions: 3

Compression:

Stored size: 1.18 KB

Contents

class Skr.Models.Vendor extends Skr.Models.Base


    props:
        id:                    {type:"integer"}
        billing_address_id:    {type:"integer"}
        shipping_address_id:   {type:"integer"}
        terms_id:              {type:"integer"}
        gl_payables_account_id:{type:"integer"}
        gl_freight_account_id: {type:"integer"}
        code:                  {type:"code"}
        hash_code:             {type:"string"}
        name:                  {type:"string", required: true}
        notes:                 "string"
        account_code:          "string"
        website:               "string"

    mixins: ['HasCodeField']

    associations:
        billing_address:     { model: "Address" }
        shipping_address:    { model: "Address" }
        terms:               { model: "PaymentTerm", required: true }
        gl_payables_account: { model: "GlAccount",   required: true }
        gl_freight_account:  { model: "GlAccount",   required: true }
        purchase_orders:     { collection: "PurchaseOrder" }
        vouchers:            { collection: "Voucher" }
        vendor_skus:         { collection: "SkuVendor" }
        sku_vendors:         { collection: "SkuVendor" }

Version data entries

3 entries across 3 versions & 1 rubygems

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