Merged changes from main branch up to 2.1.3.
[fa-stable.git] / gl / inquiry / tax_inquiry.php
index db10eea01e50901aaa21b0bf1d1a378fcb8f7720..39d90bb13f79c36a89d7638db4eff998f7e20358 100644 (file)
@@ -43,8 +43,9 @@ if (get_post('TransFromDate') == "" && get_post('TransToDate') == "")
        $row = get_company_prefs();
        $edate = add_months($date, -$row['tax_last']);
        $edate = end_month($edate);
-       $bdate = add_months($edate, -$row['tax_prd'] + 1);
-       $_POST["TransFromDate"] = begin_month($bdate);
+       $bdate = begin_month($edate);
+       $bdate = add_months($bdate, -$row['tax_prd'] + 1);
+       $_POST["TransFromDate"] = $bdate;
        $_POST["TransToDate"] = $edate;
 }