projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Credit note can be posted without customer selected when search customer List is...
[fa-stable.git]
/
purchasing
/
supplier_invoice.php
diff --git
a/purchasing/supplier_invoice.php
b/purchasing/supplier_invoice.php
index 6b21c935a1584b30f5cee9b2b325782055a0fd90..d3cef151f0c9717f509b2785006930d5cec14b40 100644
(file)
--- a/
purchasing/supplier_invoice.php
+++ b/
purchasing/supplier_invoice.php
@@
-170,6
+170,13
@@
function check_data()
{
global $Refs;
{
global $Refs;
+ if (!get_post('supplier_id'))
+ {
+ display_error(_("There is no supplier selected."));
+ set_focus('supplier_id');
+ return false;
+ }
+
if (!$_SESSION['supp_trans']->is_valid_trans_to_post())
{
display_error(_("The invoice cannot be processed because the there are no items or values on the invoice. Invoices are expected to have a charge."));
if (!$_SESSION['supp_trans']->is_valid_trans_to_post())
{
display_error(_("The invoice cannot be processed because the there are no items or values on the invoice. Invoices are expected to have a charge."));