Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2010
    Posts
    169
    Plugin Contributions
    0

    Default Adding note about Manual Inventory quantity

    O.k. so I'm sure someone out there has this as it has been addressed before and made into a module. The module is stock quantity report. This works as a quick view, but we have thousands of products to count for our corrective inventory procedure. This next route would save many hours for many people I'm sure!

    I would like to place this on the collect_info.php page (product input page). I have configured a table at the top of the page that displays relevant information including "Stock on shelf:" x

    The "x" needs to be the current admin stock plus that product that was just purchased sitting in status bin #1. Meaning it's bought, paid for and needs to come off the shelf, but is still on the shelf until it's picked the next day.
    Here is the code associated to this, but i can't get it to work on the collect_info page, it displays 0:

    <?php
    $real = $db->Execute("SELECT SUM(op.products_quantity) AS qty
    FROM " . TABLE_ORDERS . " o, " . TABLE_ORDERS_PRODUCTS . " op
    WHERE o.orders_status<>'1'
    AND o.orders_id=op.orders_id
    AND op.products_id='". $products->fields['products_id'] ."' ");?>

    AND TO DISPLAY THE NUMBER...

    <td class="main" align="center"><?php echo $products->fields['products_quantity'] + $real->fields[qty]; ?>&nbsp;</td>

  2. #2
    Join Date
    Jan 2010
    Posts
    169
    Plugin Contributions
    0

    Default Re: Running Manual Inventory - made easy!!!

    It appears that the code to display the number is...

    admin stock:
    <td class="dataTableContent" align="center"><?php echo $products->fields['products_quantity'] + $real->fields[qty]; ?>&nbsp;</td>

    stock purchased but not picked yet from shelf:
    <td class="dataTableContent" align="center"><b><?php echo $real->fields[qty]; ?></b>&nbsp;</td>

    stock that you see on the shelf (this is the one I want):
    <td class="dataTableContent" align="center"><?php
    $level=$products->fields['products_quantity'];
    if ($level<'1'){
    echo ('<font color="#FF0000"><b>'.$level.'</b></font>');
    }
    else
    {
    echo $level;
    }?>
    &nbsp;</td>

 

 

Similar Threads

  1. Product inventory quantity box
    By hokyk in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 28 Jan 2011, 08:07 PM
  2. Manual Inventory Update from shipment
    By JohnA in forum General Questions
    Replies: 1
    Last Post: 10 Nov 2008, 04:17 AM
  3. Bulk inventory quantity update
    By rfrenzob in forum General Questions
    Replies: 0
    Last Post: 18 Oct 2008, 02:10 PM
  4. Adding a note in cart
    By alja in forum General Questions
    Replies: 0
    Last Post: 30 Jan 2008, 12:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •