X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fpo_entry_items.php;h=a09b2e14d74f8ff9158c4ccc912c08b944bdd7a2;hb=e2fa1c1b9543dedb3cd0a3a36dc539c86f7ff473;hp=988c90faf3a1b15af98e82d0c8eb5af3af9484cb;hpb=1e75eb8d3ca9a590e16b5ca168a662998486cdfe;p=fa-stable.git diff --git a/purchasing/po_entry_items.php b/purchasing/po_entry_items.php index 988c90fa..a09b2e14 100644 --- a/purchasing/po_entry_items.php +++ b/purchasing/po_entry_items.php @@ -227,10 +227,7 @@ function handle_add_new_item() if ($allow_update == true) { - $sql = "SELECT description, units, mb_flag - FROM ".TB_PREF."stock_master WHERE stock_id = ".db_escape($_POST['stock_id']); - - $result = db_query($sql,"The stock details for " . $_POST['stock_id'] . " could not be retrieved"); + $result = get_short_info($_POST['stock_id']); if (db_num_rows($result) == 0) {