projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0003896: Fixed Assets valuation report, location parameter not working
[fa-stable.git]
/
admin
/
void_transaction.php
diff --git
a/admin/void_transaction.php
b/admin/void_transaction.php
index af44b391851207ef62e7c19792141c12f1e65b5f..f490cb237fe8b195e6073e39e3b927bdd0ab19a1 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;
}