Sha256: 166879f517981d44e9fd75f56d9f6a51872e6fa63a4b00d8ac30984fca0fcd28

Contents?: true

Size: 964 Bytes

Versions: 2

Compression:

Stored size: 964 Bytes

Contents

class Skr.Screens.Invoice.Payment extends Lanes.React.Component

    dataObjects:
        invoice: 'props'

    componentDidMount: ->
        @invoice.amount_paid = @invoice.open_amount

    onEnter: -> @props.modal.onButton()

    render: ->
        <LC.ScreenWrapper identifier="payment">
            <BS.Row>

                <LC.DisplayValue name='total' getValue={->
                    _.sprintf('%0.2f', Number(@total))
                } model={@invoice} align='right' />

                <LC.DisplayValue name='prev_amount_paid' label='Amount Paid' getValue={->
                    _.sprintf('%0.2f', Number(@prev_amount_paid))
                } model={@invoice} align='right' />

                <LC.Input label='Amount' editOnly autoFocus getValue={->
                    _.sprintf('%0.2f', Number(@amount_paid))
                } onEnter={@onEnter} name='amount_paid' align='right' model={@invoice} />

            </BS.Row>
        </LC.ScreenWrapper>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stockor-0.3.0 client/skr/screens/invoice/Payment.cjsx
stockor-0.2 client/skr/screens/invoice/Payment.cjsx