Inventory Sales form

Discussions relating to plugin development, and the Jiwa API.

Inventory Sales form

Postby Riyaz » Thu May 28, 2020 1:25 pm

Hi There

There is an inventory sales form under utilities of the Inventory maintenance, this opens up all the inventory sales for the partno.

We want this replicated under Debtor maintenance so it only opens sales for that debtor, same inventory maintenance but for the debtor its getting triggered from. We can open the form but having trouble specifying the parameters such as Debtor, can you pls advise on the possibilities of this. Thanks
Riyaz
Kohai
Kohai
 
Posts: 233
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2

Re: Inventory Sales form

Postby Scott.Pearce » Thu May 28, 2020 1:31 pm

The software already does this via the "Debtor Sales" button in the "Actions" section of the ribbon on the Debtor Maintenance screen. The way it does it:

Code: Select all
    Private Sub mRecordSales_Click()
        Dim form As JiwaFinancials.Jiwa.JiwaInventoryUI.Sales.InventorySalesForm = Manager.FormFactory.CreateForm(Of JiwaFinancials.Jiwa.JiwaInventoryUI.Sales.InventorySalesForm)()
        form.InventorySalesObject.Ranges.DebtorAccountNo.From.ReadRecord(_Debtor.DebtorID)
        form.InventorySalesObject.Ranges.DebtorAccountNo.To.ReadRecord(_Debtor.DebtorID)
        form.Start()
        form.InventorySalesObject.Process()
    End Sub
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 742
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 221

Re: Inventory Sales form

Postby Riyaz » Thu May 28, 2020 1:33 pm

Perfect, thanks Scott, appreciate it
Riyaz
Kohai
Kohai
 
Posts: 233
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 7 guests

cron