$cheque->lineHeight = 22; $cheque->NewLine(); $amt_total = -$from_trans['Total']; $dec = user_price_dec(); $amount = "**" . price_in_words($amt_total, ST_CHEQUE); $themoney = ($show_currencies ? $from_trans['curr_code'] : '') . '**' . number_format2($amt_total, $dec); $cheque->TextWrap($col0, $cheque->row, $width_col0, $amount); $cheque->TextWrap($col0, $cheque->row, $width_col0, $themoney, "right"); $cheque->lineHeight = 13; $cheque->NewLine(); if ($show_currencies) { $cheque->TextWrap($col0, $cheque->row, $width_col0, _("Amount in ") . $from_trans['curr_code']); } $cheque->row = $row_address; $cheque->lineHeight = 12; $cheque->TextWrapLines($col0, $width_col0, $from_trans['supp_name'] . "\n" . $from_trans['address']); $dotadd = 40; $cheque->lineHeight = 16; for ($i = 0; $i < 2; $i++) { // First Stub $cheque->row = $i == 0 ? $row_first_stub : $row_second_stub; $cheque->TextWrap($col0, $cheque->row, $width_col0, $from_trans['supp_name']); $cheque->TextWrap($col1, $cheque->row, $width_col1, sql2date($from_trans['tran_date'])); if ($checkinput != "") { $cheque->TextWrap($col3, $cheque->row, 93, $checkinput); } $cheque->NewLine(); // Get allocations (shows supplier references on invoices and its amount) (Two columns). $result = get_allocations_for_remittance($from_trans['supplier_id'], $from_trans['type'], $from_trans['trans_no']); $totalallocated = 0; $totallines = 0;