On Order Quantity for new PO from Item

Layout: Item | Purchase Order

The On Order quantity was not updating when:

  1. a new item was created
  2.  a PO was created from the Item layout

(This is using the Create PO button on the bottom right of the Item layout.)

Two scripts were altered: 

  1.     select warehouse ID based on warehouse name
  2.     set the balance quantity fields (parameters)

Modifications to select warehouse ID… was necessary to fix the bug.  Modifications to set the balance… is precautionary.

See log at bottom of those scripts for details.