X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=inline;f=reporting%2Frep110.php;h=5af4a83ce15544652b40d9c7b7f7dc015052e1a5;hb=ddadb47f2620ce6902ad4694ce6512568862ba05;hp=a0051c4586d4c1ed3c550363ba35283a4b2cb541;hpb=2b2cbcfe6a448536113966cbb11b79eda73db5ab;p=fa-stable.git diff --git a/reporting/rep110.php b/reporting/rep110.php index a0051c45..5af4a83c 100644 --- a/reporting/rep110.php +++ b/reporting/rep110.php @@ -70,11 +70,11 @@ function print_deliveries() for ($i = $fno[0]; $i <= $tno[0]; $i++) { - if (!exists_customer_trans(13, $i)) + if (!exists_customer_trans(ST_CUSTDELIVERY, $i)) continue; - $myrow = get_customer_trans($i, 13); + $myrow = get_customer_trans($i, ST_CUSTDELIVERY); $branch = get_branch($myrow["branch_code"]); - $sales_order = get_sales_order_header($myrow["order_"], 30); // ? + $sales_order = get_sales_order_header($myrow["order_"], ST_SALESORDER); // ? if ($email == 1) { $rep = new FrontReport("", "", user_pagesize()); @@ -118,7 +118,7 @@ function print_deliveries() $rep->Header2($myrow, $branch, $sales_order,'',13); } - $comments = get_comments(13, $i); + $comments = get_comments(ST_CUSTDELIVERY, $i); if ($comments && db_num_rows($comments)) { $rep->NewLine();