Sha256: 96f501300eb229652144cf7494c90bdd887bb0b34204982a589b6939b99ed050

Contents?: true

Size: 915 Bytes

Versions: 2

Compression:

Stored size: 915 Bytes

Contents

class Skr.Screens.VendorMaint 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.Vendor
        title: 'Find Vendor',
        invalid_chars: Skr.Models.Mixins.CodeField.invalidChars
        withAssociations: ['billing_address', 'shipping_address', 'terms']
        fields: [ 'code', 'name', 'notes' ]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stockor-0.1.9 client/skr/screens/vendor-maint/VendorMaint.coffee
stockor-0.1.8 client/skr/screens/vendor-maint/VendorMaint.coffee