' . "\n";
$customer = $entry['Customer'];
$transaction = $entry['Transaction'];
$account = $entry['Account'];
if (isset($entry['StatementEntry']))
$entry = $entry['StatementEntry'];
// We're not actually using a grid to select the customer,
// but selection-text makes for reasonable formatting
echo ('
' .
'
' . "\n");
echo ('| ' . $customer['name'] . ' | ' .
' ' . '(Customer #' . $customer['id'] . ')' . ' | ' .
'
' . "\n");
echo ('| ' . $account['name'] . ' | ' .
' ' . '(StatementEntry #' . $entry['id'] . ')' . ' | ' .
'
' . "\n");
echo ('| Amount: | ' .
' ' . FormatHelper::currency($entry['amount']) . ' | ' .
'
' . "\n");
echo ('
' .
'
' . "\n");
echo $form->create(null, array('id' => 'reverse-form',
'url' => array('action' => 'reverse'))) . "\n";
echo $form->input("StatementEntry.id",
array('type' => 'hidden',
'value' => $entry['id'])) . "\n";
echo $this->element('form_table',
array('class' => "item reverse transaction entry",
//'with_name_after' => ':',
'field_prefix' => 'Transaction',
'fields' => array
("stamp" => array('opts' => array('type' => 'text'),
'between' => 'Now',
),
"comment" => array('opts' => array('size' => 50),
),
))) . "\n";
echo $form->end('Reverse Charge');
?>