Sales Order Batch Processing  Topic is solved

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

Sales Order Batch Processing

Postby Ernst » Mon Feb 15, 2016 11:20 am

Hi,

We had this breakout in JIWA6. It would default the batch to all unticked, allowing the customer to tick what he wants to process.

' >>in Batch Processing>Invoice Range Add Completed
'Process' box to 'unticked' when clicking Go in the Process Sales Orders form run from the menu.
' The standard setting Is To have it defaulting To 'ticked'.
For Each Invoice In FormObject.ProcessBatchObject.Invoices
Invoice.ProcessFlag = False
Next

Am battling to find a similar point of entry to do the same in JIWA7.0.149

Have been looking at JiwaSalesUI.BatchProcessing.BatchProcess

Any help appreciated. Thanks
User avatar
Ernst
Kohai
Kohai
 
Posts: 242
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 13

Re: Sales Order Batch Processing  Topic is solved

Postby Mike.Sheen » Fri Feb 19, 2016 10:07 pm

Ernst wrote:Hi,

We had this breakout in JIWA6. It would default the batch to all unticked, allowing the customer to tick what he wants to process.

' >>in Batch Processing>Invoice Range Add Completed
'Process' box to 'unticked' when clicking Go in the Process Sales Orders form run from the menu.
' The standard setting Is To have it defaulting To 'ticked'.
For Each Invoice In FormObject.ProcessBatchObject.Invoices
Invoice.ProcessFlag = False
Next

Am battling to find a similar point of entry to do the same in JIWA7.0.149

Have been looking at JiwaSalesUI.BatchProcessing.BatchProcess

Any help appreciated. Thanks


Hi Ernst,

The preferred way would be to hook into the business logic and whenever new processing candidates are read, set the process flag to false. However, there is an issue there as it's not firing the appropriate event - I've added this as bug 12491.

As a work-around, you can hook into the button click event of the button labelled "Append to Candidates" and do it that way:
Code: Select all
Public Sub Setup(ByVal JiwaForm As JiwaApplication.IJiwaForm, ByVal Plugin As JiwaApplication.Plugin.Plugin) Implements JiwaApplication.IJiwaFormPlugin.Setup      
      Dim batchProcessForm As JiwaSalesUI.BatchProcessing.BatchProcess = JiwaForm
      AddHandler batchProcessForm.GetCandidatesUltraButton.Click, AddressOf GetCandidatesUltraButton_Click
    End Sub
   
   Public Sub GetCandidatesUltraButton_Click(sender As System.Object, e As System.EventArgs)
      Dim batchProcessForm As JiwaSalesUI.BatchProcessing.BatchProcess = sender.FindForm()
      ' Set all
      For Each item As JiwaFinancials.Jiwa.JiwaSales.BatchProcessing.ProcessCandidate In batchProcessForm.BatchProcess.ProcessCandidates
         item.Process = False
      Next
   End Sub


Attached is a plugin which does this (in VB.NET - I assumed this based on the fact you mentioned and quoted VB Script code, but we'd appreciate you in future explicitly specifying which language you want to work with).
Attachments
Plugin Set all sales orders to not process in batch processing.xml
Sample plugin
(33.08 KiB) Downloaded 653 times
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: Sales Order Batch Processing

Postby Ernst » Mon Feb 29, 2016 1:11 pm

Works Great, thanks for Help
User avatar
Ernst
Kohai
Kohai
 
Posts: 242
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 13


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 6 guests