projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a3a7b7f
)
Bug in Customer/Supplier Payments Recording. Fixed.
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Thu, 4 Feb 2021 07:23:37 +0000
(08:23 +0100)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Thu, 4 Feb 2021 07:23:37 +0000
(08:23 +0100)
includes/ui/allocation_cart.inc
patch
|
blob
|
history
diff --git
a/includes/ui/allocation_cart.inc
b/includes/ui/allocation_cart.inc
index f21fd2ede4ec459212eee4a34862d0c196540178..3491e35c972e3a8be0eb72527d9e4df853a6d96a 100644
(file)
--- a/
includes/ui/allocation_cart.inc
+++ b/
includes/ui/allocation_cart.inc
@@
-396,7
+396,7
@@
function check_allocations()
if ($_SESSION['alloc']->allocs[$counter]->type == ST_SALESORDER)
$trans = get_sales_order_header($_SESSION['alloc']->allocs[$counter]->type_no, $_SESSION['alloc']->allocs[$counter]->type);
else
if ($_SESSION['alloc']->allocs[$counter]->type == ST_SALESORDER)
$trans = get_sales_order_header($_SESSION['alloc']->allocs[$counter]->type_no, $_SESSION['alloc']->allocs[$counter]->type);
else
- $trans = get_customer_trans($_SESSION['alloc']->allocs[$counter]->type_no, $_SESSION['alloc']->allocs[$counter]->type);
+ $trans = get_customer_trans($_SESSION['alloc']->allocs[$counter]->type_no, $_SESSION['alloc']->allocs[$counter]->type
,$_SESSION['alloc']->person_id
);
if ($trans['debtor_no'] != $_SESSION['alloc']->person_id) {
display_error(_("Allocated transaction allocated is not related to company selected."));
if ($trans['debtor_no'] != $_SESSION['alloc']->person_id) {
display_error(_("Allocated transaction allocated is not related to company selected."));
@@
-407,7
+407,7
@@
function check_allocations()
if ($_SESSION['alloc']->allocs[$counter]->type == ST_PURCHORDER)
$trans = get_po($_SESSION['alloc']->allocs[$counter]->type_no);
else
if ($_SESSION['alloc']->allocs[$counter]->type == ST_PURCHORDER)
$trans = get_po($_SESSION['alloc']->allocs[$counter]->type_no);
else
- $trans = get_supp_trans($_SESSION['alloc']->allocs[$counter]->type_no, $_SESSION['alloc']->allocs[$counter]->type);
+ $trans = get_supp_trans($_SESSION['alloc']->allocs[$counter]->type_no, $_SESSION['alloc']->allocs[$counter]->type
, $_SESSION['alloc']->person_id
);
if ($trans['supplier_id'] != $_SESSION['alloc']->person_id) {
display_error(_("Allocated transaction allocated is not related to company selected."));
set_focus('amount'.$counter);
if ($trans['supplier_id'] != $_SESSION['alloc']->person_id) {
display_error(_("Allocated transaction allocated is not related to company selected."));
set_focus('amount'.$counter);