Purchase Order ItemIsAlreadyOnOrder  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Purchase Order ItemIsAlreadyOnOrder

Postby perry » Thu Nov 05, 2015 3:06 pm

Hi,

Jiwa 7.0.129

I'm trying to disable the "Item is already on order" message if "PurchaseOrder.IsAutoReordering = true".

It looks the event is called after message box is displayed?

Code: Select all
AddHandler PurchaseOrder.Lines.ItemIsAlreadyOnOrder, AddressOf ItemIsAlreadyOnOrder


Code: Select all
Private Sub ItemIsAlreadyOnOrder(PartNo As String, ByRef Cancel As Boolean)
      Cancel = PurchaseOrder.IsAutoReordering
End Sub
Perry Ma
S. Programmer
Lonicera Pty Ltd
http://www.lonicera.com.au
perry
Frequent Contributor
Frequent Contributor
 
Posts: 173
Joined: Mon Oct 27, 2008 2:26 pm
Topics Solved: 15

Re: Purchase Order ItemIsAlreadyOnOrder  Topic is solved

Postby Scott.Pearce » Fri Nov 13, 2015 11:54 am

What you are doing there is cancelling the adding of the line. Yes, the event is fired, the form displays the message, then if cancel = true the AddInventoryItem routine is aborted.

If you want to just not show the message, then you need to hook into an event on the purchase order form called "AboutToAskItemAlreadyOnOrder" and set it's cancel to true. Alas, this event was not in 7.0.129 and I cannot see any other way of suppressing the message in that version of Jiwa :-(
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 765
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 230


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 2 guests