Description |
This basically worked like the attachment tab.
First thing is to add the Payment tab
{noformat} \{
xtype: 'panel',
itemId: 'pnlPayments',
layout: 'fit',
title: 'Payments',
items: [
\{
xtype: 'paymentgrid',
itemId: 'grdInvoicePayment',
margin: -1,
columnLines: true,
columns: [
\{
xtype: 'gridcolumn',
dataIndex: 'string',
text: 'String'
\}
]
\}
]
\}{noformat}
Next is to add this in the context setup
{noformat} payment: Ext.create('iRely.mvvm.payment.Manager', \{
type: 'AccountsReceivable.Invoice',
window: win,
details: \{
dblTotal: 'dblInvoiceTotal',
dblPreviousPayments: '',
dblDiscount: 'dblDiscount',
dblAmountDue: 'dblAmountDue',
strTransactionId: 'strInvoiceNumber'
\}
\}){noformat}
|