element('table', */ /* array('class' => 'item transaction detail', */ /* 'caption' => 'Transaction Detail', */ /* 'rows' => $rows, */ /* 'column_class' => array('field', 'value'))); */ /********************************************************************** * Transaction Info Box */ ?> 'function(ids) { if (ids != null) { onRowSelect("#"+$(this).attr("id"), ids); } }' ); // Customer // Outstanding balance // Balance on each lease // Balance on personal account // Multiple fields for payments (cash, check, charge, etc) // How to apply (even split, oldest charges first, etc) ?> ' . "\n"; echo $this->element('customers', array('grid_div_id' => 'customers-list', 'caption' => ('Select Customer'), 'limit' => 7, 'grid_setup' => $grid_setup, )); echo $this->element('ledger_entries', array('grid_div_id' => 'charge-entries', 'caption' => 'Outstanding Charges', /* (isset($customer['name']) */ /* ? " for {$customer['name']}: ".FormatHelper::currency($charges['balance']) */ /* : '')), */ 'limit' => 8, 'ledger_id' => 6, 'account_type' => 'credit', 'ledger_entries' => $charges['entry'], )); echo ('

' . '' . 'Enter new receipt for ' . '' . (isset($customer['name']) ? $customer['name'] : "") . '' . '' . '' . 'Please select customer' . '' . '

' . "\n"); echo $form->create(null, array('id' => 'payment-form', 'url' => array('controller' => 'transactions', 'action' => 'postReceipt'))); /*************************************************** * Post data should look like this: * * data => Array * ( * [Transaction] => Array * ( * stamp => * through_date => * due_date => * comment => * ) * * [LedgerEntry] => Array * ( * [0] => Array * ( * name => * amount => * debit_ledger_id => * credit_ledger_id => * comment => * * [MonetarySource] => Array * ( * name => * monetary_type_id => * comment => * ) * * REVISIT: Reconciliations will be tricker. * ) * * ) * * ) * ***************************************************/ ?>
Payments
Add Another Payment

' . "\n"; echo 'Comment:
' . "\n"; echo $form->end('Post Payment'); //echo '
' . "\n"; // End of the dialog DIV ?> Create Payment */ ?>

Request

Response

Output

Clear Debug Output