projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug in php 7.1 when using $go_debug>0 in config.php. Only a warning. Work around.
[fa-stable.git]
/
admin
/
void_transaction.php
diff --git
a/admin/void_transaction.php
b/admin/void_transaction.php
index af44b391851207ef62e7c19792141c12f1e65b5f..7511a85d1ab51da30c17aa9574598c730914925d 100644
(file)
--- a/
admin/void_transaction.php
+++ b/
admin/void_transaction.php
@@
-73,7
+73,7
@@
function exist_transaction($type, $type_no)
return false;
case ST_SUPPRECEIVE : // it's a GRN
return false;
case ST_SUPPRECEIVE : // it's a GRN
- if (
exists_grn_on_invoices
($type_no))
+ if (
!exists_grn
($type_no))
return false;
break;
return false;
break;
@@
-104,7
+104,6
@@
function exist_transaction($type, $type_no)
return false;
case ST_COSTUPDATE : // it's a stock cost update
return false;
return false;
case ST_COSTUPDATE : // it's a stock cost update
return false;
- break;
}
return true;
}
return true;
@@
-241,7
+240,7
@@
function check_valid_entries()
{
display_error(_("The selected transaction was closed for edition and cannot be voided."));
set_focus('trans_no');
{
display_error(_("The selected transaction was closed for edition and cannot be voided."));
set_focus('trans_no');
- return;
+ return
false
;
}
if (!is_date($_POST['date_']))
{
}
if (!is_date($_POST['date_']))
{
@@
-251,7
+250,7
@@
function check_valid_entries()
}
if (!is_date_in_fiscalyear($_POST['date_']))
{
}
if (!is_date_in_fiscalyear($_POST['date_']))
{
- display_error(_("The entered date is
not in fiscal year
."));
+ display_error(_("The entered date is
out of fiscal year or is closed for further data entry
."));
set_focus('date_');
return false;
}
set_focus('date_');
return false;
}
@@
-320,6
+319,7
@@
if (isset($_POST['ProcessVoiding']))
if (isset($_POST['ConfirmVoiding']))
{
handle_void_transaction();
if (isset($_POST['ConfirmVoiding']))
{
handle_void_transaction();
+ $selected_id = '';
$Ajax->activate('_page_body');
}
$Ajax->activate('_page_body');
}