Sha256: 7ce70af7f0fa347f27b9296175540af0e4db72e12c1f2017fb18e4f896c99fb8

Contents?: true

Size: 870 Bytes

Versions: 1

Compression:

Stored size: 870 Bytes

Contents

class Skr.Screens.PaymentCategory extends Skr.Screens.Base

    dataObjects:
        category: ->
            @loadOrCreateModel({
                klass: Skr.Models.PaymentCategory
                prop: 'category', attribute: 'code'
            })

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

    render: ->
        <LC.ScreenWrapper identifier="payment-category">
            <SC.ScreenControls commands={@state.commands} />
            <BS.Row>

                <SC.PaymentCategoryFinder name='code' editOnly
                    commands={@state.commands} model={@category} />

                <LC.Input sm=9 name='name' model={@category} />

                <SC.GlAccountChooser sm=3 label="GL Account"
                    name="gl_account" model={@category} />

            </BS.Row>

        </LC.ScreenWrapper>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stockor-0.4.0 client/skr/screens/payment-category/PaymentCategory.cjsx