class Skr.Screens.Payments extends Skr.Screens.Base syncOptions: include: [ 'address', 'bank_account', 'category', 'vendor' ] dataObjects: payment: -> @loadOrCreateModel({ syncOptions: @syncOptions klass: Skr.Models.Payment prop: 'payment', attribute: 'visible_id' }) query: -> new Lanes.Models.Query({ syncOptions: @syncOptions src: Skr.Models.Payment, fields: [ {id:'id', visible: false} {id:'visible_id', label: 'Payment ID', fixedWidth: 130 }, {id:'name', flex: 1} { id:'amount', fixedWidth: 120, textAlign: 'right', format: Lanes.u.format.currency } ] }) getInitialState: -> commands: new Skr.Screens.Commands(this, modelName: 'payment') render: ->