Page 1 of 1

Print Type

PostPosted: Wed Oct 14, 2020 3:35 pm
by Riyaz
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

Re: Print Type  Topic is solved

PostPosted: Wed Oct 14, 2020 3:40 pm
by Scott.Pearce
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