Print Type  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Print Type

Postby Riyaz » Wed Oct 14, 2020 3:35 pm

Hi There

Just need some guidance on how to fetch the Print Type of sales orders, please see attached, the below is how I can get the name but not sure how to fetch the print type

Dim salesOrder As JiwaFinancials.Jiwa.JiwaSales.SalesOrder.SalesOrder = DirectCast(sender, JiwaFinancials.Jiwa.JiwaSales.SalesOrder.SalesOrder)

For Each salesOrderReport As JiwaApplication.PrintGroup.SalesOrderReports.SalesOrderReport In salesOrder.SalesOrderReports
MessageBox.Show(salesOrderReport.Name)
Next
Attachments
2020-10-14 15_31_22-drawing.png
2020-10-14 15_31_22-drawing.png (17.37 KiB) Viewed 165 times
Riyaz
Kohai
Kohai
 
Posts: 233
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2

Re: Print Type  Topic is solved

Postby Scott.Pearce » Wed Oct 14, 2020 3:40 pm

Try looking at:

Code: Select all
salesOrderReport.DocumentType


salesOrderReport.DocumentType is of type JiwaFinancials.Jiwa.JiwaApplication.PrintGroup.SalesOrderReports.SalesOrderReportCollection.SalesOrderPrintReportTypes. The SalesOrderPrintReportTypes enumeration looks like this:

Code: Select all
       
Public Enum SalesOrderPrintReportTypes
    e_SalesOrderPrintReportTypeInvoice = 0
    e_SalesOrderPrintReportTypeDeliveryDocket = 1
    e_SalesOrderPrintReportTypePackingSlip = 2
    e_SalesOrderPrintReportTypePickingSheet = 3
    e_SalesOrderPrintReportTypeOther = 4
End Enum
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


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 3 guests

cron