Rep 704 GL Account Transactions report shows html code on Person/Item if PT_WORKORDER...
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sat, 9 Jan 2021 13:58:02 +0000 (14:58 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sat, 9 Jan 2021 13:58:02 +0000 (14:58 +0100)
reporting/rep704.php

index f62b2d192bc98d412ce4b2816dda1ba0df19a707..e820655bfff10cc558a4990c169f5776097f8ed9 100644 (file)
@@ -172,7 +172,10 @@ function print_GL_transactions()
                                        $rep->TextCol(4, 5,     get_dimension_string($myrow['dimension_id']));
                                if ($dim > 1)
                                        $rep->TextCol(5, 6,     get_dimension_string($myrow['dimension2_id']));
-                               $txt = payment_person_name($myrow["person_type_id"],$myrow["person_id"], false);
+                               if ($myrow["person_type_id"] == PT_WORKORDER)
+                                       $txt = "";
+                               else    
+                                       $txt = payment_person_name($myrow["person_type_id"],$myrow["person_id"], false);
                                $memo = $myrow['memo_'];
                                if ($txt != "")
                                {