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).