Better support for conversion_factor in Purchasing Pricing. Instruction on Sticky...
[fa-stable.git] / gl / inquiry / tax_inquiry.php
index df9cd14beb996f55fb34f3c2e2dc9b62d1929a4d..c68ddabbe526bba0d16caf55793444a90c5c6e45 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;
 }