// Note: in 2.4.9 sparse 'ref' argument was removed (generated transactions use
// next references from default refline).
//
-function add_exchange_variation_all($date=null, $memo)
+function add_exchange_variation_all($date, $memo)
{
begin_transaction();
$exchanged = false;
{
begin_transaction();
delete_comments(ST_BANKTRANSFER, $trans_no);
- void_transaction(ST_BANKTRANSFER, $trans_no, Today(), _("Document reentered."));
+ void_transaction(ST_BANKTRANSFER, $trans_no, $date_, _("Document reentered."));
void_gl_trans(ST_BANKTRANSFER, $trans_no, true);
$new_trans_no = add_bank_transfer(
$from_account, $to_account, $date_, $amount,
// otherwise the operation could fail for cash accounts due to temporary negative balance
if ($old_trans)
{
- $msg = void_transaction($trans_type, $old_trans, Today(), _("Document reentered."));
+ $msg = void_transaction($trans_type, $old_trans, $date_, _("Document reentered."));
if ($msg)
{
display_error($msg);