/* default print destination. 0 = PDF/Printer, 1 = Excel */
$def_print_destination = 0;
+ /* default print orientation. 0 = Portrait, 1 = Landscape */
+ $def_print_orientation = 0;
+
// Wiki context help configuration
// If your help wiki use translated page titles uncomment next line
// $old_style_help = 1; // this setting is depreciated and subject to removal in next FA versions
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->y;
for ($i = 0; $i < $this->numcols; $i++)
$this->sheet->writeBlank($this->y, $i, $this->formatFooter);
$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;
function get_ctrl($name, $type)
{
global $path_to_root, $use_date_picker, $pdf_debug, $print_invoice_no,
- $def_print_destination, $type_shortcuts;
+ $def_print_destination, $def_print_orientation, $type_shortcuts;
$st = '';
switch ($type)
$def = 1;
return array_selector($name, $def, $sel);
+ case 'ORIENTATION':
+ $sel = array(_("Portrait"), _("Landscape"));
+ $def = 0;
+ if (isset($def_print_orientation) && $def_print_orientation == 1)
+ $def = 1;
+ return array_selector($name, $def, $sel);
+
case 'COMPARE':
$sel = array(_("Accumulated"), _("Period Y-1"), _("Budget"));
return array_selector($name, null, $sel);
case 'ITEMS':
return stock_manufactured_items_list($name);
+ case 'ITEMS_P':
+ return stock_purchasable_items_list($name, null, true);
+
case 'WORKORDER':
$sql = "SELECT ".TB_PREF."workorders.id, concat(".TB_PREF."workorders.id, '-',
".TB_PREF."stock_master.description) as IName
include_once($path_to_root . "/includes/session.inc");
if (isset($save_report_selections) && $save_report_selections > 0 && isset($_POST['REP_ID'])) { // save parameters from Report Center
- for($i=0; $i<10; $i++) { // 2010-10-06 Joe Hunt
+ for($i=0; $i<12; $i++) { // 2013-01-14 Joe Hunt
if (isset($_POST['PARAM_'.$i]) && !is_array($_POST['PARAM_'.$i])) {
$rep = $_POST['REP_ID'];
setcookie("select[$rep][$i]", $_POST['PARAM_'.$i], time()+60*60*24*$save_report_selections); // days from $save_report_selections
$currency = $_POST['PARAM_3'];
$no_zeros = $_POST['PARAM_4'];
$comments = $_POST['PARAM_5'];
- $destination = $_POST['PARAM_6'];
+ $orientation = $_POST['PARAM_6'];
+ $destination = $_POST['PARAM_7'];
if ($destination)
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');
+
if ($fromcust == ALL_TEXT)
$cust = _('All');
else
3 => array('text' => _('Currency'), 'from' => $currency, 'to' => ''),
4 => array('text' => _('Suppress Zeros'), 'from' => $nozeros, 'to' => ''));
- $rep = new FrontReport(_('Customer Balances'), "CustomerBalances", user_pagesize());
+ $rep = new FrontReport(_('Customer Balances'), "CustomerBalances", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep->NewPage();
$no_zeros = $_POST['PARAM_5'];
$graphics = $_POST['PARAM_6'];
$comments = $_POST['PARAM_7'];
- $destination = $_POST['PARAM_8'];
+ $orientation = $_POST['PARAM_8'];
+ $destination = $_POST['PARAM_9'];
if ($destination)
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');
if ($graphics)
{
include_once($path_to_root . "/reporting/includes/class.graphic.inc");
if ($convert)
$headers[2] = _('Currency');
- $rep = new FrontReport(_('Aged Customer Analysis'), "AgedCustomerAnalysis", user_pagesize());
+ $rep = new FrontReport(_('Aged Customer Analysis'), "AgedCustomerAnalysis", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$more = $_POST['PARAM_3'];
$less = $_POST['PARAM_4'];
$comments = $_POST['PARAM_5'];
- $destination = $_POST['PARAM_6'];
+ $orientation = $_POST['PARAM_6'];
+ $destination = $_POST['PARAM_7'];
if ($destination)
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;
3 => array('text' => _('Sales Folk'), 'from' => $salesfolk, 'to' => ''),
4 => array('text' => _('Activity'), 'from' => $morestr, 'to' => $lessstr));
- $rep = new FrontReport(_('Customer Details Listing'), "CustomerDetailsListing", user_pagesize());
+ $rep = new FrontReport(_('Customer Details Listing'), "CustomerDetailsListing", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$pictures = $_POST['PARAM_3'];
$showGP = $_POST['PARAM_4'];
$comments = $_POST['PARAM_5'];
- $destination = $_POST['PARAM_6'];
+ $orientation = $_POST['PARAM_6'];
+ $destination = $_POST['PARAM_7'];
if ($destination)
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 = user_price_dec();
else
$user_comp = "";
- $rep = new FrontReport(_('Price Listing'), "PriceListing", user_pagesize());
+ $rep = new FrontReport(_('Price Listing'), "PriceListing", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$location = $_POST['PARAM_3'];
$backorder = $_POST['PARAM_4'];
$comments = $_POST['PARAM_5'];
- $destination = $_POST['PARAM_6'];
+ $orientation = $_POST['PARAM_6'];
+ $destination = $_POST['PARAM_7'];
if ($destination)
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');
if ($category == ALL_NUMERIC)
$category = 0;
3 => array( 'text' => _('Location'), 'from' => $loc, 'to' => ''),
4 => array( 'text' => _('Selection'),'from' => $back,'to' => ''));
- $cols2 = $cols;
$aligns2 = $aligns;
- $rep = new FrontReport(_('Order Status Listing'), "OrderStatusListing", user_pagesize());
+ $rep = new FrontReport(_('Order Status Listing'), "OrderStatusListing", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
+ $cols2 = $cols;
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns, $cols2, $headers2, $aligns2);
$to = $_POST['PARAM_1'];
$summary = $_POST['PARAM_2'];
$comments = $_POST['PARAM_3'];
- $destination = $_POST['PARAM_4'];
+ $orientation = $_POST['PARAM_4'];
+ $destination = $_POST['PARAM_5'];
if ($destination)
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');
if ($summary == 0)
$sum = _("No");
1 => array( 'text' => _('Period'), 'from' => $from, 'to' => $to),
2 => array( 'text' => _('Summary Only'),'from' => $sum,'to' => ''));
- $cols2 = $cols;
$aligns2 = $aligns;
- $rep = new FrontReport(_('Salesman Listing'), "SalesmanListing", user_pagesize());
+ $rep = new FrontReport(_('Salesman Listing'), "SalesmanListing", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
+ $cols2 = $cols;
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns, $cols2, $headers2, $aligns2);
$email = $_POST['PARAM_3'];
$pay_service = $_POST['PARAM_4'];
$comments = $_POST['PARAM_5'];
+ $orientation = $_POST['PARAM_6'];
+ $orientation = ($orientation ? 'L' : 'P');
if (!$from || !$to) return;
$dec = user_price_dec();
$cur = get_company_Pref('curr_default');
if ($email == 0)
- $rep = new FrontReport(_('INVOICE'), "InvoiceBulk", user_pagesize());
+ $rep = new FrontReport(_('INVOICE'), "InvoiceBulk", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->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());
+ $rep = new FrontReport("", "", user_pagesize(), 9, $orientation);
$rep->SetHeaderType('Header2');
$rep->currency = $cur;
$rep->Font();
$rep->SetCommonData($myrow, $branch, $sales_order, $baccount, ST_SALESINVOICE, $contacts);
$rep->NewPage();
// calculate summary start row for later use
- $summary_start_row = $rep->bottomMargin + (20 * $rep->lineHeight);
+ $summary_start_row = $rep->bottomMargin + (12 * $rep->lineHeight);
if ($rep->formData['prepaid'])
{
if (isset($prepayments))
{
// Partial invoices table
- $rep->NewLine();
+ //$rep->NewLine();
$rep->TextCol(1, 4,_("Prepayments invoiced to this order up to day:"));
$rep->TextCol(1, 4, str_pad('', 150, '_'));
$rep->cols[3] -= 20;
$doctype = ST_SALESINVOICE;
+ $rep->row = $summary_start_row;
$rep->TextCol(3, 6, _("Sub-total"), -2);
$rep->TextCol(6, 7, $DisplaySubTot, -2);
$show_also_allocated = $_POST['PARAM_2'];
$email = $_POST['PARAM_3'];
$comments = $_POST['PARAM_4'];
+ $orientation = $_POST['PARAM_5'];
+ $orientation = ($orientation ? 'L' : 'P');
$dec = user_price_dec();
$cols = array(4, 100, 130, 190, 250, 320, 385, 450, 515);
$PastDueDays2 = 2 * $PastDueDays1;
if ($email == 0)
- {
- $rep = new FrontReport(_('STATEMENT'), "StatementBulk", user_pagesize());
- $rep->SetHeaderType('Header2');
- $rep->currency = $cur;
- $rep->Font();
- $rep->Info($params, $cols, null, $aligns);
- }
-
+ $rep = new FrontReport(_('STATEMENT'), "StatementBulk", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->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());
- $rep->SetHeaderType('Header2');
- $rep->currency = $cur;
- $rep->Font();
- $rep->title = _('STATEMENT');
- $rep->filename = "Statement" . $myrow['debtor_no'] . ".pdf";
- $rep->Info($params, $cols, null, $aligns);
- }
+ $rep = new FrontReport("", "", user_pagesize(), 9, $orientation);
+ $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');
//= get_branch_contacts($branch['branch_code'], 'invoice', $branch['debtor_no']);
$rep->SetCommonData($myrow, null, null, $baccount, ST_STATEMENT, $contacts);
$email = $_POST['PARAM_3'];
$print_as_quote = $_POST['PARAM_4'];
$comments = $_POST['PARAM_5'];
+ $orientation = $_POST['PARAM_6'];
+ $orientation = ($orientation ? 'L' : 'P');
if ($from == null)
$from = 0;
if ($to == null)
{
if ($print_as_quote == 0)
- $rep = new FrontReport(_("SALES ORDER"), "SalesOrderBulk", user_pagesize());
+ $rep = new FrontReport(_("SALES ORDER"), "SalesOrderBulk", user_pagesize(), 9, $orientation);
else
- $rep = new FrontReport(_("QUOTE"), "QuoteBulk", user_pagesize());
- $rep->SetHeaderType('Header2');
- $rep->currency = $cur;
- $rep->Font();
- $rep->Info($params, $cols, null, $aligns);
+ $rep = new FrontReport(_("QUOTE"), "QuoteBulk", user_pagesize(), 9, $orientation);
}
+ if ($orientation == 'L')
+ $rep->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);
+ $rep->SetHeaderType('Header2');
+ $rep->currency = $cur;
+ $rep->Font();
+ if ($print_as_quote == 1)
{
- $rep = new FrontReport("", "", user_pagesize());
- $rep->SetHeaderType('Header2');
- $rep->currency = $cur;
- $rep->Font();
- if ($print_as_quote == 1)
- {
- $rep->title = _('QUOTE');
- $rep->filename = "Quote" . $i . ".pdf";
- }
- else
- {
- $rep->title = _("SALES ORDER");
- $rep->filename = "SalesOrder" . $i . ".pdf";
- }
- $rep->Info($params, $cols, null, $aligns);
+ $rep->title = _('QUOTE');
+ $rep->filename = "Quote" . $i . ".pdf";
}
else
- $rep->title = ($print_as_quote==1 ? _("QUOTE") : _("SALES ORDER"));
+ {
+ $rep->title = _("SALES ORDER");
+ $rep->filename = "SalesOrder" . $i . ".pdf";
+ }
+ $rep->Info($params, $cols, null, $aligns);
$contacts = get_branch_contacts($branch['branch_code'], 'order', $branch['debtor_no'], false);
$rep->SetCommonData($myrow, $branch, $myrow, $baccount, ST_SALESORDER, $contacts);
$email = $_POST['PARAM_2'];
$packing_slip = $_POST['PARAM_3'];
$comments = $_POST['PARAM_4'];
+ $orientation = $_POST['PARAM_5'];
+ $orientation = ($orientation ? 'L' : 'P');
if (!$from || !$to) return;
$dec = user_price_dec();
if ($email == 0)
{
if ($packing_slip == 0)
- $rep = new FrontReport(_('DELIVERY'), "DeliveryNoteBulk", user_pagesize());
+ $rep = new FrontReport(_('DELIVERY'), "DeliveryNoteBulk", user_pagesize(), 9, $orientation);
else
- $rep = new FrontReport(_('PACKING SLIP'), "PackingSlipBulk", user_pagesize());
- $rep->SetHeaderType('Header2');
- $rep->currency = $cur;
- $rep->Font();
- $rep->Info($params, $cols, null, $aligns);
+ $rep = new FrontReport(_('PACKING SLIP'), "PackingSlipBulk", user_pagesize(), 9, $orientation);
}
-
+ if ($orientation == 'L')
+ $rep->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);
+ $rep->SetHeaderType('Header2');
+ $rep->currency = $cur;
+ $rep->Font();
+ if ($packing_slip == 0)
{
- $rep = new FrontReport("", "", user_pagesize());
- $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);
+ $rep->title = _('DELIVERY NOTE');
+ $rep->filename = "Delivery" . $myrow['reference'] . ".pdf";
}
else
- $rep->title = _('DELIVERY NOTE');
+ {
+ $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();
$currency = $_POST['PARAM_2'];
$email = $_POST['PARAM_3'];
$comments = $_POST['PARAM_4'];
+ $orientation = $_POST['PARAM_5'];
+ $orientation = ($orientation ? 'L' : 'P');
if ($from == null)
$from = 0;
if ($to == null)
$cur = get_company_Pref('curr_default');
if ($email == 0)
- {
- $rep = new FrontReport(_("SALES QUOTATION"), "SalesQuotationBulk", user_pagesize());
- $rep->SetHeaderType('Header2');
- $rep->currency = $cur;
- $rep->Font();
- $rep->Info($params, $cols, null, $aligns);
- }
+ $rep = new FrontReport(_("SALES QUOTATION"), "SalesQuotationBulk", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->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());
- $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 = new FrontReport("", "", user_pagesize(), 9, $orientation);
+ $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);
$DisplaySubTot = number_format2($SubTotal,$dec);
$DisplayFreight = number_format2($myrow["freight_cost"],$dec);
+ $rep->row = $rep->bottomMargin + (15 * $rep->lineHeight);
$doctype = ST_SALESQUOTE;
$rep->TextCol(3, 6, _("Sub-total"), -2);
$to = $_POST['PARAM_1'];
$currency = $_POST['PARAM_2'];
$comments = $_POST['PARAM_3'];
+ $orientation = $_POST['PARAM_4'];
+ $orientation = ($orientation ? 'L' : 'P');
if (!$from || !$to) return;
$dec = user_price_dec();
$cur = get_company_Pref('curr_default');
- $rep = new FrontReport(_('RECEIPT'), "ReceiptBulk", user_pagesize());
+ $rep = new FrontReport(_('RECEIPT'), "ReceiptBulk", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
$rep->SetHeaderType('Header2');
$rep->currency = $cur;
$rep->Font();
$email = $_POST['PARAM_3'];
$paylink = $_POST['PARAM_4'];
$comments = $_POST['PARAM_5'];
+ $orientation = $_POST['PARAM_6'];
+ $orientation = ($orientation ? 'L' : 'P');
if (!$from || !$to) return;
$dec = user_price_dec();
$cur = get_company_Pref('curr_default');
if ($email == 0)
- {
- $rep = new FrontReport(_('CREDIT NOTE'), "InvoiceBulk", user_pagesize());
- $rep->SetHeaderType('Header2');
- $rep->currency = $cur;
- $rep->Font();
- $rep->Info($params, $cols, null, $aligns);
- }
+ $rep = new FrontReport(_('CREDIT NOTE'), "InvoiceBulk", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->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());
- $rep->SetHeaderType('Header2');
- $rep->currency = $cur;
- $rep->Font();
- $rep->title = _('CREDIT NOTE');
- $rep->filename = "CreditNote" . $myrow['reference'] . ".pdf";
- $rep->Info($params, $cols, null, $aligns);
- }
- else
- $rep->title = _('CREDIT NOTE');
+ $rep = new FrontReport("", "", user_pagesize(), 9, $orientation);
+ $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);
$rep->SetCommonData($myrow, $branch, $sales_order, $baccount, ST_CUSTCREDIT, $contacts);
$rep->NewPage();
$to = $_POST['PARAM_1'];
$tax_id = $_POST['PARAM_2'];
$comments = $_POST['PARAM_3'];
- $destination = $_POST['PARAM_4'];
+ $orientation = $_POST['PARAM_4'];
+ $destination = $_POST['PARAM_5'];
if ($tax_id == 0)
$tid = _('No');
else
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 = user_price_dec();
- $rep = new FrontReport(_('Sales Summary Report'), "SalesSummaryReport", user_pagesize());
+ $rep = new FrontReport(_('Sales Summary Report'), "SalesSummaryReport", user_pagesize(), 9, $orientation);
$params = array( 0 => $comments,
1 => array('text' => _('Period'), 'from' => $from, 'to' => $to),
$headers = array(_('Customer'), _('Tax Id'), _('Total ex. Tax'), _('Tax'));
$aligns = array('left', 'left', 'right', 'right');
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
+
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep->NewPage();
$currency = $_POST['PARAM_3'];
$no_zeros = $_POST['PARAM_4'];
$comments = $_POST['PARAM_5'];
- $destination = $_POST['PARAM_6'];
+ $orientation = $_POST['PARAM_6'];
+ $destination = $_POST['PARAM_7'];
if ($destination)
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');
if ($fromsupp == ALL_TEXT)
$supp = _('All');
else
3 => array( 'text' => _('Currency'),'from' => $currency, 'to' => ''),
4 => array('text' => _('Suppress Zeros'), 'from' => $nozeros, 'to' => ''));
- $rep = new FrontReport(_('Supplier Balances'), "SupplierBalances", user_pagesize());
+ $rep = new FrontReport(_('Supplier Balances'), "SupplierBalances", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$no_zeros = $_POST['PARAM_5'];
$graphics = $_POST['PARAM_6'];
$comments = $_POST['PARAM_7'];
- $destination = $_POST['PARAM_8'];
+ $orientation = $_POST['PARAM_8'];
+ $destination = $_POST['PARAM_9'];
if ($destination)
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');
if ($graphics)
{
include_once($path_to_root . "/reporting/includes/class.graphic.inc");
if ($convert)
$headers[2] = _('currency');
- $rep = new FrontReport(_('Aged Supplier Analysis'), "AgedSupplierAnalysis", user_pagesize());
+ $rep = new FrontReport(_('Aged Supplier Analysis'), "AgedSupplierAnalysis", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$currency = $_POST['PARAM_2'];
$no_zeros = $_POST['PARAM_3'];
$comments = $_POST['PARAM_4'];
- $destination = $_POST['PARAM_5'];
+ $orientation = $_POST['PARAM_5'];
+ $destination = $_POST['PARAM_6'];
if ($destination)
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');
if ($fromsupp == ALL_TEXT)
$from = _('All');
else
3 => array( 'text' => _('Currency'),'from' => $currency, 'to' => ''),
4 => array('text' => _('Suppress Zeros'), 'from' => $nozeros, 'to' => ''));
- $rep = new FrontReport(_('Payment Report'), "PaymentReport", user_pagesize());
+ $rep = new FrontReport(_('Payment Report'), "PaymentReport", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$fromsupp = $_POST['PARAM_0'];
$comments = $_POST['PARAM_1'];
- $destination = $_POST['PARAM_2'];
+ $orientation = $_POST['PARAM_2'];
+ $destination = $_POST['PARAM_3'];
if ($destination)
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');
if ($fromsupp == ALL_TEXT)
$from = _('All');
else
$params = array( 0 => $comments,
1 => array('text' => _('Supplier'), 'from' => $from, 'to' => ''));
- $rep = new FrontReport(_('Outstanding GRNs Report'), "OutstandingGRN", user_pagesize());
+ $rep = new FrontReport(_('Outstanding GRNs Report'), "OutstandingGRN", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$currency = $_POST['PARAM_2'];
$email = $_POST['PARAM_3'];
$comments = $_POST['PARAM_4'];
+ $orientation = $_POST['PARAM_5'];
+ $orientation = ($orientation ? 'L' : 'P');
if ($from == null)
$from = 0;
if ($to == null)
$cur = get_company_Pref('curr_default');
if ($email == 0)
- {
- $rep = new FrontReport(_('PURCHASE ORDER'), "PurchaseOrderBulk", user_pagesize());
- $rep->SetHeaderType('Header2');
- $rep->currency = $cur;
- $rep->Font();
- $rep->Info($params, $cols, null, $aligns);
- }
+ $rep = new FrontReport(_('PURCHASE ORDER'), "PurchaseOrderBulk", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
for ($i = $from; $i <= $to; $i++)
{
$params['bankaccount'] = $baccount['id'];
if ($email == 1)
- {
- $rep = new FrontReport("", "", user_pagesize());
- $rep->SetHeaderType('Header2');
- $rep->currency = $cur;
- $rep->Font();
- $rep->title = _('PURCHASE ORDER');
- $rep->filename = "PurchaseOrder" . $i . ".pdf";
- $rep->Info($params, $cols, null, $aligns);
- }
- else
- $rep->title = _('PURCHASE ORDER');
+ $rep = new FrontReport("", "", user_pagesize(), $orientation);
+ $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');
$rep->SetCommonData($myrow, null, $myrow, $baccount, ST_PURCHORDER, $contacts);
$rep->NewPage();
$currency = $_POST['PARAM_2'];
$email = $_POST['PARAM_3'];
$comments = $_POST['PARAM_4'];
+ $orientation = $_POST['PARAM_5'];
+ $orientation = ($orientation ? 'L' : 'P');
if (!$from || !$to) return;
$dec = user_price_dec();
$cur = get_company_Pref('curr_default');
if ($email == 0)
- {
- $rep = new FrontReport(_('REMITTANCE'), "RemittanceBulk", user_pagesize());
- $rep->SetHeaderType('Header2');
- $rep->currency = $cur;
- $rep->Font();
- $rep->Info($params, $cols, null, $aligns);
- }
+ $rep = new FrontReport(_('REMITTANCE'), "RemittanceBulk", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
for ($i = $from; $i <= $to; $i++)
{
$params['bankaccount'] = $baccount['bank_act'];
if ($email == 1)
- {
- $rep = new FrontReport("", "", user_pagesize());
- $rep->SetHeaderType('Header2');
- $rep->currency = $cur;
- $rep->Font();
- $rep->title = _('REMITTANCE');
- $rep->filename = "Remittance" . $i . ".pdf";
- $rep->Info($params, $cols, null, $aligns);
- }
- else
- $rep->title = _('REMITTANCE');
+ $rep = new FrontReport("", "", user_pagesize(), 9, $orientation);
+ $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->SetCommonData($myrow, null, $myrow, $baccount, ST_SUPPAYMENT, $contacts);
$rep->NewPage();
$location = $_POST['PARAM_2'];
$detail = $_POST['PARAM_3'];
$comments = $_POST['PARAM_4'];
- $destination = $_POST['PARAM_5'];
+ $orientation = $_POST['PARAM_5'];
+ $destination = $_POST['PARAM_6'];
if ($destination)
include_once($path_to_root . "/reporting/includes/excel_report.inc");
else
$detail = !$detail;
$dec = user_price_dec();
+ $orientation = ($orientation ? 'L' : 'P');
if ($category == ALL_NUMERIC)
$category = 0;
if ($category == 0)
2 => array('text' => _('Category'), 'from' => $cat, 'to' => ''),
3 => array('text' => _('Location'), 'from' => $loc, 'to' => ''));
- $rep = new FrontReport(_('Inventory Valuation Report'), "InventoryValReport", user_pagesize());
-
+ $rep = new FrontReport(_('Inventory Valuation Report'), "InventoryValReport", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep->NewPage();
$category = $_POST['PARAM_0'];
$location = $_POST['PARAM_1'];
$comments = $_POST['PARAM_2'];
- $destination = $_POST['PARAM_3'];
+ $orientation = $_POST['PARAM_3'];
+ $destination = $_POST['PARAM_4'];
if ($destination)
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');
if ($category == ALL_NUMERIC)
$category = 0;
if ($category == 0)
1 => array('text' => _('Category'), 'from' => $cat, 'to' => ''),
2 => array('text' => _('Location'), 'from' => $loc, 'to' => ''));
- $rep = new FrontReport(_('Inventory Planning Report'), "InventoryPlanning", user_pagesize());
+ $rep = new FrontReport(_('Inventory Planning Report'), "InventoryPlanning", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$shortage = $_POST['PARAM_4'];
$no_zeros = $_POST['PARAM_5'];
$comments = $_POST['PARAM_6'];
- $destination = $_POST['PARAM_7'];
+ $orientation = $_POST['PARAM_7'];
+ $destination = $_POST['PARAM_8'];
if ($destination)
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');
if ($category == ALL_NUMERIC)
$category = 0;
if ($category == 0)
else
$user_comp = "";
- $rep = new FrontReport(_('Stock Check Sheets'), "StockCheckSheet", user_pagesize());
+ $rep = new FrontReport(_('Stock Check Sheets'), "StockCheckSheet", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$location = $_POST['PARAM_3'];
$fromcust = $_POST['PARAM_4'];
$comments = $_POST['PARAM_5'];
- $destination = $_POST['PARAM_6'];
+ $orientation = $_POST['PARAM_6'];
+ $destination = $_POST['PARAM_7'];
if ($destination)
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 = user_price_dec();
if ($category == ALL_NUMERIC)
3 => array('text' => _('Location'), 'from' => $loc, 'to' => ''),
4 => array('text' => _('Customer'), 'from' => $fromc, 'to' => ''));
- $rep = new FrontReport(_('Inventory Sales Report'), "InventorySalesReport", user_pagesize());
-
+ $rep = new FrontReport(_('Inventory Sales Report'), "InventorySalesReport", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
+
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep->NewPage();
$from = $_POST['PARAM_0'];
$to = $_POST['PARAM_1'];
$comments = $_POST['PARAM_2'];
- $destination = $_POST['PARAM_3'];
+ $orientation = $_POST['PARAM_3'];
+ $destination = $_POST['PARAM_4'];
if ($destination)
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 = user_price_dec();
$cols = array(0, 75, 225, 260, 295, 330, 370, 410, 455, 515);
$params = array( 0 => $comments,
1 => array('text' => _('Period'),'from' => $from, 'to' => $to));
- $rep = new FrontReport(_('GRN Valuation Report'), "GRNValuationReport", user_pagesize());
+ $rep = new FrontReport(_('GRN Valuation Report'), "GRNValuationReport", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$frompart = $_POST['PARAM_0'];
$topart = $_POST['PARAM_1'];
$comments = $_POST['PARAM_2'];
- $destination = $_POST['PARAM_3'];
+ $orientation = $_POST['PARAM_3'];
+ $destination = $_POST['PARAM_4'];
if ($destination)
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');
$cols = array(0, 50, 305, 375, 445, 515);
$headers = array(_('Component'), _('Description'), _('Loc'), _('Wrk Ctr'), _('Quantity'));
$params = array( 0 => $comments,
1 => array('text' => _('Component'), 'from' => $frompart, 'to' => $topart));
- $rep = new FrontReport(_('Bill of Material Listing'), "BillOfMaterial", user_pagesize());
+ $rep = new FrontReport(_('Bill of Material Listing'), "BillOfMaterial", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$to = $_POST['PARAM_1'];
$email = $_POST['PARAM_2'];
$comments = $_POST['PARAM_3'];
+ $orientation = $_POST['PARAM_4'];
+ $orientation = ($orientation ? 'L' : 'P');
if (!$from || !$to) return;
$fno = explode("-", $from);
$cur = get_company_Pref('curr_default');
if ($email == 0)
- {
- $rep = new FrontReport(_('WORK ORDER'), "WorkOrderBulk", user_pagesize());
- $rep->SetHeaderType('Header2');
- $rep->currency = $cur;
- $rep->Font();
- $rep->Info($params, $cols, null, $aligns);
- }
-
+ $rep = new FrontReport(_('WORK ORDER'), "WorkOrderBulk", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
+
for ($i = $from; $i <= $to; $i++)
{
$myrow = get_work_order($i);
continue;
$date_ = sql2date($myrow["date_"]);
if ($email == 1)
- {
- $rep = new FrontReport("", "", user_pagesize());
- $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);
- }
- else
+ $rep = new FrontReport("", "", user_pagesize(), 9, $orientation);
+ $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, // ???
'name' => $myrow['contact'], 'name2' => '', 'contact');
$todim = $_POST['PARAM_1'];
$showbal = $_POST['PARAM_2'];
$comments = $_POST['PARAM_3'];
- $destination = $_POST['PARAM_4'];
+ $orientation = $_POST['PARAM_4'];
+ $destination = $_POST['PARAM_5'];
if ($destination)
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');
$cols = array(0, 50, 210, 250, 320, 395, 465, 515);
$headers = array(_('Reference'), _('Name'), _('Type'), _('Date'), _('Due Date'), _('Closed'), _('YTD'));
$params = array( 0 => $comments,
1 => array('text' => _('Dimension'), 'from' => get_dimension_string($fromdim), 'to' => get_dimension_string($todim)));
- $rep = new FrontReport(_('Dimension Summary'), "DimensionSummary", user_pagesize());
+ $rep = new FrontReport(_('Dimension Summary'), "DimensionSummary", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$to = $_POST['PARAM_2'];
$zero = $_POST['PARAM_3'];
$comments = $_POST['PARAM_4'];
- $destination = $_POST['PARAM_5'];
+ $orientation = $_POST['PARAM_5'];
+ $destination = $_POST['PARAM_6'];
if ($destination)
include_once($path_to_root . "/reporting/includes/excel_report.inc");
else
include_once($path_to_root . "/reporting/includes/pdf_report.inc");
- $rep = new FrontReport(_('Bank Statement'), "BankStatement", user_pagesize());
+ $orientation = ($orientation ? 'L' : 'P');
+ $rep = new FrontReport(_('Bank Statement'), "BankStatement", user_pagesize(), 9, $orientation);
$dec = user_price_dec();
$cols = array(0, 90, 110, 170, 225, 350, 400, 460, 520);
1 => array('text' => _('Period'), 'from' => $from, 'to' => $to),
2 => array('text' => _('Bank Account'),'from' => $act,'to' => ''));
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep->NewPage();
$showbalance = $_POST['PARAM_0'];
$comments = $_POST['PARAM_1'];
- $destination = $_POST['PARAM_2'];
+ $orientation = $_POST['PARAM_2'];
+ $destination = $_POST['PARAM_3'];
if ($destination)
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;
$cols = array(0, 50, 300, 425, 500);
$params = array(0 => $comments);
- $rep = new FrontReport(_('Chart of Accounts'), "ChartOfAccounts", user_pagesize());
+ $rep = new FrontReport(_('Chart of Accounts'), "ChartOfAccounts", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$to = $_POST['PARAM_1'];
$systype = $_POST['PARAM_2'];
$comments = $_POST['PARAM_3'];
- $destination = $_POST['PARAM_4'];
+ $orientation = $_POST['PARAM_4'];
+ $destination = $_POST['PARAM_5'];
if ($destination)
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 = user_price_dec();
$cols = array(0, 100, 240, 300, 400, 460, 520, 580);
$systype == -1 ? _('All') : $systypes_array[$systype],
'to' => ''));
- $rep = new FrontReport(_('List of Journal Entries'), "JournalEntries", user_pagesize());
+ $rep = new FrontReport(_('List of Journal Entries'), "JournalEntries", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$dimension = $_POST['PARAM_4'];
$dimension2 = $_POST['PARAM_5'];
$comments = $_POST['PARAM_6'];
- $destination = $_POST['PARAM_7'];
+ $orientation = $_POST['PARAM_7'];
+ $destination = $_POST['PARAM_8'];
}
else if ($dim == 1)
{
$dimension = $_POST['PARAM_4'];
$comments = $_POST['PARAM_5'];
- $destination = $_POST['PARAM_6'];
+ $orientation = $_POST['PARAM_6'];
+ $destination = $_POST['PARAM_7'];
}
else
{
$comments = $_POST['PARAM_4'];
- $destination = $_POST['PARAM_5'];
+ $orientation = $_POST['PARAM_5'];
+ $destination = $_POST['PARAM_6'];
}
if ($destination)
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');
- $rep = new FrontReport(_('GL Account Transactions'), "GLAccountTransactions", user_pagesize());
+ $rep = new FrontReport(_('GL Account Transactions'), "GLAccountTransactions", user_pagesize(), 9, $orientation);
$dec = user_price_dec();
//$cols = array(0, 80, 100, 150, 210, 280, 340, 400, 450, 510, 570);
1 => array('text' => _('Period'), 'from' => $from, 'to' => $to),
2 => array('text' => _('Accounts'),'from' => $fromacc,'to' => $toacc));
}
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$dimension2 = $_POST['PARAM_2'];
$tags = (isset($_POST['PARAM_3']) ? $_POST['PARAM_3'] : -1);
$comments = $_POST['PARAM_4'];
- $destination = $_POST['PARAM_5'];
+ $orientation = $_POST['PARAM_5'];
+ $destination = $_POST['PARAM_6'];
}
else if ($dim == 1)
{
$dimension = $_POST['PARAM_1'];
$tags = (isset($_POST['PARAM_2']) ? $_POST['PARAM_2'] : -1);
$comments = $_POST['PARAM_3'];
- $destination = $_POST['PARAM_4'];
+ $orientation = $_POST['PARAM_4'];
+ $destination = $_POST['PARAM_5'];
}
else
{
$year = $_POST['PARAM_0'];
$tags = (isset($_POST['PARAM_1']) ? $_POST['PARAM_1'] : -1);
$comments = $_POST['PARAM_2'];
- $destination = $_POST['PARAM_3'];
+ $orientation = $_POST['PARAM_3'];
+ $destination = $_POST['PARAM_4'];
}
if ($destination)
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 = 1;
//$pdec = user_percent_dec();
'to' => ''));
}
- $rep = new FrontReport(_('Annual Expense Breakdown'), "AnnualBreakDown", user_pagesize());
-
+ $rep = new FrontReport(_('Annual Expense Breakdown'), "AnnualBreakDown", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep->NewPage();
$decimals = $_POST['PARAM_5'];
$graphics = $_POST['PARAM_6'];
$comments = $_POST['PARAM_7'];
- $destination = $_POST['PARAM_8'];
+ $orientation = $_POST['PARAM_8'];
+ $destination = $_POST['PARAM_9'];
}
else if ($dim == 1)
{
$decimals = $_POST['PARAM_4'];
$graphics = $_POST['PARAM_5'];
$comments = $_POST['PARAM_6'];
- $destination = $_POST['PARAM_7'];
+ $orientation = $_POST['PARAM_7'];
+ $destination = $_POST['PARAM_8'];
}
else
{
$decimals = $_POST['PARAM_3'];
$graphics = $_POST['PARAM_4'];
$comments = $_POST['PARAM_5'];
- $destination = $_POST['PARAM_6'];
+ $orientation = $_POST['PARAM_6'];
+ $destination = $_POST['PARAM_7'];
}
if ($destination)
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');
if ($graphics)
{
include_once($path_to_root . "/reporting/includes/class.graphic.inc");
2 => array('text' => _('Tags'), 'from' => get_tag_names($tags), 'to' => ''));
}
- $rep = new FrontReport(_('Balance Sheet'), "BalanceSheet", user_pagesize());
+ $rep = new FrontReport(_('Balance Sheet'), "BalanceSheet", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep->NewPage();
$decimals = $_POST['PARAM_6'];
$graphics = $_POST['PARAM_7'];
$comments = $_POST['PARAM_8'];
- $destination = $_POST['PARAM_9'];
+ $orientation = $_POST['PARAM_9'];
+ $destination = $_POST['PARAM_10'];
}
else if ($dim == 1)
{
$decimals = $_POST['PARAM_5'];
$graphics = $_POST['PARAM_6'];
$comments = $_POST['PARAM_7'];
- $destination = $_POST['PARAM_8'];
+ $orientation = $_POST['PARAM_8'];
+ $destination = $_POST['PARAM_9'];
}
else
{
$decimals = $_POST['PARAM_4'];
$graphics = $_POST['PARAM_5'];
$comments = $_POST['PARAM_6'];
- $destination = $_POST['PARAM_7'];
+ $orientation = $_POST['PARAM_7'];
+ $destination = $_POST['PARAM_8'];
}
if ($destination)
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');
if ($graphics)
{
include_once($path_to_root . "/reporting/includes/class.graphic.inc");
$headers[3] = _('Period Y-1');
}
- $rep = new FrontReport(_('Profit and Loss Statement'), "ProfitAndLoss", user_pagesize());
-
+ $rep = new FrontReport(_('Profit and Loss Statement'), "ProfitAndLoss", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep->NewPage();
$dimension = $_POST['PARAM_4'];
$dimension2 = $_POST['PARAM_5'];
$comments = $_POST['PARAM_6'];
- $destination = $_POST['PARAM_7'];
+ $orientation = $_POST['PARAM_7'];
+ $destination = $_POST['PARAM_8'];
}
else if ($dim == 1)
{
$dimension = $_POST['PARAM_4'];
$comments = $_POST['PARAM_5'];
- $destination = $_POST['PARAM_6'];
+ $orientation = $_POST['PARAM_6'];
+ $destination = $_POST['PARAM_7'];
}
else
{
$comments = $_POST['PARAM_4'];
- $destination = $_POST['PARAM_5'];
+ $orientation = $_POST['PARAM_5'];
+ $destination = $_POST['PARAM_6'];
}
if ($destination)
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 = user_price_dec();
$cols2 = array(0, 50, 190, 310, 430, 530);
1 => array('text' => _('Period'),'from' => $from, 'to' => $to));
}
- $rep = new FrontReport(_('Trial Balance'), "TrialBalance", user_pagesize());
-
+ $rep = new FrontReport(_('Trial Balance'), "TrialBalance", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ {
+ $rep->recalculate_cols($cols);
+ $rep->recalculate_cols($cols2);
+ }
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns, $cols2, $headers2, $aligns2);
$rep->NewPage();
$to = $_POST['PARAM_1'];
$summaryOnly = $_POST['PARAM_2'];
$comments = $_POST['PARAM_3'];
- $destination = $_POST['PARAM_4'];
+ $orientation = $_POST['PARAM_4'];
+ $destination = $_POST['PARAM_5'];
if ($destination)
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 = user_price_dec();
- $rep = new FrontReport(_('Tax Report'), "TaxReport", user_pagesize());
+ $rep = new FrontReport(_('Tax Report'), "TaxReport", user_pagesize(), 9, $orientation);
if ($summaryOnly == 1)
$summary = _('Summary Only');
else
$headers = array(_('Trans Type'), _('Ref'), _('Date'), _('Name'), _('Branch Name'),
_('Net'), _('Rate'), _('Tax'), '', _('Name'));
$aligns = array('left', 'left', 'left', 'left', 'left', 'right', 'right', 'right', 'right','left');
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
+
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
if (!$summaryOnly)
// Summary
$cols2 = array(0, 100, 180, 260, 340, 420, 500);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols2);
$headers2 = array(_('Tax Rate'), _('Outputs'), _('Output Tax'), _('Inputs'), _('Input Tax'), _('Net Tax'));
$systype = $_POST['PARAM_2'];
$user = $_POST['PARAM_3'];
$comments = $_POST['PARAM_4'];
- $destination = $_POST['PARAM_5'];
+ $orientation = $_POST['PARAM_5'];
+ $destination = $_POST['PARAM_6'];
if ($destination)
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 = user_price_dec();
$cols = array(0, 60, 120, 180, 240, 340, 400, 460, 520);
2 => array('text' => _('Type'), 'from' => ($systype != -1 ? $systypes_array[$systype] : _('All')), 'to' => ''),
3 => array('text' => _('User'), 'from' => ($user != -1 ? $user_id : _('All')), 'to' => ''));
- $rep = new FrontReport(_('Audit Trail'), "AuditTrail", user_pagesize());
-
+ $rep = new FrontReport(_('Audit Trail'), "AuditTrail", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ $rep->recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep->NewPage();
_('Currency Filter') => 'CURRENCY',
_('Suppress Zeros') => 'YES_NO',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_CUSTOMER, 102, _('&Aged Customer Analysis'),
array( _('End Date') => 'DATE',
_('Suppress Zeros') => 'YES_NO',
_('Graphics') => 'GRAPHIC',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_CUSTOMER, 103, _('Customer &Detail Listing'),
array( _('Activity Since') => 'DATEBEGIN',
_('Activity Greater Than') => 'TEXT',
_('Activity Less Than') => 'TEXT',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_CUSTOMER, 114, _('Sales &Summary Report'),
array( _('Start Date') => 'DATEBEGINTAX',
_('End Date') => 'DATEENDTAX',
_('Tax Id Only') => 'YES_NO',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_CUSTOMER, 104, _('&Price Listing'),
array( _('Currency Filter') => 'CURRENCY',
_('Show Pictures') => 'YES_NO',
_('Show GP %') => 'YES_NO',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_CUSTOMER, 105, _('&Order Status Listing'),
array( _('Start Date') => 'DATEBEGINM',
_('Stock Location') => 'LOCATIONS',
_('Back Orders Only') => 'YES_NO',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_CUSTOMER, 106, _('&Salesman Listing'),
array( _('Start Date') => 'DATEBEGINM',
_('End Date') => 'DATEENDM',
_('Summary Only') => 'YES_NO',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_CUSTOMER, 107, _('Print &Invoices'),
array( _('From') => 'INVOICE',
_('Currency Filter') => 'CURRENCY',
_('email Customers') => 'YES_NO',
_('Payment Link') => 'PAYMENT_LINK',
- _('Comments') => 'TEXTBOX'));
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION'));
$reports->addReport(RC_CUSTOMER, 113, _('Print &Credit Notes'),
array( _('From') => 'CREDIT',
_('To') => 'CREDIT',
_('Currency Filter') => 'CURRENCY',
_('email Customers') => 'YES_NO',
_('Payment Link') => 'PAYMENT_LINK',
- _('Comments') => 'TEXTBOX'));
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION'));
$reports->addReport(RC_CUSTOMER, 110, _('Print &Deliveries'),
array( _('From') => 'DELIVERY',
_('To') => 'DELIVERY',
_('email Customers') => 'YES_NO',
_('Print as Packing Slip') => 'YES_NO',
- _('Comments') => 'TEXTBOX'));
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION'));
$reports->addReport(RC_CUSTOMER, 108, _('Print &Statements'),
array( _('Customer') => 'CUSTOMERS_NO_FILTER',
_('Currency Filter') => 'CURRENCY',
_('Show Also Allocated') => 'YES_NO',
_('Email Customers') => 'YES_NO',
- _('Comments') => 'TEXTBOX'));
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION'));
$reports->addReport(RC_CUSTOMER, 109, _('&Print Sales Orders'),
array( _('From') => 'ORDERS',
_('To') => 'ORDERS',
_('Currency Filter') => 'CURRENCY',
_('Email Customers') => 'YES_NO',
_('Print as Quote') => 'YES_NO',
- _('Comments') => 'TEXTBOX'));
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION'));
$reports->addReport(RC_CUSTOMER, 111, _('&Print Sales Quotations'),
array( _('From') => 'QUOTATIONS',
_('To') => 'QUOTATIONS',
_('Currency Filter') => 'CURRENCY',
_('Email Customers') => 'YES_NO',
- _('Comments') => 'TEXTBOX'));
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION'));
$reports->addReport(RC_CUSTOMER, 112, _('Print Receipts'),
array( _('From') => 'RECEIPT',
_('To') => 'RECEIPT',
_('Currency Filter') => 'CURRENCY',
- _('Comments') => 'TEXTBOX'));
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION'));
$reports->addReportClass(_('Supplier'), RC_SUPPLIER);
$reports->addReport(RC_SUPPLIER, 201, _('Supplier &Balances'),
_('Currency Filter') => 'CURRENCY',
_('Suppress Zeros') => 'YES_NO',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_SUPPLIER, 202, _('&Aged Supplier Analyses'),
array( _('End Date') => 'DATE',
_('Suppress Zeros') => 'YES_NO',
_('Graphics') => 'GRAPHIC',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_SUPPLIER, 203, _('&Payment Report'),
array( _('End Date') => 'DATE',
_('Currency Filter') => 'CURRENCY',
_('Suppress Zeros') => 'YES_NO',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_SUPPLIER, 204, _('Outstanding &GRNs Report'),
array( _('Supplier') => 'SUPPLIERS_NO_FILTER',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_SUPPLIER, 209, _('Print Purchase &Orders'),
array( _('From') => 'PO',
_('To') => 'PO',
_('Currency Filter') => 'CURRENCY',
_('Email Customers') => 'YES_NO',
- _('Comments') => 'TEXTBOX'));
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION'));
$reports->addReport(RC_SUPPLIER, 210, _('Print Remi&ttances'),
array( _('From') => 'REMITTANCE',
_('To') => 'REMITTANCE',
_('Currency Filter') => 'CURRENCY',
_('Email Customers') => 'YES_NO',
- _('Comments') => 'TEXTBOX'));
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION'));
$reports->addReportClass(_('Inventory'), RC_INVENTORY);
_('Location') => 'LOCATIONS',
_('Summary Only') => 'YES_NO',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_INVENTORY, 302, _('Inventory &Planning Report'),
array( _('Inventory Category') => 'CATEGORIES',
_('Location') => 'LOCATIONS',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_INVENTORY, 303, _('Stock &Check Sheets'),
array( _('Inventory Category') => 'CATEGORIES',
_('Show Shortage') => 'YES_NO',
_('Suppress Zeros') => 'YES_NO',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_INVENTORY, 304, _('Inventory &Sales Report'),
array( _('Start Date') => 'DATEBEGINM',
_('Location') => 'LOCATIONS',
_('Customer') => 'CUSTOMERS_NO_FILTER',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_INVENTORY, 305, _('&GRN Valuation Report'),
array( _('Start Date') => 'DATEBEGINM',
_('End Date') => 'DATEENDM',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
+ _('Destination') => 'DESTINATION'));
+$reports->addReport(RC_INVENTORY, 306, _('Inventory P&urchasing Report'),
+ array( _('Start Date') => 'DATEBEGINM',
+ _('End Date') => 'DATEENDM',
+ _('Inventory Category') => 'CATEGORIES',
+ _('Location') => 'LOCATIONS',
+ _('Supplier') => 'SUPPLIERS_NO_FILTER',
+ _('Items') => 'ITEMS_P',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReportClass(_('Manufacturing'), RC_MANUFACTURE);
array( _('From product') => 'ITEMS',
_('To product') => 'ITEMS',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_MANUFACTURE, 409, _('Print &Work Orders'),
array( _('From') => 'WORKORDER',
_('To') => 'WORKORDER',
_('Email Locations') => 'YES_NO',
- _('Comments') => 'TEXTBOX'));
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION'));
$reports->addReportClass(_('Dimensions'), RC_DIMENSIONS);
if ($dim > 0)
{
_('To Dimension') => 'DIMENSION',
_('Show Balance') => 'YES_NO',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
//$reports->addReport(_('Dimensions'),502, _('Dimension Details'),
//array( _('Dimension'),'DIMENSIONS'),
_('End Date') => 'DATEENDM',
_('Zero values') => 'YES_NO',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReportClass(_('General Ledger'), RC_GL);
$reports->addReport(RC_GL, 701, _('Chart of &Accounts'),
array( _('Show Balances') => 'YES_NO',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_GL, 702, _('List of &Journal Entries'),
array( _('Start Date') => 'DATEBEGINM',
_('End Date') => 'DATEENDM',
_('Type') => 'SYS_TYPES',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
//$reports->addReport(RC_GL, 703, _('GL Account Group Summary'),
// array( _('Comments'),'TEXTBOX')));
_('Dimension')." 1" => 'DIMENSIONS1',
_('Dimension')." 2" => 'DIMENSIONS2',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_GL, 705, _('Annual &Expense Breakdown'),
array( _('Year') => 'TRANS_YEARS',
_('Dimension')." 2" => 'DIMENSIONS2',
_('Account Tags') => 'ACCOUNTTAGS',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_GL, 706, _('&Balance Sheet'),
array( _('Start Date') => 'DATEBEGIN',
_('Decimal values') => 'YES_NO',
_('Graphics') => 'GRAPHIC',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_GL, 707, _('&Profit and Loss Statement'),
array( _('Start Date') => 'DATEBEGINM',
_('Decimal values') => 'YES_NO',
_('Graphics') => 'GRAPHIC',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_GL, 708, _('Trial &Balance'),
array( _('Start Date') => 'DATEBEGINM',
_('Dimension')." 1" => 'DIMENSIONS1',
_('Dimension')." 2" => 'DIMENSIONS2',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
}
else if ($dim == 1)
_('To Account') => 'GL_ACCOUNTS',
_('Dimension') => 'DIMENSIONS1',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_GL, 705, _('Annual &Expense Breakdown'),
array( _('Year') => 'TRANS_YEARS',
_('Dimension') => 'DIMENSIONS1',
_('Account Tags') => 'ACCOUNTTAGS',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_GL, 706, _('&Balance Sheet'),
array( _('Start Date') => 'DATEBEGIN',
_('Decimal values') => 'YES_NO',
_('Graphics') => 'GRAPHIC',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_GL, 707, _('&Profit and Loss Statement'),
array( _('Start Date') => 'DATEBEGINM',
_('Decimal values') => 'YES_NO',
_('Graphics') => 'GRAPHIC',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_GL, 708, _('Trial &Balance'),
array( _('Start Date') => 'DATEBEGINM',
_('Only balances') => 'YES_NO',
_('Dimension') => 'DIMENSIONS1',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
}
else
_('From Account') => 'GL_ACCOUNTS',
_('To Account') => 'GL_ACCOUNTS',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_GL, 705, _('Annual &Expense Breakdown'),
array( _('Year') => 'TRANS_YEARS',
_('Account Tags') => 'ACCOUNTTAGS',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_GL, 706, _('&Balance Sheet'),
array( _('Start Date') => 'DATEBEGIN',
_('Decimal values') => 'YES_NO',
_('Graphics') => 'GRAPHIC',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_GL, 707, _('&Profit and Loss Statement'),
array( _('Start Date') => 'DATEBEGINM',
_('Decimal values') => 'YES_NO',
_('Graphics') => 'GRAPHIC',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_GL, 708, _('Trial &Balance'),
array( _('Start Date') => 'DATEBEGINM',
_('Zero values') => 'YES_NO',
_('Only balances') => 'YES_NO',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
}
$reports->addReport(RC_GL, 709, _('Ta&x Report'),
_('End Date') => 'DATEENDTAX',
_('Summary Only') => 'YES_NO',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
$reports->addReport(RC_GL, 710, _('Audit Trail'),
array( _('Start Date') => 'DATEBEGINM',
_('Type') => 'SYS_TYPES_ALL',
_('User') => 'USERS',
_('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
_('Destination') => 'DESTINATION'));
add_custom_reports($reports);