Sha256: e4156984a6cf74028ceec3975aa95d39e3263c6f911932127ac7eaa790c4c8ae

Contents?: true

Size: 1.15 KB

Versions: 2

Compression:

Stored size: 1.15 KB

Contents

class Skr.Models.Customer extends Skr.Models.Base


    props:
        id:                       {"type":"integer","required":true}
        code:                     {"type":"string","required":true}
        billing_address_id:       {"type":"integer","required":true}
        shipping_address_id:      {"type":"integer","required":true}
        terms_id:                 {"type":"integer","required":true}
        gl_receivables_account_id:{"type":"integer","required":true}
        credit_limit:             "bigdec"
        open_balance:             "bigdec"
        hash_code:                {"type":"string","required":true}
        name:                     {"type":"string","required":true}
        notes:                    "string"
        website:                  "string"
        options:                  "any"

    associations:
        billing_address:        { model: "Address" }
        shipping_address:       { model: "Address" }
        terms:                  { model: "PaymentTerm" }
        gl_receivables_account: { model: "GlAccount" }
        sales_orders:           { collection: "SalesOrder" }
        invoices:               { collection: "Invoice" }

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stockor-0.1.8 client/skr/models/Customer.coffee
stockor-0.1.7 client/skr/models/Customer.coffee