Sha256: fe3ff6b8f28fbb3a637e026429391c0f588190171fd17b6dc74747e133a1cde3

Contents?: true

Size: 935 Bytes

Versions: 1

Compression:

Stored size: 935 Bytes

Contents

class Skr.Screens.CustomerMaint extends Skr.Screens.Base

    mixins:[
        Skr.Screens.Mixins.Editing
    ]

    useFormBindings: true

    subviews:
        terms:
            component: 'SelectField'
            model: 'model'
            options: { association: 'terms', mappings: { title: 'code' } }
        billaddr:
            component: 'Address'
            model: 'model.billing_address'
            options: { field_name: 'billing_address_id' }
        shipaddr:
            component: 'Address'
            model: 'model.shipping_address'
            options: ->{ copyFrom: this.billaddr, field_name: 'shipping_address_id' }

    finderOptions: ->
        modelClass: Skr.Models.Customer
        title: 'Find Customer',
        invalid_chars: Skr.Models.Mixins.CodeField.invalidChars
        withAssociations: ['billing_address', 'shipping_address', 'terms']
        fields: [ 'code', 'name', 'notes', 'credit_limit' ]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stockor-0.1.7 client/skr/screens/customer-maint/CustomerMaint.coffee