Page 1 of 1

Inventory Sales form

PostPosted: Thu May 28, 2020 1:25 pm
by Riyaz
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

Re: Inventory Sales form

PostPosted: Thu May 28, 2020 1:31 pm
by Scott.Pearce
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

Re: Inventory Sales form

PostPosted: Thu May 28, 2020 1:33 pm
by Riyaz
Perfect, thanks Scott, appreciate it