Share via


Codeunit "Document-Print"

ID 229
Namespace: Microsoft.Foundation.Reporting

Methods

EmailSalesHeader

procedure EmailSalesHeader(SalesHeader: Record "Sales Header")

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"

PrintSalesHeader

procedure PrintSalesHeader(SalesHeader: Record "Sales Header")

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"

PrintSalesHeaderToDocumentAttachment

procedure PrintSalesHeaderToDocumentAttachment(var SalesHeader: Record "Sales Header")

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"

PrintSalesInvoiceToDocumentAttachment

procedure PrintSalesInvoiceToDocumentAttachment(var SalesHeader: Record "Sales Header", SalesInvoicePrintToAttachmentOption: Integer)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesInvoicePrintToAttachmentOption Integer

GetSalesInvoicePrintToAttachmentOption

procedure GetSalesInvoicePrintToAttachmentOption(SalesHeader: Record "Sales Header"): Integer

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"

Returns

Type Description
Integer

PrintSalesOrderToDocumentAttachment

procedure PrintSalesOrderToDocumentAttachment(var SalesHeader: Record "Sales Header", SalesOrderPrintToAttachmentOption: Integer)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesOrderPrintToAttachmentOption Integer

GetSalesOrderPrintToAttachmentOption

procedure GetSalesOrderPrintToAttachmentOption(SalesHeader: Record "Sales Header"): Integer

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"

Returns

Type Description
Integer

PrintProformaSalesInvoiceToDocumentAttachment

procedure PrintProformaSalesInvoiceToDocumentAttachment(var SalesHeader: Record "Sales Header")

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"

PrintSalesOrderToAttachment

procedure PrintSalesOrderToAttachment(var SalesHeader: Record "Sales Header", Usage: Option)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
Usage Option

EmailPurchHeader

procedure EmailPurchHeader(PurchaseHeader: Record "Purchase Header")

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"

PrintPurchHeader

procedure PrintPurchHeader(PurchHeader: Record "Purchase Header")

Parameters

Name Type Description
PurchHeader Table Microsoft.Purchases.Document."Purchase Header"

PrintPurchaseHeaderToDocumentAttachment

procedure PrintPurchaseHeaderToDocumentAttachment(var PurchaseHeader: Record "Purchase Header")

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"

PrintBankAccStmt

procedure PrintBankAccStmt(BankAccStmt: Record "Bank Account Statement")

Parameters

Name Type Description
BankAccStmt Table Microsoft.Bank.Statement."Bank Account Statement"

PrintPostedPaymentReconciliation

procedure PrintPostedPaymentReconciliation(PostedPaymentReconHdr: Record "Posted Payment Recon. Hdr")

Parameters

Name Type Description
PostedPaymentReconHdr Table Microsoft.Bank.Reconciliation."Posted Payment Recon. Hdr"

PrintCheck

procedure PrintCheck(var NewGenJnlLine: Record "Gen. Journal Line")

Parameters

Name Type Description
NewGenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

PrintTransferHeader

procedure PrintTransferHeader(TransHeader: Record "Transfer Header")

Parameters

Name Type Description
TransHeader Table Microsoft.Inventory.Transfer."Transfer Header"

PrintServiceContract

Obsolete

This element will become obsolete from version 25.0. Replaced by procedure PrintServiceContract in codeunit Serv. Report Management

[Obsolete(Replaced by procedure PrintServiceContract in codeunit Serv. Report Management,25.0)]
procedure PrintServiceContract(ServiceContractHeader: Record "Service Contract Header")

Parameters

Name Type Description
ServiceContractHeader Table Microsoft.Service.Contract."Service Contract Header"

PrintServiceHeader

Obsolete

This element will become obsolete from version 25.0. Replaced by procedure PrintServiceHeader in codeunit Serv. Report Management

[Obsolete(Replaced by procedure PrintServiceHeader in codeunit Serv. Report Management,25.0)]
procedure PrintServiceHeader(ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

PrintAsmHeader

procedure PrintAsmHeader(AsmHeader: Record "Assembly Header")

Parameters

Name Type Description
AsmHeader Table Microsoft.Assembly.Document."Assembly Header"

PrintSalesOrder

procedure PrintSalesOrder(SalesHeader: Record "Sales Header", Usage: Option)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
Usage Option

PrintSalesHeaderArch

procedure PrintSalesHeaderArch(SalesHeaderArch: Record "Sales Header Archive")

Parameters

Name Type Description
SalesHeaderArch Table Microsoft.Sales.Archive."Sales Header Archive"

PrintPurchHeaderArch

procedure PrintPurchHeaderArch(PurchHeaderArch: Record "Purchase Header Archive")

Parameters

Name Type Description
PurchHeaderArch Table Microsoft.Purchases.Archive."Purchase Header Archive"

PrintProformaSalesInvoice

procedure PrintProformaSalesInvoice(SalesHeader: Record "Sales Header")

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"

PrintInvtOrderTest

procedure PrintInvtOrderTest(PhysInvtOrderHeader: Record "Phys. Invt. Order Header", ShowRequestForm: Boolean)

Parameters

Name Type Description
PhysInvtOrderHeader Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Header"
ShowRequestForm Boolean

PrintInvtOrder

procedure PrintInvtOrder(PhysInvtOrderHeader: Record "Phys. Invt. Order Header", ShowRequestForm: Boolean)

Parameters

Name Type Description
PhysInvtOrderHeader Table Microsoft.Inventory.Counting.Document."Phys. Invt. Order Header"
ShowRequestForm Boolean

PrintPostedInvtOrder

procedure PrintPostedInvtOrder(PstdPhysInvtOrderHdr: Record "Pstd. Phys. Invt. Order Hdr", ShowRequestForm: Boolean)

Parameters

Name Type Description
PstdPhysInvtOrderHdr Table Microsoft.Inventory.Counting.History."Pstd. Phys. Invt. Order Hdr"
ShowRequestForm Boolean

PrintInvtRecording

procedure PrintInvtRecording(PhysInvtRecordHeader: Record "Phys. Invt. Record Header", ShowRequestForm: Boolean)

Parameters

Name Type Description
PhysInvtRecordHeader Table Microsoft.Inventory.Counting.Recording."Phys. Invt. Record Header"
ShowRequestForm Boolean

PrintPostedInvtRecording

procedure PrintPostedInvtRecording(PstdPhysInvtRecordHdr: Record "Pstd. Phys. Invt. Record Hdr", ShowRequestForm: Boolean)

Parameters

Name Type Description
PstdPhysInvtRecordHdr Table Microsoft.Inventory.Counting.History."Pstd. Phys. Invt. Record Hdr"
ShowRequestForm Boolean

PrintInvtDocument

procedure PrintInvtDocument(var NewInvtDocHeader: Record "Invt. Document Header", ShowRequestPage: Boolean)

Parameters

Name Type Description
NewInvtDocHeader Table Microsoft.Inventory.Document."Invt. Document Header"
ShowRequestPage Boolean

PrintInvtReceipt

procedure PrintInvtReceipt(NewInvtReceiptHeader: Record "Invt. Receipt Header", ShowRequestPage: Boolean)

Parameters

Name Type Description
NewInvtReceiptHeader Table Microsoft.Inventory.History."Invt. Receipt Header"
ShowRequestPage Boolean

PrintInvtShipment

procedure PrintInvtShipment(NewInvtShipmentHeader: Record "Invt. Shipment Header", ShowRequestPage: Boolean)

Parameters

Name Type Description
NewInvtShipmentHeader Table Microsoft.Inventory.History."Invt. Shipment Header"
ShowRequestPage Boolean

PrintDirectTransfer

procedure PrintDirectTransfer(NewDirectTransHeader: Record "Direct Trans. Header", ShowRequestPage: Boolean)

Parameters

Name Type Description
NewDirectTransHeader Table Microsoft.Inventory.Transfer."Direct Trans. Header"
ShowRequestPage Boolean

GetSalesDocTypeUsage

procedure GetSalesDocTypeUsage(SalesHeader: Record "Sales Header"): Enum "Report Selection Usage"

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"

Returns

Type Description
Enum Microsoft.Foundation.Reporting."Report Selection Usage"

GetPurchDocTypeUsage

procedure GetPurchDocTypeUsage(PurchHeader: Record "Purchase Header"): Enum "Report Selection Usage"

Parameters

Name Type Description
PurchHeader Table Microsoft.Purchases.Document."Purchase Header"

Returns

Type Description
Enum Microsoft.Foundation.Reporting."Report Selection Usage"

GetServContractTypeUsage

Obsolete

This element will become obsolete from version 25.0. Replaced by same procedure in codeunit Serv. Report Management

[Obsolete(Replaced by same procedure in codeunit Serv. Report Management ,25.0)]
procedure GetServContractTypeUsage(ServiceContractHeader: Record "Service Contract Header"): Enum "Report Selection Usage"

Parameters

Name Type Description
ServiceContractHeader Table Microsoft.Service.Contract."Service Contract Header"

Returns

Type Description
Enum Microsoft.Foundation.Reporting."Report Selection Usage"

GetServHeaderDocTypeUsage

Obsolete

This element will become obsolete from version 25.0. Replaced by same procedure in codeunit Serv. Report Management

[Obsolete(Replaced by same procedure in codeunit Serv. Report Management ,25.0)]
procedure GetServHeaderDocTypeUsage(ServiceHeader: Record "Service Header"): Enum "Report Selection Usage"

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

Returns

Type Description
Enum Microsoft.Foundation.Reporting."Report Selection Usage"

GetAsmHeaderDocTypeUsage

procedure GetAsmHeaderDocTypeUsage(AsmHeader: Record "Assembly Header"): Enum "Report Selection Usage"

Parameters

Name Type Description
AsmHeader Table Microsoft.Assembly.Document."Assembly Header"

Returns

Type Description
Enum Microsoft.Foundation.Reporting."Report Selection Usage"

GetSalesOrderUsage

procedure GetSalesOrderUsage(Usage: Option): Enum "Report Selection Usage"

Parameters

Name Type Description
Usage Option

Returns

Type Description
Enum Microsoft.Foundation.Reporting."Report Selection Usage"

GetSalesArchDocTypeUsage

procedure GetSalesArchDocTypeUsage(SalesHeaderArchive: Record "Sales Header Archive"): Enum "Report Selection Usage"

Parameters

Name Type Description
SalesHeaderArchive Table Microsoft.Sales.Archive."Sales Header Archive"

Returns

Type Description
Enum Microsoft.Foundation.Reporting."Report Selection Usage"

GetPurchArchDocTypeUsage

procedure GetPurchArchDocTypeUsage(PurchHeaderArchive: Record "Purchase Header Archive"): Enum "Report Selection Usage"

Parameters

Name Type Description
PurchHeaderArchive Table Microsoft.Purchases.Archive."Purchase Header Archive"

Returns

Type Description
Enum Microsoft.Foundation.Reporting."Report Selection Usage"

CalcSalesDisc

procedure CalcSalesDisc(var SalesHeader: Record "Sales Header")

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"

CalcPurchDisc

procedure CalcPurchDisc(var PurchHeader: Record "Purchase Header")

Parameters

Name Type Description
PurchHeader Table Microsoft.Purchases.Document."Purchase Header"

CalcServDisc

Obsolete

This element will become obsolete from version 25.0. Replaced by same procedure in codeunit Serv. Report Management

[Obsolete(Replaced by same procedure in codeunit Serv. Report Management,25.0)]
procedure CalcServDisc(var ServHeader: Record "Service Header")

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"

OpenReportSelectionInventory

procedure OpenReportSelectionInventory(NoReportSelectionErrorInfo: ErrorInfo)

Parameters

Name Type Description
NoReportSelectionErrorInfo ErrorInfo

PrintServiceHeaderToDocumentAttachment

Obsolete

This element will become obsolete from version 25.0. Replaced by same procedure in codeunit Serv. Report Management

[Obsolete(Replaced by same procedure in codeunit Serv. Report Management ,25.0)]
procedure PrintServiceHeaderToDocumentAttachment(var ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

PrintServiceContractToDocumentAttachment

Obsolete

This element will become obsolete from version 25.0. Replaced by same procedure in codeunit Serv. Report Management

[Obsolete(Replaced by same procedure in codeunit Serv. Report Management ,25.0)]
procedure PrintServiceContractToDocumentAttachment(var ServiceContractHeader: Record "Service Contract Header")

Parameters

Name Type Description
ServiceContractHeader Table Microsoft.Service.Contract."Service Contract Header"

Events

OnAfterDoPrintSalesHeader

[IntegrationEvent(False,False)]
local procedure OnAfterDoPrintSalesHeader(var SalesHeader: Record "Sales Header", SendAsEmail: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SendAsEmail Boolean

OnAfterDoPrintPurchaseHeader

[IntegrationEvent(False,False)]
local procedure OnAfterDoPrintPurchaseHeader(var PurchHeader: Record "Purchase Header", SendAsEmail: Boolean)

Parameters

Name Type Description
PurchHeader Table Microsoft.Purchases.Document."Purchase Header"
SendAsEmail Boolean

OnAfterPrintSalesInvoiceToDocumentAttachment

[IntegrationEvent(False,False)]
local procedure OnAfterPrintSalesInvoiceToDocumentAttachment(var SalesHeader: Record "Sales Header", SalesInvoicePrintToAttachmentOption: Integer)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesInvoicePrintToAttachmentOption Integer

OnAfterPrintSalesOrderToDocumentAttachment

[IntegrationEvent(False,False)]
local procedure OnAfterPrintSalesOrderToDocumentAttachment(var SalesHeader: Record "Sales Header", SalesOrderPrintToAttachmentOption: Integer)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesOrderPrintToAttachmentOption Integer

OnBeforeCalcSalesDisc

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcSalesDisc(var SalesHeader: Record "Sales Header", var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
IsHandled Boolean

OnBeforeCalcServDisc

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit Serv. Report Management

[Obsolete(Replaced by same event in codeunit Serv. Report Management,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeCalcServDisc(var ServiceHeader: Record "Service Header", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
IsHandled Boolean

OnBeforeCalcPurchDisc

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcPurchDisc(var PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"
IsHandled Boolean

OnBeforeGetPurchDocTypeUsage

[IntegrationEvent(False,False)]
local procedure OnBeforeGetPurchDocTypeUsage(PurchaseHeader: Record "Purchase Header", var ReportSelectionUsage: Enum "Report Selection Usage", var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"
ReportSelectionUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
IsHandled Boolean

OnBeforeGetSalesDocTypeUsage

[IntegrationEvent(False,False)]
local procedure OnBeforeGetSalesDocTypeUsage(SalesHeader: Record "Sales Header", var ReportSelectionUsage: Enum "Report Selection Usage", var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
ReportSelectionUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
IsHandled Boolean

OnBeforeDoPrintSalesHeader

[IntegrationEvent(False,False)]
local procedure OnBeforeDoPrintSalesHeader(var SalesHeader: Record "Sales Header", ReportUsage: Integer, SendAsEmail: Boolean, var IsPrinted: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
ReportUsage Integer
SendAsEmail Boolean
IsPrinted Boolean

OnBeforeDoPrintPurchHeader

[IntegrationEvent(False,False)]
local procedure OnBeforeDoPrintPurchHeader(var PurchHeader: Record "Purchase Header", ReportUsage: Integer, SendAsEmail: Boolean, var IsPrinted: Boolean)

Parameters

Name Type Description
PurchHeader Table Microsoft.Purchases.Document."Purchase Header"
ReportUsage Integer
SendAsEmail Boolean
IsPrinted Boolean

OnBeforePrintBankAccStmt

[IntegrationEvent(False,False)]
local procedure OnBeforePrintBankAccStmt(var BankAccountStatement: Record "Bank Account Statement", var IsPrinted: Boolean)

Parameters

Name Type Description
BankAccountStatement Table Microsoft.Bank.Statement."Bank Account Statement"
IsPrinted Boolean

OnBeforePrintPostedPaymentReconciliation

[IntegrationEvent(False,False)]
local procedure OnBeforePrintPostedPaymentReconciliation(var PostedPaymentReconHdr: Record "Posted Payment Recon. Hdr", var IsPrinted: Boolean)

Parameters

Name Type Description
PostedPaymentReconHdr Table Microsoft.Bank.Reconciliation."Posted Payment Recon. Hdr"
IsPrinted Boolean

OnBeforePrintCheck

[IntegrationEvent(False,False)]
local procedure OnBeforePrintCheck(var GenJournalLine: Record "Gen. Journal Line", var IsPrinted: Boolean)

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
IsPrinted Boolean

OnBeforePrintCheckProcedure

[IntegrationEvent(False,False)]
local procedure OnBeforePrintCheckProcedure(var NewGenJnlLine: Record "Gen. Journal Line", var GenJournalLine: Record "Gen. Journal Line", var IsPrinted: Boolean)

Parameters

Name Type Description
NewGenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
IsPrinted Boolean

OnBeforePrintTransferHeader

[IntegrationEvent(False,False)]
local procedure OnBeforePrintTransferHeader(var TransferHeader: Record "Transfer Header", var IsPrinted: Boolean)

Parameters

Name Type Description
TransferHeader Table Microsoft.Inventory.Transfer."Transfer Header"
IsPrinted Boolean

OnBeforePrintServiceContract

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit Serv. Report Management

[Obsolete(Replaced by same event in codeunit Serv. Report Management,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforePrintServiceContract(var ServiceContractHeader: Record "Service Contract Header", ReportUsage: Integer, var IsPrinted: Boolean)

Parameters

Name Type Description
ServiceContractHeader Table Microsoft.Service.Contract."Service Contract Header"
ReportUsage Integer
IsPrinted Boolean

OnBeforePrintServiceHeader

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit Serv. Report Management

[Obsolete(Replaced by same event in codeunit Serv. Report Management,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforePrintServiceHeader(var ServiceHeader: Record "Service Header", ReportUsage: Integer, var IsPrinted: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ReportUsage Integer
IsPrinted Boolean

OnBeforePrintAsmHeader

[IntegrationEvent(False,False)]
local procedure OnBeforePrintAsmHeader(var AssemblyHeader: Record "Assembly Header", ReportUsage: Integer, var IsPrinted: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
ReportUsage Integer
IsPrinted Boolean

OnBeforePrintSalesOrder

[IntegrationEvent(False,False)]
local procedure OnBeforePrintSalesOrder(var SalesHeader: Record "Sales Header", ReportUsage: Integer, var IsPrinted: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
ReportUsage Integer
IsPrinted Boolean

OnBeforePrintSalesHeaderArch

[IntegrationEvent(False,False)]
local procedure OnBeforePrintSalesHeaderArch(var SalesHeaderArchive: Record "Sales Header Archive", ReportUsage: Integer, var IsPrinted: Boolean)

Parameters

Name Type Description
SalesHeaderArchive Table Microsoft.Sales.Archive."Sales Header Archive"
ReportUsage Integer
IsPrinted Boolean

OnBeforePrintPurchHeaderArch

[IntegrationEvent(False,False)]
local procedure OnBeforePrintPurchHeaderArch(var PurchaseHeaderArchive: Record "Purchase Header Archive", ReportUsage: Integer, var IsPrinted: Boolean)

Parameters

Name Type Description
PurchaseHeaderArchive Table Microsoft.Purchases.Archive."Purchase Header Archive"
ReportUsage Integer
IsPrinted Boolean

OnBeforePrintProformaSalesInvoice

[IntegrationEvent(False,False)]
local procedure OnBeforePrintProformaSalesInvoice(var SalesHeader: Record "Sales Header", ReportUsage: Integer, var IsPrinted: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
ReportUsage Integer
IsPrinted Boolean

OnBeforeRunSaveAsDocumentAttachment

[IntegrationEvent(False,False)]
local procedure OnBeforeRunSaveAsDocumentAttachment(ReportUsage: Integer, RecordVariant: Variant, ShowNotificationAction: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
ShowNotificationAction Boolean
IsHandled Boolean

OnGetAsmHeaderTypeUsageElseCase

[IntegrationEvent(False,False)]
local procedure OnGetAsmHeaderTypeUsageElseCase(AssemblyHeader: Record "Assembly Header", var TypeUsage: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
TypeUsage Integer
IsHandled Boolean

OnGetPurchDocTypeUsageElseCase

[IntegrationEvent(False,False)]
local procedure OnGetPurchDocTypeUsageElseCase(PurchaseHeader: Record "Purchase Header", var TypeUsage: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"
TypeUsage Integer
IsHandled Boolean

OnGetSalesDocTypeUsageElseCase

[IntegrationEvent(False,False)]
local procedure OnGetSalesDocTypeUsageElseCase(SalesHeader: Record "Sales Header", var TypeUsage: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
TypeUsage Integer
IsHandled Boolean

OnGetServHeaderDocTypeUsageElseCase

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit Serv. Report Management

[Obsolete(Replaced by same event in codeunit Serv. Report Management,25.0)]
[IntegrationEvent(False,False)]
local procedure OnGetServHeaderDocTypeUsageElseCase(ServiceHeader: Record "Service Header", var TypeUsage: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
TypeUsage Integer
IsHandled Boolean

OnGetServContractTypeUsageElseCase

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit Serv. Report Management

[Obsolete(Replaced by same event in codeunit Serv. Report Management,25.0)]
[IntegrationEvent(False,False)]
local procedure OnGetServContractTypeUsageElseCase(ServiceContractHeader: Record "Service Contract Header", var TypeUsage: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceContractHeader Table Microsoft.Service.Contract."Service Contract Header"
TypeUsage Integer
IsHandled Boolean

OnGetSalesArchDocTypeUsageElseCase

[IntegrationEvent(False,False)]
local procedure OnGetSalesArchDocTypeUsageElseCase(SalesHeaderArchive: Record "Sales Header Archive", var TypeUsage: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeaderArchive Table Microsoft.Sales.Archive."Sales Header Archive"
TypeUsage Integer
IsHandled Boolean

OnGetPurchArchDocTypeUsageElseCase

[IntegrationEvent(False,False)]
local procedure OnGetPurchArchDocTypeUsageElseCase(PurchaseHeaderArchive: Record "Purchase Header Archive", var TypeUsage: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseHeaderArchive Table Microsoft.Purchases.Archive."Purchase Header Archive"
TypeUsage Integer
IsHandled Boolean

OnGetSalesOrderUsageElseCase

[IntegrationEvent(False,False)]
local procedure OnGetSalesOrderUsageElseCase(Usage: Option, var Result: Enum "Report Selection Usage", var IsHandled: Boolean)

Parameters

Name Type Description
Usage Option
Result Enum Microsoft.Foundation.Reporting."Report Selection Usage"
IsHandled Boolean

OnDoPrintSalesHeaderToDocumentAttachmentOnBeforeRunSaveAsDocumentAttachment

[IntegrationEvent(False,False)]
local procedure OnDoPrintSalesHeaderToDocumentAttachmentOnBeforeRunSaveAsDocumentAttachment(var SalesHeader: Record "Sales Header", ReportUsage: Integer, ShowNotificationAction: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
ReportUsage Integer
ShowNotificationAction Boolean
IsHandled Boolean

OnDoPrintProformaSalesInvoiceToDocumentAttachmentOnBeforeRunSaveAsDocumentAttachment

[IntegrationEvent(False,False)]
local procedure OnDoPrintProformaSalesInvoiceToDocumentAttachmentOnBeforeRunSaveAsDocumentAttachment(var SalesHeader: Record "Sales Header", ReportUsage: Integer, ShowNotificationAction: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
ReportUsage Integer
ShowNotificationAction Boolean
IsHandled Boolean

OnDoPrintSalesOrderToAttachmentOnBeforeRunSaveAsDocumentAttachment

[IntegrationEvent(False,False)]
local procedure OnDoPrintSalesOrderToAttachmentOnBeforeRunSaveAsDocumentAttachment(var SalesHeader: Record "Sales Header", ReportUsage: Integer, ShowNotificationAction: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
ReportUsage Integer
ShowNotificationAction Boolean
IsHandled Boolean

OnDoPrintPurchaseHeaderToDocumentAttachmentOnBeforeRunSaveAsDocumentAttachment

[IntegrationEvent(False,False)]
local procedure OnDoPrintPurchaseHeaderToDocumentAttachmentOnBeforeRunSaveAsDocumentAttachment(var PurchaseHeader: Record "Purchase Header", ReportUsage: Integer, ShowNotificationAction: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"
ReportUsage Integer
ShowNotificationAction Boolean
IsHandled Boolean

OnBeforeProcessPrintSalesOrder

[IntegrationEvent(False,False)]
local procedure OnBeforeProcessPrintSalesOrder(var SalesHeader: Record "Sales Header", Usage: Option, var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
Usage Option
IsHandled Boolean

See also