projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[0000266] Added dimension selections in Profit Loss and Balance drilldown and Trial...
[fa-stable.git]
/
purchasing
/
supplier_invoice.php
diff --git
a/purchasing/supplier_invoice.php
b/purchasing/supplier_invoice.php
index 40c62435f0315002fa4414550d8926270ec0d562..b0434e68d3670ebd64b78dfc4125d84007d1d106 100644
(file)
--- a/
purchasing/supplier_invoice.php
+++ b/
purchasing/supplier_invoice.php
@@
-65,10
+65,7
@@
if (isset($_GET['New']))
unset ($_SESSION['supp_trans']);
}
unset ($_SESSION['supp_trans']);
}
- //session_register("SuppInv");
- //session_register("supp_trans");
- $_SESSION['supp_trans'] = new supp_trans;
- $_SESSION['supp_trans']->is_invoice = true;
+ $_SESSION['supp_trans'] = new supp_trans(ST_SUPPINVOICE);
}
//--------------------------------------------------------------------------------------------------
}
//--------------------------------------------------------------------------------------------------
@@
-187,7
+184,7
@@
function check_data()
if (is_reference_already_there($_SESSION['supp_trans']->supplier_id, $_POST['supp_reference']))
{ /*Transaction reference already entered */
if (is_reference_already_there($_SESSION['supp_trans']->supplier_id, $_POST['supp_reference']))
{ /*Transaction reference already entered */
- display_error(_("This invoice number has already been entered. It cannot be entered again."
. " (" . $_POST['supp_reference'] . ")")
);
+ display_error(_("This invoice number has already been entered. It cannot be entered again."
) . " (" . $_POST['supp_reference'] . ")"
);
return false;
}
return false;
}
@@
-352,10
+349,8
@@
start_form();
invoice_header($_SESSION['supp_trans']);
if ($_POST['supplier_id']=='')
invoice_header($_SESSION['supp_trans']);
if ($_POST['supplier_id']=='')
-
display_error('No supplier found for entered search text'
);
+
display_error(_("There is no supplier selected.")
);
else {
else {
- start_outer_table("$table_style2 width=98%", 5);
-
display_grn_items($_SESSION['supp_trans'], 1);
display_gl_items($_SESSION['supp_trans'], 1);
display_grn_items($_SESSION['supp_trans'], 1);
display_gl_items($_SESSION['supp_trans'], 1);
@@
-364,7
+359,6
@@
else {
invoice_totals($_SESSION['supp_trans']);
div_end();
invoice_totals($_SESSION['supp_trans']);
div_end();
- end_outer_table(0, false);
}
//-----------------------------------------------------------------------------------------
}
//-----------------------------------------------------------------------------------------