element('customers', array ('config' => array ('grid_div_id' => 'customers-list', 'grid_div_class' => 'text-below', 'caption' => ('Select Customer'), 'grid_setup' => array('hiddengrid' => isset($customer['id'])), 'grid_events' => array('onSelectRow' => array('ids' => 'if (ids != null){onRowSelect("#"+$(this).attr("id"), ids);}'), 'onHeaderClick' => array('gridstate' => 'onGridState("#"+$(this).attr("id"), gridstate)'), ), 'action' => 'current', 'nolinks' => true, 'limit' => 20, ))); echo ('
' . '' . // END customer-selection-valid '' . '
' . "\n"); echo $this->element('statement_entries', array (// Grid configuration 'config' => array ( 'grid_div_id' => 'charge-entries', 'grid_div_class' => 'text-below', 'grid_events' => array('loadComplete' => 'onGridLoadComplete()'), 'grid_setup' => array('hiddengrid' => true), 'caption' => '', 'action' => 'unreconciled', 'exclude' => array('Customer', 'Type', 'Debit', 'Credit'), 'include' => array('Applied', 'Balance'), 'remap' => array('Received' => 'Paid'), 'limit' => 8, ), )); echo('
' . '' . // END customer-selection-valid '
' . "\n"); echo $form->create(null, array('id' => 'receipt-form', 'url' => array('controller' => 'transactions', 'action' => 'postReceipt'))); echo $form->input("id", array('id' => 'customer-id', 'type' => 'hidden', 'value' => 0)); echo $this->element('form_table', array('class' => "item receipt transaction entry", //'with_name_after' => ':', 'field_prefix' => 'Transaction', 'fields' => array ("stamp" => array('opts' => array('type' => 'text'), 'between' => 'Now', ), "comment" => array('opts' => array('size' => 50), ), ))); echo "
\n"; echo $form->input('repeat', array('type' => 'checkbox', 'id' => 'repeat', 'label' => 'Enter Multiple Receipts')) . "\n"; echo $form->submit('Generate Receipt') . "\n"; ?> Payments */ ?>
Add Another Payment */ ?> end('Generate Receipt'); ?> ' . "\n"; // End of the dialog DIV */ ?>