function print_invoices()
{
global $path_to_root, $SysPrefs;
-
- $show_this_payment = true; // include payments invoiced here in summary
include_once($path_to_root . "/reporting/includes/pdf_report.inc");
// calculate summary start row for later use
$summary_start_row = $rep->bottomMargin + (15 * $rep->lineHeight);
+ $show_this_payment = $rep->formData['prepaid'] == 'partial'; // include payments invoiced here in summary
+
if ($rep->formData['prepaid'])
{
+
$result = get_sales_order_invoices($myrow['order_']);
$prepayments = array();
while($inv = db_fetch($result))
$rep->Font();
if ($email == 1)
{
- $rep->End($email, sprintf(_("Invoice %d from %s"), $myrow['reference'], get_company_pref('coy_name')));
+ $rep->End($email, sprintf(_("Invoice %s from %s"), $myrow['reference'], get_company_pref('coy_name')));
}
}
if ($email == 0)