return @$keys[0];
}
+// Recalculate report columns if orientation is landscape.
+function recalculate_cols(&$cols)
+{
+ $factor = (user_pagesize() == "A4" ? 1.4 : 1.3);
+ foreach($cols as $key => $col)
+ $cols[$key] = intval($col * $factor);
+}
+
function flush_dir($path, $wipe = false)
{
$dir = opendir($path);
submenu_print(_("&Print This Work Order"), ST_WORKORDER, $id, 'prtopt');
submenu_print(_("&Email This Work Order"), ST_WORKORDER, $id, null, 1);
display_note(get_gl_view_str($stype, $id, _("View the GL Journal Entries for this Work Order")));
- $ar = array('PARAM_0' => $_GET['date'], 'PARAM_1' => $_GET['date'], 'PARAM_2' => $stype);
+ $ar = array('PARAM_0' => $_GET['date'], 'PARAM_1' => $_GET['date'], 'PARAM_2' => $stype, 'PARAM_3' => '',
+ 'PARAM_4' => (isset($def_print_orientation) && $def_print_orientation == 1 ? 1 : 0));
display_note(print_link(_("Print the GL Journal Entries for this Work Order"), 702, $ar), 1);
hyperlink_params("$path_to_root/admin/attachments.php", _("Add an Attachment"), "filterType=$stype&trans_no=$id");
}
function _expression()
{
// If it's a string return a string node
- if (ereg("^\"[^\"]{0,255}\"$", $this->_current_token)) {
+ if (preg_match("/^\"[^\"]{0,255}\"$/", $this->_current_token)) {
$result = $this->_createTree($this->_current_token, '', '');
$this->_advance();
return $result;
return ($px / $unit_offset_length);
}
- function recalculate_cols(&$cols)
- {
- $factor = (user_pagesize() == "A4" ? 1.4 : 1.3);
- foreach($cols as $key => $col)
- $cols[$key] = intval($col * $factor);
- }
-
function End($email=0, $subject='')
{
global $path_to_root;
$this->{$this->headerTmpl}();
}
- function recalculate_cols(&$cols)
- {
- $factor = (user_pagesize() == "A4" ? 1.4 : 1.3);
- foreach($cols as $key => $col)
- $cols[$key] = intval($col * $factor);
- }
-
function End($email=0, $subject='')
{
global $pdf_debug, $path_to_root;
{
case ST_SALESQUOTE :
$rep = 111;
- // from, to, currency, bank acc, email, quote, comments
+ // from, to, currency, email, comments, orientation
$ar = array(
'PARAM_0' => $doc_no,
'PARAM_1' => $doc_no,
break;
case ST_SALESORDER :
$rep = 109;
- // from, to, currency, bank acc, email, quote, comments
+ // from, to, currency, email, quote, comments, orientation
$ar = array(
'PARAM_0' => $doc_no,
'PARAM_1' => $doc_no,
break;
case ST_CUSTDELIVERY :
$rep = 110;
- // from, to, email, comments
+ // from, to, email, packing slip, comments, orientation
$ar = array(
'PARAM_0' => $doc_no,
'PARAM_1' => $doc_no,
case ST_SALESINVOICE : // Sales Invoice
case ST_CUSTCREDIT : // Customer Credit Note
$rep = $type_no==ST_CUSTCREDIT ? 113 : 107;
- // from, to, currency, bank acc, email, paylink, comments, type
+ // from, to, currency, email, paylink, comments, orientation
$ar = array(
'PARAM_0' => $doc_no,
'PARAM_1' => $doc_no,
break;
case ST_PURCHORDER :
$rep = 209;
- // from, to, currency, bank acc, email, comments
+ // from, to, currency, email, comments, orientation
$ar = array(
'PARAM_0' => $doc_no,
'PARAM_1' => $doc_no,
break;
case ST_CUSTPAYMENT :
$rep = 112;
- // from, to, currency, bank acc, email, comments
+ // from, to, currency, email, comments, orientation
$ar = array(
'PARAM_0' => $doc_no,
'PARAM_1' => $doc_no,
break;
case ST_SUPPAYMENT :
$rep = 210;
- // from, to, currency, bank acc, email, comments
+ // from, to, currency, email, comments, orientation
$ar = array(
'PARAM_0' => $doc_no,
'PARAM_1' => $doc_no,
break;
case ST_WORKORDER :
$rep = 409;
- // from, to, currency, bank acc, email, comments, orientation
+ // from, to, email, comments, orientation
$ar = array(
'PARAM_0' => $doc_no,
'PARAM_1' => $doc_no,
include_once($path_to_root . "/reporting/includes/pdf_report.inc");
$orientation = ($orientation ? 'L' : 'P');
-
if ($fromcust == ALL_TEXT)
$cust = _('All');
else
$rep = new FrontReport(_('Customer Balances'), "CustomerBalances", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep->NewPage();
$headers[2] = _('Currency');
$rep = new FrontReport(_('Aged Customer Analysis'), "AgedCustomerAnalysis", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
include_once($path_to_root . "/reporting/includes/excel_report.inc");
else
include_once($path_to_root . "/reporting/includes/pdf_report.inc");
+
$orientation = ($orientation ? 'L' : 'P');
-
$dec = 0;
if ($area == ALL_NUMERIC)
$rep = new FrontReport(_('Customer Details Listing'), "CustomerDetailsListing", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
include_once($path_to_root . "/reporting/includes/excel_report.inc");
else
include_once($path_to_root . "/reporting/includes/pdf_report.inc");
- $orientation = ($orientation ? 'L' : 'P');
+ $orientation = ($orientation ? 'L' : 'P');
$dec = user_price_dec();
$home_curr = get_company_pref('curr_default');
$rep = new FrontReport(_('Price Listing'), "PriceListing", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep = new FrontReport(_('Order Status Listing'), "OrderStatusListing", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$cols2 = $cols;
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns, $cols2, $headers2, $aligns2);
$rep = new FrontReport(_('Salesman Listing'), "SalesmanListing", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$cols2 = $cols;
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns, $cols2, $headers2, $aligns2);
$comments = $_POST['PARAM_5'];
$orientation = $_POST['PARAM_6'];
- $orientation = ($orientation ? 'L' : 'P');
if (!$from || !$to) return;
+ $orientation = ($orientation ? 'L' : 'P');
$dec = user_price_dec();
$fno = explode("-", $from);
if ($email == 0)
$rep = new FrontReport(_('INVOICE'), "InvoiceBulk", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$range = get_invoice_range($from, $to);
while($row = db_fetch($range))
$branch = get_branch($myrow["branch_code"]);
$sales_order = get_sales_order_header($myrow["order_"], ST_SALESORDER);
if ($email == 1)
+ {
$rep = new FrontReport("", "", user_pagesize(), 9, $orientation);
+ $rep->title = _('INVOICE');
+ $rep->filename = "Invoice" . $myrow['reference'] . ".pdf";
+ }
$rep->SetHeaderType('Header2');
$rep->currency = $cur;
$rep->Font();
- $rep->title = _('INVOICE');
- $rep->filename = "Invoice" . $myrow['reference'] . ".pdf";
$rep->Info($params, $cols, null, $aligns);
$contacts = get_branch_contacts($branch['branch_code'], 'invoice', $branch['debtor_no'], false);
if ($email == 0)
$rep = new FrontReport(_('STATEMENT'), "StatementBulk", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$sql = "SELECT debtor_no, name AS DebtorName, address, tax_id, curr_code, curdate() AS tran_date FROM ".TB_PREF."debtors_master";
if ($customer != ALL_TEXT)
$sql .= " WHERE debtor_no = ".db_escape($customer);
if (db_num_rows($TransResult) == 0)
continue;
if ($email == 1)
+ {
$rep = new FrontReport("", "", user_pagesize(), 9, $orientation);
+ $rep->title = _('STATEMENT');
+ $rep->filename = "Statement" . $myrow['debtor_no'] . ".pdf";
+ }
$rep->SetHeaderType('Header2');
$rep->currency = $cur;
$rep->Font();
- $rep->title = _('STATEMENT');
- $rep->filename = "Statement" . $myrow['debtor_no'] . ".pdf";
$rep->Info($params, $cols, null, $aligns);
$contacts = get_customer_contacts($myrow['debtor_no'], 'invoice');
$comments = $_POST['PARAM_5'];
$orientation = $_POST['PARAM_6'];
+ if (!$from || !$to) return;
+
$orientation = ($orientation ? 'L' : 'P');
- if ($from == null)
- $from = 0;
- if ($to == null)
- $to = 0;
$dec = user_price_dec();
$cols = array(4, 60, 225, 300, 325, 385, 450, 515);
$rep = new FrontReport(_("QUOTE"), "QuoteBulk", user_pagesize(), 9, $orientation);
}
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
for ($i = $from; $i <= $to; $i++)
{
$comments = $_POST['PARAM_4'];
$orientation = $_POST['PARAM_5'];
- $orientation = ($orientation ? 'L' : 'P');
if (!$from || !$to) return;
+ $orientation = ($orientation ? 'L' : 'P');
$dec = user_price_dec();
$fno = explode("-", $from);
$rep = new FrontReport(_('PACKING SLIP'), "PackingSlipBulk", user_pagesize(), 9, $orientation);
}
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
for ($i = $from; $i <= $to; $i++)
{
if (!exists_customer_trans(ST_CUSTDELIVERY, $i))
$branch = get_branch($myrow["branch_code"]);
$sales_order = get_sales_order_header($myrow["order_"], ST_SALESORDER); // ?
if ($email == 1)
+ {
$rep = new FrontReport("", "", user_pagesize(), 9, $orientation);
+ if ($packing_slip == 0)
+ {
+ $rep->title = _('DELIVERY NOTE');
+ $rep->filename = "Delivery" . $myrow['reference'] . ".pdf";
+ }
+ else
+ {
+ $rep->title = _('PACKING SLIP');
+ $rep->filename = "Packing_slip" . $myrow['reference'] . ".pdf";
+ }
+ }
$rep->SetHeaderType('Header2');
$rep->currency = $cur;
$rep->Font();
- if ($packing_slip == 0)
- {
- $rep->title = _('DELIVERY NOTE');
- $rep->filename = "Delivery" . $myrow['reference'] . ".pdf";
- }
- else
- {
- $rep->title = _('PACKING SLIP');
- $rep->filename = "Packing_slip" . $myrow['reference'] . ".pdf";
- }
$rep->Info($params, $cols, null, $aligns);
+
$contacts = get_branch_contacts($branch['branch_code'], 'delivery', $branch['debtor_no'], false);
$rep->SetCommonData($myrow, $branch, $sales_order, '', ST_CUSTDELIVERY, $contacts);
$rep->NewPage();
$comments = $_POST['PARAM_4'];
$orientation = $_POST['PARAM_5'];
+ if (!$from || !$to) return;
+
$orientation = ($orientation ? 'L' : 'P');
- if ($from == null)
- $from = 0;
- if ($to == null)
- $to = 0;
$dec = user_price_dec();
$cols = array(4, 60, 225, 300, 325, 385, 450, 515);
if ($email == 0)
$rep = new FrontReport(_("SALES QUOTATION"), "SalesQuotationBulk", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
for ($i = $from; $i <= $to; $i++)
{
$params['bankaccount'] = $baccount['id'];
$branch = get_branch($myrow["branch_code"]);
if ($email == 1)
+ {
$rep = new FrontReport("", "", user_pagesize(), 9, $orientation);
+ if ($print_invoice_no == 1)
+ $rep->filename = "SalesQuotation" . $i . ".pdf";
+ else
+ $rep->filename = "SalesQuotation" . $myrow['reference'] . ".pdf";
+ }
$rep->SetHeaderType('Header2');
$rep->currency = $cur;
$rep->Font();
- if ($print_invoice_no == 1)
- $rep->filename = "SalesQuotation" . $i . ".pdf";
- else
- $rep->filename = "SalesQuotation" . $myrow['reference'] . ".pdf";
$rep->Info($params, $cols, null, $aligns);
- $rep->title = _("SALES QUOTATION");
+
$contacts = get_branch_contacts($branch['branch_code'], 'order', $branch['debtor_no'], false);
$rep->SetCommonData($myrow, $branch, $myrow, $baccount, ST_SALESQUOTE, $contacts);
//$rep->headerFunc = 'Header2';
$comments = $_POST['PARAM_3'];
$orientation = $_POST['PARAM_4'];
- $orientation = ($orientation ? 'L' : 'P');
if (!$from || !$to) return;
+ $orientation = ($orientation ? 'L' : 'P');
$dec = user_price_dec();
$fno = explode("-", $from);
$rep = new FrontReport(_('RECEIPT'), "ReceiptBulk", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->SetHeaderType('Header2');
$rep->currency = $cur;
$rep->Font();
$baccount = db_fetch($res);
$params['bankaccount'] = $baccount['bank_act'];
- $rep->title = _('RECEIPT');
$contacts = get_branch_contacts($myrow['branch_code'], 'invoice', $myrow['debtor_no']);
$rep->SetCommonData($myrow, null, $myrow, $baccount, ST_CUSTPAYMENT, $contacts);
$rep->NewPage();
$comments = $_POST['PARAM_5'];
$orientation = $_POST['PARAM_6'];
- $orientation = ($orientation ? 'L' : 'P');
if (!$from || !$to) return;
+ $orientation = ($orientation ? 'L' : 'P');
$dec = user_price_dec();
$fno = explode("-", $from);
if ($email == 0)
$rep = new FrontReport(_('CREDIT NOTE'), "InvoiceBulk", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
for ($i = $from; $i <= $to; $i++)
{
$branch['disable_branch'] = $paylink; // helper
$sales_order = null;
if ($email == 1)
+ {
$rep = new FrontReport("", "", user_pagesize(), 9, $orientation);
+ $rep->title = _('CREDIT NOTE');
+ $rep->filename = "CreditNote" . $myrow['reference'] . ".pdf";
+ }
$rep->SetHeaderType('Header2');
$rep->currency = $cur;
$rep->Font();
- $rep->title = _('CREDIT NOTE');
- $rep->filename = "CreditNote" . $myrow['reference'] . ".pdf";
$rep->Info($params, $cols, null, $aligns);
$contacts = get_branch_contacts($branch['branch_code'], 'invoice', $branch['debtor_no'], false);
$headers = array(_('Customer'), _('Tax Id'), _('Total ex. Tax'), _('Tax'));
$aligns = array('left', 'left', 'right', 'right');
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep = new FrontReport(_('Supplier Balances'), "SupplierBalances", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$headers[2] = _('currency');
$rep = new FrontReport(_('Aged Supplier Analysis'), "AgedSupplierAnalysis", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep = new FrontReport(_('Payment Report'), "PaymentReport", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep = new FrontReport(_('Outstanding GRNs Report'), "OutstandingGRN", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$comments = $_POST['PARAM_4'];
$orientation = $_POST['PARAM_5'];
+ if (!$from || !$to) return;
+
$orientation = ($orientation ? 'L' : 'P');
- if ($from == null)
- $from = 0;
- if ($to == null)
- $to = 0;
$dec = user_price_dec();
$cols = array(4, 60, 225, 300, 340, 385, 450, 515);
if ($email == 0)
$rep = new FrontReport(_('PURCHASE ORDER'), "PurchaseOrderBulk", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
for ($i = $from; $i <= $to; $i++)
{
$params['bankaccount'] = $baccount['id'];
if ($email == 1)
- $rep = new FrontReport("", "", user_pagesize(), $orientation);
+ {
+ $rep = new FrontReport("", "", user_pagesize(), 9, $orientation);
+ $rep->title = _('PURCHASE ORDER');
+ $rep->filename = "PurchaseOrder" . $i . ".pdf";
+ }
$rep->SetHeaderType('Header2');
$rep->currency = $cur;
$rep->Font();
- $rep->title = _('PURCHASE ORDER');
- $rep->filename = "PurchaseOrder" . $i . ".pdf";
$rep->Info($params, $cols, null, $aligns);
$contacts = get_supplier_contacts($myrow['supplier_id'], 'order');
$comments = $_POST['PARAM_4'];
$orientation = $_POST['PARAM_5'];
- $orientation = ($orientation ? 'L' : 'P');
if (!$from || !$to) return;
+ $orientation = ($orientation ? 'L' : 'P');
$dec = user_price_dec();
$fno = explode("-", $from);
if ($email == 0)
$rep = new FrontReport(_('REMITTANCE'), "RemittanceBulk", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
for ($i = $from; $i <= $to; $i++)
{
$params['bankaccount'] = $baccount['bank_act'];
if ($email == 1)
+ {
$rep = new FrontReport("", "", user_pagesize(), 9, $orientation);
+ $rep->title = _('REMITTANCE');
+ $rep->filename = "Remittance" . $i . ".pdf";
+ }
$rep->SetHeaderType('Header2');
$rep->currency = $cur;
$rep->Font();
- $rep->title = _('REMITTANCE');
- $rep->filename = "Remittance" . $i . ".pdf";
$rep->Info($params, $cols, null, $aligns);
$contacts = get_supplier_contacts($myrow['supplier_id'], 'invoice');
$rep = new FrontReport(_('Inventory Valuation Report'), "InventoryValReport", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep->NewPage();
$rep = new FrontReport(_('Inventory Planning Report'), "InventoryPlanning", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep = new FrontReport(_('Stock Check Sheets'), "StockCheckSheet", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep = new FrontReport(_('Inventory Sales Report'), "InventorySalesReport", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep = new FrontReport(_('GRN Valuation Report'), "GRNValuationReport", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep = new FrontReport(_('Inventory Purchasing Report'), "InventoryPurchasingReport", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep = new FrontReport(_('Bill of Material Listing'), "BillOfMaterial", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$comments = $_POST['PARAM_3'];
$orientation = $_POST['PARAM_4'];
- $orientation = ($orientation ? 'L' : 'P');
if (!$from || !$to) return;
+ $orientation = ($orientation ? 'L' : 'P');
$fno = explode("-", $from);
$tno = explode("-", $to);
$from = min($fno[0], $tno[0]);
if ($email == 0)
$rep = new FrontReport(_('WORK ORDER'), "WorkOrderBulk", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
for ($i = $from; $i <= $to; $i++)
{
continue;
$date_ = sql2date($myrow["date_"]);
if ($email == 1)
+ {
$rep = new FrontReport("", "", user_pagesize(), 9, $orientation);
+ $rep->title = _('WORK ORDER');
+ $rep->filename = "WorkOrder" . $myrow['wo_ref'] . ".pdf";
+ }
$rep->SetHeaderType('Header2');
$rep->currency = $cur;
$rep->Font();
- $rep->title = _('WORK ORDER');
- $rep->filename = "WorkOrder" . $myrow['wo_ref'] . ".pdf";
$rep->Info($params, $cols, null, $aligns);
$contact = array('email' =>$myrow['email'],'lang' => $dflt_lang, // ???
$rep = new FrontReport(_('Dimension Summary'), "DimensionSummary", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
2 => array('text' => _('Bank Account'),'from' => $act,'to' => ''));
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep->NewPage();
$rep->Font();
$total = $prev_balance;
$rep->NewLine(2);
+ // Keep a running total as we loop through
+ // the transactions.
+ $total_debit = $total_credit = 0;
if ($rows > 0)
{
- // Keep a running total as we loop through
- // the transactions.
- $total_debit = $total_credit = 0;
while ($myrow=db_fetch($trans))
{
$rep = new FrontReport(_('Chart of Accounts'), "ChartOfAccounts", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep = new FrontReport(_('List of Journal Entries'), "JournalEntries", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
2 => array('text' => _('Accounts'),'from' => $fromacc,'to' => $toacc));
}
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep = new FrontReport(_('Annual Expense Breakdown'), "AnnualBreakDown", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep->NewPage();
$rep = new FrontReport(_('Balance Sheet'), "BalanceSheet", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep->NewPage();
$rep = new FrontReport(_('Profit and Loss Statement'), "ProfitAndLoss", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep->NewPage();
$rep = new FrontReport(_('Trial Balance'), "TrialBalance", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
{
- $rep->recalculate_cols($cols);
- $rep->recalculate_cols($cols2);
+ recalculate_cols($cols);
+ recalculate_cols($cols2);
}
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns, $cols2, $headers2, $aligns2);
_('Net'), _('Rate'), _('Tax'), '', _('Name'));
$aligns = array('left', 'left', 'left', 'left', 'left', 'right', 'right', 'right', 'right','left');
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
// Summary
$cols2 = array(0, 100, 180, 260, 340, 420, 500);
if ($orientation == 'L')
- $rep->recalculate_cols($cols2);
+ recalculate_cols($cols2);
$headers2 = array(_('Tax Rate'), _('Outputs'), _('Output Tax'), _('Inputs'), _('Input Tax'), _('Net Tax'));
$rep = new FrontReport(_('Audit Trail'), "AuditTrail", user_pagesize(), 9, $orientation);
if ($orientation == 'L')
- $rep->recalculate_cols($cols);
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep->NewPage();
_('Comments') => 'TEXTBOX',
_('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
+ $reports->addReport(RC_BANKING, 602, _('Bank Statement w/ &Reconcile'),
+ array( _('Bank Accounts') => 'BANK_ACCOUNTS',
+ _('Start Date') => 'DATEBEGINM',
+ _('End Date') => 'DATEENDM',
+ _('Comments') => 'TEXTBOX',
+ _('Destination') => 'DESTINATION'));
$reports->addReportClass(_('General Ledger'), RC_GL);
$reports->addReport(RC_GL, 701, _('Chart of &Accounts'),