X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep451.php;h=28bdae6a7182b6e44a51b2cae074e156df92c2a2;hb=0b44975d1b3c8f3e3fb28d24d8b45b1a6f71d12c;hp=0d701eec667aba9715cba822c1bac723e6f69760;hpb=c479264e8db282f8d518d11bdd8883dc7d0b4d46;p=fa-stable.git diff --git a/reporting/rep451.php b/reporting/rep451.php index 0d701eec..28bdae6a 100644 --- a/reporting/rep451.php +++ b/reporting/rep451.php @@ -33,7 +33,7 @@ function find_last_location($stock_id, $end_date) tran_date <= '$end_date' ORDER BY tran_date DESC LIMIT 1"; $res = db_query($sql,"No stock moves were returned"); $row = db_fetch_row($res); - return $row[0]; + return is_array($row) ? $row[0] : false; } //---------------------------------------------------------------------------------------------------- @@ -140,7 +140,7 @@ function print_fixed_assets_valuation_report() { $rep->NewLine(); $rep->TextCol(0, 1, $trans['stock_id']); - $rep->TextCol(1, 2, $trans['name'].($trans['inactive']==1 ? " ("._("Inactive").")" : ""), -1); + $rep->TextCol(1, 2, $trans['name']); $rep->TextCol(2, 3, $trans['units']); $rep->AmountCol(3, 4, $UnitCost, $dec); $rep->AmountCol(4, 5, $Depreciation, $dec);