28-Aug-2009 Joe Hunt
# The reference for deposits and payments didn't show up in Tax Report
-$ /gl/includes/db/gl_db_banking.inc
- /gl/includes/db/gl_db_trans.inc
+$ /reporting/rep709.php
# Minor bug in Quick Entries display
$ /includes/ui/ui_view.inc
$ex_rate = get_exchange_rate_from_home_currency($currency, $date_);
add_gl_tax_details($gl_item->code_id, $trans_type, $trans_no, -$amount,
- $ex_rate, $date_, $ref);
+ $ex_rate, $date_, $memo_);
}
// do the source account postings
}
// store tax details if the gl account is a tax account
add_gl_tax_details($journal_item->code_id,
- ($journal_item->amount < 0.0 ? 2 : 1), $trans_id, -$journal_item->amount, 1, $date_, $ref);
+ ($journal_item->amount < 0.0 ? 2 : 1), $trans_id, -$journal_item->amount, 1, $date_, $memo_);
}
if ($new) {
if (!$summaryOnly)
{
$rep->TextCol(0, 1, systypes::name($trans['trans_type']));
+ if ($trans['memo'] == '')
+ $trans['memo'] = get_reference($trans['trans_type'], $trans['trans_no']);
$rep->TextCol(1, 2, $trans['memo']);
$rep->DateCol(2, 3, $trans['tran_date'], true);
$rep->TextCol(3, 4, $trans['name']);