X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep308.php;h=ffd880ebc804b86c2b34c04cc5f2c21f3df83793;hb=51f9e62242aa3697a2d9350d6d1040d5c647c7a5;hp=a738e3d1c8fee9044cade109ba4b74fe61dca907;hpb=c2b751f91d79c69bb802b1bff13a3c4bdecb87b0;p=fa-stable.git diff --git a/reporting/rep308.php b/reporting/rep308.php index a738e3d1..ffd880eb 100644 --- a/reporting/rep308.php +++ b/reporting/rep308.php @@ -32,7 +32,7 @@ inventory_movements(); function get_domestic_price($myrow, $stock_id) { - if ($myrow['type'] == ST_SUPPRECEIVE || $myrow['type'] == ST_SUPPCREDIT || $myrow['type'] == ST_INVADJUST) + if ($myrow['type'] == ST_SUPPRECEIVE || $myrow['type'] == ST_SUPPCREDIT) { $price = $myrow['price']; if ($myrow['person_id'] > 0) @@ -64,7 +64,7 @@ function fetch_items($category=0) return db_query($sql,"No transactions were returned"); } -function trans_qty($stock_id, $location=null, $from_date, $to_date, $inward = true) +function trans_qty($stock_id, $location, $from_date, $to_date, $inward = true) { if ($from_date == null) $from_date = Today(); @@ -97,7 +97,7 @@ function trans_qty($stock_id, $location=null, $from_date, $to_date, $inward = tr } -function avg_unit_cost($stock_id, $location=null, $to_date) +function avg_unit_cost($stock_id, $location, $to_date) { if ($to_date == null) $to_date = Today(); @@ -139,7 +139,7 @@ function avg_unit_cost($stock_id, $location=null, $to_date) //---------------------------------------------------------------------------------------------------- -function trans_qty_unit_cost($stock_id, $location=null, $from_date, $to_date, $inward = true) +function trans_qty_unit_cost($stock_id, $location, $from_date, $to_date, $inward = true) { if ($from_date == null) $from_date = Today();