element('leases', array ('config' => array ('grid_div_id' => 'leases-list', 'grid_div_class' => 'text-below', 'caption' => ('Select Lease'), 'grid_setup' => array('hiddengrid' => isset($lease['id'])), 'grid_events' => array('onSelectRow' => array('ids' => 'if (ids != null){onRowSelect("#"+$(this).attr("id"), ids);}'), 'onHeaderClick' => array('gridstate' => 'onGridState("#"+$(this).attr("id"), gridstate)'), ), 'include' => array('Charge-Thru'), 'exclude' => array('Closed', 'Paid-Thru'), 'action' => 'active', 'nolinks' => true, 'limit' => 10, ))); echo ('
' . '' . '' . '
' . "\n"); echo $form->create(null, array('id' => 'invoice-form', 'url' => array('controller' => 'transactions', 'action' => 'postInvoice'))); echo $form->input("Lease.id", array('id' => 'lease-id', 'type' => 'hidden', 'value' => 0)); echo $form->input("Customer.id", array('id' => 'customer-id', 'type' => 'hidden', 'value' => 0)); /* echo '
' . "\n"; */ /* echo ' Invoice' . "\n"; */ echo $this->element('form_table', array('class' => "item invoice 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"; */ if (empty($movein)) { echo "
\n"; echo $form->input('repeat', array('type' => 'checkbox', 'id' => 'repeat', 'label' => 'Enter Multiple Invoices')) . "\n"; } echo $form->submit('Generate Invoice') . "\n"; ?>
Charges
Add Another Charge
end('Generate Invoice'); ?>