+
+ $result = get_kits($category);
+
+ $catgor = '';
+ while ($myrow=db_fetch($result))
+ {
+ if ($catgor != $myrow['cat_name'])
+ {
+ if ($catgor == '')
+ {
+ $rep->NewLine(2);
+ $rep->fontSize += 2;
+ $rep->TextCol(0, 3, _("Sales Kits"));
+ $rep->fontSize -= 2;
+ }
+ $rep->Line($rep->row - $rep->lineHeight);
+ $rep->NewLine(2);
+ $rep->fontSize += 2;
+ $rep->TextCol(0, 3, $myrow['cat_id'] . " - " . $myrow['cat_name']);
+ $catgor = $myrow['cat_name'];
+ $rep->fontSize -= 2;
+ $rep->NewLine();
+ }
+ $rep->NewLine();
+ $rep->TextCol(0, 1, $myrow['kit_code']);
+ $rep->TextCol(1, 3, $myrow['kit_name']);
+ $price = get_kit_price($myrow['kit_code'], $currency, $salestype);
+ $rep->AmountCol(3, 4, $price, $dec);
+ $rep->NewLine(0, 1);
+ }
+ $rep->Line($rep->row - 4);
+ $rep->NewLine();