' . "\n"; echo '

Issue Refund

' . "\n"; echo '

Enter the amount to refund, and the account to pay it from.' . "\n"; echo '


' . "\n"; if (isset($lease)) { $customer = $lease['Customer']; $unit = $lease['Unit']; } if (isset($customer['Customer'])) $customer = $customer['Customer']; if (isset($lease['Lease'])) $lease = $lease['Lease']; // We're not actually using a grid to select the customer / lease // but we could/should be, and the result would be selection-text echo ('

' . '' . "\n"); echo ('' . ' ' . '' . "\n"); if (isset($lease)) echo ('' . ' ' . '' . "\n"); echo ('' . ' ' . '' . "\n"); echo ('
' . $customer['name'] . '' . '(Customer #' . $customer['id'] . ')' . '
' . 'Unit ' . $unit['name'] . '' . '(Lease #' . $lease['number'] . ')' . '
Refundable Balance:' . FormatHelper::currency($balance) . '
' . '
' . "\n"); echo $form->create(null, array('id' => 'refund-form', 'url' => array('controller' => 'transactions', 'action' => 'postRefund'))); // REVISIT : 20090805 // Add Tender information to log specifically _how_ refund was paid. echo $this->element('form_table', array('class' => "item refund transaction entry", //'with_name_after' => ':', 'field_prefix' => 'Transaction', 'fields' => array ("stamp" => array('opts' => array('type' => 'text'), 'between' => 'Now', ), "amount" => array('prefix' => 'Entry.0', 'opts' => array('value' => FormatHelper::currency($balance, false, ''), ), ), "account_id" => array('prefix' => 'Entry.0', 'name' => 'Account', 'opts' => array('options' => $refundAccounts, 'value' => $defaultAccount, ), ), "comment" => array('opts' => array('size' => 50), ), ))) . "\n"; echo $form->input("Customer.id", array('type' => 'hidden', 'value' => $customer['id'])) . "\n"; if (isset($lease['id'])) echo $form->input("Lease.id", array('type' => 'hidden', 'value' => $lease['id'])) . "\n"; echo $form->end('Issue Refund'); ?>