Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Purchase Orders Item List Does Not Sort
08-29-2018, 01:45 AM,
#1
Purchase Orders Item List Does Not Sort
Main Menu > Purchases > Purchase Order Inquiry

Displays a list with repeating headers every 12 rows.
These additional headers prevent the sort function to work correctly

in PO_SelectPurchOrder.php, look for

Code:
$j++;
    if ($j == 12) {
    $j = 1;
    echo $TableHeader;
}

and delete it.
Reply
08-29-2018, 02:36 AM,
#2
RE: Purchase Orders Item List Does Not Sort
There used to be loads of these in the code but most have been got rid of it.
Good spot on that one.

Tim
Reply
08-29-2018, 11:26 AM, (This post was last modified: 08-29-2018, 11:30 AM by TurboPT.)
#3
RE: Purchase Orders Item List Does Not Sort
@HDeriauFF ... which webERP version do you have?

I show that as already being removed with the changes for striped_row handling as part of the 4.15 release, and cannot find that block of code in the latest repository version?

This commit (back when we were still using SVN) shows that update. Lines 236 and 470 had similar code.
Reply
08-31-2018, 03:00 AM, (This post was last modified: 08-31-2018, 03:03 AM by HDeriauFF.)
#4
RE: Purchase Orders Item List Does Not Sort
(08-29-2018, 11:26 AM)TurboPT Wrote: @HDeriauFF ... which webERP version do you have?

4.14.1


Found similar issue in SuppInvGRNs.php, caused by the presence of <thead> and <tbody> tags in the table between lines 255 and 304.
Reply
08-31-2018, 10:48 AM,
#5
RE: Purchase Orders Item List Does Not Sort
That other file should be fixed as well, but I'll check.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)