X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep304.php;h=c3f570f0de33e0c5f41cbac16043535c65b57479;hb=0e9e4cf4f01431531dfed299bb501955bb0818ed;hp=971c7e20553c246bd79625f6e9724f27e23f9125;hpb=fc449c48a8d4ba23bfb18318dff08746340a440c;p=fa-stable.git diff --git a/reporting/rep304.php b/reporting/rep304.php index 971c7e20..c3f570f0 100644 --- a/reporting/rep304.php +++ b/reporting/rep304.php @@ -45,7 +45,7 @@ function getTransactions($category, $location, $fromcust, $from, $to, $show_serv move.tran_date, SUM(-move.qty) AS qty, SUM(-move.qty*move.price) AS amt, - SUM(-IF(move.standard_cost <> 0, move.qty * move.standard_cost, move.qty *item.material_cost)) AS cost + SUM(-IF(move.unit_cost <> 0, move.qty * move.unit_cost, move.qty *item.material_cost)) AS cost FROM ".TB_PREF."stock_master item, ".TB_PREF."stock_category category, ".TB_PREF."debtor_trans trans,