X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Finquiry%2Fstock_movements.php;h=6b83d04599c6ae3319921d6169e6fc581357f066;hb=ddadb47f2620ce6902ad4694ce6512568862ba05;hp=bf80e27a6688085baa596c9ef2750bb595f988e2;hpb=2b2cbcfe6a448536113966cbb11b79eda73db5ab;p=fa-stable.git diff --git a/inventory/inquiry/stock_movements.php b/inventory/inquiry/stock_movements.php index bf80e27a..6b83d045 100644 --- a/inventory/inquiry/stock_movements.php +++ b/inventory/inquiry/stock_movements.php @@ -136,7 +136,7 @@ while ($myrow = db_fetch($result)) $person = $myrow["person_id"]; $gl_posting = ""; - if (($myrow["type"] == 13) || ($myrow["type"] == 11)) + if (($myrow["type"] == ST_CUSTDELIVERY) || ($myrow["type"] == ST_CUSTCREDIT)) { $cust_row = get_customer_details_from_trans($myrow["type"], $myrow["trans_no"]); @@ -144,7 +144,7 @@ while ($myrow = db_fetch($result)) $person = $cust_row['name'] . " (" . $cust_row['br_name'] . ")"; } - elseif ($myrow["type"] == 25 || $myrow['type'] == 21) + elseif ($myrow["type"] == ST_SUPPRECEIVE || $myrow['type'] == ST_SUPPCREDIT) { // get the supplier name $sql = "SELECT supp_name FROM ".TB_PREF."suppliers WHERE supplier_id = '" . $myrow["person_id"] . "'"; @@ -161,8 +161,8 @@ while ($myrow = db_fetch($result)) $movement_type = get_movement_type($myrow["person_id"]); $person = $movement_type["name"]; } - elseif ($myrow["type"]==ST_WORKORDER || $myrow["type"] == 28 || - $myrow["type"] == 29) + elseif ($myrow["type"]==ST_WORKORDER || $myrow["type"] == ST_MANUISSUE || + $myrow["type"] == ST_MANURECEIVE) { $person = ""; }