Sha256: b6dc0e63c4e9d6f37b44af4777e93af6dc8aa35bf12456355d9ef30ec7c82225

Contents?: true

Size: 937 Bytes

Versions: 1

Compression:

Stored size: 937 Bytes

Contents

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

    mixins:[
        Lanes.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.8 client/skr/screens/customer-maint/CustomerMaint.coffee