diff --git a/AnalysisHorizontalIncome.php b/AnalysisHorizontalIncome.php
index 5a46c1506..5ee2f8aa6 100644
--- a/AnalysisHorizontalIncome.php
+++ b/AnalysisHorizontalIncome.php
@@ -26,6 +26,11 @@ function RelativeChange($selected_period, $previous_period) {
$_POST['SelectADifferentPeriod']='Select A Different Period';
}
+if ($_POST['Period'] != '') {
+ $_POST['FromPeriod'] = ReportPeriod($_POST['Period'], 'From');
+ $_POST['ToPeriod'] = ReportPeriod($_POST['Period'], 'To');
+}
+
include('includes/header.php');
if((!isset($_POST['FromPeriod']) AND !isset($_POST['ToPeriod'])) OR isset($_POST['SelectADifferentPeriod'])) {
echo '
diff --git a/GLCashFlowsIndirect.php b/GLCashFlowsIndirect.php
index 479d1e010..50040fb12 100644
--- a/GLCashFlowsIndirect.php
+++ b/GLCashFlowsIndirect.php
@@ -68,6 +68,11 @@ function colDebitCredit($Amount) {
prnMsg(_('The period should be 12 months or less in duration. Please select an alternative period range.'), 'error');
}
+if ($_POST['Period'] != '') {
+ $_POST['PeriodFrom'] = ReportPeriod($_POST['Period'], 'From');
+ $_POST['PeriodTo'] = ReportPeriod($_POST['Period'], 'To');
+}
+
// Main code:
if(isset($_POST['PeriodFrom']) AND isset($_POST['PeriodTo']) AND $_POST['Action']!='New') {// If all parameters are set and valid, generates the report:
echo '
', _('Show the budget for the period'), '
', // "Checked" if ShowBudget is set AND it is TRUE.
(!isset($_SESSION['ShowFieldHelp']) || $_SESSION['ShowFieldHelp'] ? _('Check this box to show the budget for the period') : ''), // If it is not set the $_SESSION['ShowFieldHelp'] parameter OR it is TRUE, shows the page help text.
diff --git a/GLProfit_Loss.php b/GLProfit_Loss.php
index 4a2346fd2..b26bf9177 100644
--- a/GLProfit_Loss.php
+++ b/GLProfit_Loss.php
@@ -14,6 +14,11 @@
$_POST['SelectADifferentPeriod']='Select A Different Period';
}
+if ($_POST['Period'] != '') {
+ $_POST['FromPeriod'] = ReportPeriod($_POST['Period'], 'From');
+ $_POST['ToPeriod'] = ReportPeriod($_POST['Period'], 'To');
+}
+
if ((!isset($_POST['FromPeriod'])
AND !isset($_POST['ToPeriod']))
OR isset($_POST['SelectADifferentPeriod'])){
@@ -102,6 +107,21 @@
}
echo '