MorfeusTech

Drop Ship PO

Drop Ship PO to Pick Up Selling Price

The client wanted their Drop Ship Purchase Orders to pick up the selling rate of the unit item in the related Sales Order. For this, we created a custom field (Customization > Lists, Records, & Fields > Transaction Line Fields > New) that would store the value of the selling rate. We name this field id: _sell_rate (field id is automatically prepended with custcol), applied to Purchase Item. To accomplish this task, we created a client script as well as a user event script. The pageInit entry point was used for the client script while afterSubmit was utilized for the user event script, as shown in the code below:

Client Script

User Event Script

Expected Behavior

  1. Create a Drop Shipment purchase order from the Sales Order form.
  2. Upon saving, a Sales Order and a Purchase Order are generated from the form.
  3. The Purchase Order should be accessible in the Sales Order via a link.
  4. The selling rate on the Purchase Order should reflect the unit item’s selling rate from the Sales Order.

This behavior is also mimicked in the PO generated after approval of an existing SO with newly-populated PO Vendor and Create PO fields.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top