web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics RMS (Archived)

HTML Status Bar Add "On Order" QTY

(0) ShareShare
ReportReport
Posted on by

I am trying to update my HTML Status Bar.
I have it displaying our Current Available "On Hand" Stock. but i cannot figure out how to add the "On Order" amount.

when we create our PO's it updates the On Order QTY in the SOManager, but i can't seem to figure out how to pull this data and place it in the Status HTML Bar.

below is an image of what i am trying to do.. Currently we have 0 Stock on this item but we have 12 on order that i cannot seem to figure out how to get to appear.

topbar_5F00_OnOrder.png

Below is some of the script i am using... it is not complete because its very long but the Available "QuantityOnHand" works and I can't see anything different that would make "Entry.QuantityOnOrder" not work... i also tried changing it to "Entry.Item.QuantityOnOrder"  and also "TransactionEntry.QuantityOnOrder", both caused the "On Order" text to disappear from the Status HTML bar.

-------------------------------------------------------------------------------------------------------------------------------

<script language="VBScript">

    Set QSRules = qsBridge.RequestQSRules()
    Dim OnOrder

    OnOrder = " "




            If Not Entry Is Nothing Then
                OnHand = "Available: " & Entry.Item.QuantityOnHand
                          If Not Entry Is Nothing Then
                OnOrder = "On Order: " & Entry.QuantityOnOrder
                End If




            txtOnOrder.innerText = OnOrder


</script>

<div id="txtOnOrder"></div>

-------------------------------------------------------------------------------------------------------------------------------

any thoughts?

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Just wondering if you got this  issue resolved? 

    PS. I like your red background on the status.htm

    Danny

  • Community Member Profile Picture
    on at

    Thanks,

    No I haven’t been able to figure it out yet.

    I haven’t looked at the code at all since I posted on here. I have been preoccupied.

    All I know is I have tried several different ways, and some put the “on order” text on the bar but leave the qty at 0 and some don’t show the “on order” text at all.

    So I know it’s mostly right but I just can’t get it to pull the quantity that is “on order”.

  • Suggested answer
    Jeff @ Check Point Software Profile Picture
    13,382 on at

    Without looking, I think the On-Order is a calculated field.  Look at the item table to see if there an On-Order column.

  • NickZnavor Profile Picture
    715 on at

    the field is calculated with the following query:

    SELECT SUM(QuantityOrdered - QuantityReceivedToDate) AS OnOrderQty FROM PurchaseOrderEntry INNER JOIN PurchaseOrder ON PurchaseOrderEntry.PurchaseOrderID = PurchaseOrder.ID AND PurchaseOrderEntry.StoreID = PurchaseOrder.StoreID WHERE PurchaseOrder.Status <> 2 AND (PurchaseOrder.POType <> 3 AND PurchaseOrder.POType <> 5) AND ItemID = 3923

    by replacing the ItemID with your desired item, it will return the number you want.... but I would have to look at the whole script to add the sql statement to it and test and make sure its working

  • Community Member Profile Picture
    on at

    .

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics RMS (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans