projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Delivery Against Sales Orders: sales orders displayed as overdue after delivery date.
[fa-stable.git]
/
reporting
/
rep301.php
diff --git
a/reporting/rep301.php
b/reporting/rep301.php
index 36093b1b7c4bf5289f7e9a5a97b676bb29dd60b1..5ad1735cb31cb5d2630ca1a0207ce6b4d79a775f 100644
(file)
--- a/
reporting/rep301.php
+++ b/
reporting/rep301.php
@@
-76,7
+76,8
@@
function print_inventory_valuation_report()
$location = $_POST['PARAM_2'];
$detail = $_POST['PARAM_3'];
$comments = $_POST['PARAM_4'];
$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
if ($destination)
include_once($path_to_root . "/reporting/includes/excel_report.inc");
else
@@
-84,6
+85,7
@@
function print_inventory_valuation_report()
$detail = !$detail;
$dec = user_price_dec();
$detail = !$detail;
$dec = user_price_dec();
+ $orientation = ($orientation ? 'L' : 'P');
if ($category == ALL_NUMERIC)
$category = 0;
if ($category == 0)
if ($category == ALL_NUMERIC)
$category = 0;
if ($category == 0)
@@
-109,8
+111,9
@@
function print_inventory_valuation_report()
2 => array('text' => _('Category'), 'from' => $cat, 'to' => ''),
3 => array('text' => _('Location'), 'from' => $loc, 'to' => ''));
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')
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep->NewPage();
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep->NewPage();