projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed exchange rate storage in GRN transactions.
[fa-stable.git]
/
inventory
/
transfers.php
diff --git
a/inventory/transfers.php
b/inventory/transfers.php
index b04c7d87cd0db347d7f189407a957a23beb2908b..2dbd00b3dd7192c5c3d5868db18c1c3756a2265a 100644
(file)
--- a/
inventory/transfers.php
+++ b/
inventory/transfers.php
@@
-23,7
+23,7
@@
include_once($path_to_root . "/inventory/includes/inventory_db.inc");
$js = "";
if ($use_popup_windows)
$js .= get_js_open_window(800, 500);
$js = "";
if ($use_popup_windows)
$js .= get_js_open_window(800, 500);
-if (
$use_date_picker
)
+if (
user_use_date_picker()
)
$js .= get_js_date_picker();
page(_($help_context = "Inventory Location Transfers"), false, false, "", $js);
$js .= get_js_date_picker();
page(_($help_context = "Inventory Location Transfers"), false, false, "", $js);
@@
-76,7
+76,6
@@
function handle_new_order()
if (isset($_POST['Process']))
{
if (isset($_POST['Process']))
{
- global $Refs;
$tr = &$_SESSION['transfer_items'];
$input_error = 0;
$tr = &$_SESSION['transfer_items'];
$input_error = 0;
@@
-84,7
+83,7
@@
if (isset($_POST['Process']))
if (count($tr->line_items) == 0) {
display_error(_("You must enter at least one non empty item line."));
set_focus('stock_id');
if (count($tr->line_items) == 0) {
display_error(_("You must enter at least one non empty item line."));
set_focus('stock_id');
-
return false
;
+
$input_error = 1
;
}
if (!$Refs->is_valid($_POST['ref']))
{
}
if (!$Refs->is_valid($_POST['ref']))
{
@@
-106,7
+105,7
@@
if (isset($_POST['Process']))
}
elseif (!is_date_in_fiscalyear($_POST['AdjDate']))
{
}
elseif (!is_date_in_fiscalyear($_POST['AdjDate']))
{
- 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('AdjDate');
$input_error = 1;
}
set_focus('AdjDate');
$input_error = 1;
}
@@
-234,4
+233,3
@@
submit_center_last('Process', _("Process Transfer"), '', 'default');
end_form();
end_page();
end_form();
end_page();
-?>