Sha256: c6e99a461e67ec38269bc13c2bdf52496f014659849a9214b133a27c45b5bfcb

Contents?: true

Size: 1.52 KB

Versions: 3

Compression:

Stored size: 1.52 KB

Contents

class Skr.Screens.BankMaint extends Skr.Screens.Base
    syncOptions:
        include: [ 'address' ]

    dataObjects:
        bank: ->
            @loadOrCreateModel({
                syncOptions: @syncOptions, klass: Skr.Models.BankAccount
                prop: 'bank', attribute: 'code'
            })

    getInitialState: ->
        commands: new Skr.Screens.Commands(this, modelName: 'bank', print: true)

    render: ->
        <LC.ScreenWrapper identifier="bank-maint">
            <SC.ScreenControls commands={@state.commands} />

            <BS.Row>
                <SC.BankAccountFinder ref='finder' label='Code' sm=3 xs=4 editOnly
                    syncOptions={@syncOptions} model={@bank}
                    commands={@state.commands} />

                <LC.Input sm=6 name="name" model={@bank} />

                <SC.GlAccountChooser sm=3 label="GL Account"
                    name="gl_account" model={@bank} />
            </BS.Row>
            <BS.Row>
                <LC.Input sm=12 name="description" model={@bank} />
            </BS.Row>

            <SC.Address lg=6 title="Address for Check Printing"
                model={@bank.address}  />

            <LC.FieldSet sm=12 title="Account Information *">
                <p>* Can be ommited if pre-printed checks are used</p>
                <BS.Row>
                    <LC.Input sm=6 name="routing_number" model={@bank} />
                    <LC.Input sm=6 name="account_number" model={@bank} />
                </BS.Row>
            </LC.FieldSet>
        </LC.ScreenWrapper>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stockor-0.4.0 client/skr/screens/bank-maint/BankMaint.cjsx
stockor-0.3.0 client/skr/screens/bank-maint/BankMaint.cjsx
stockor-0.2 client/skr/screens/bank-maint/BankMaint.cjsx