Codeunit "Create Billing Documents"
ID 8060
Namespace: Microsoft.SubscriptionBilling
Properties
Methods
SetSkipRequestPageSelection
procedure SetSkipRequestPageSelection(NewSkipRequestPageSelection: Boolean)
Parameters
| Name |
Type |
Description |
|
NewSkipRequestPageSelection
|
Boolean |
|
SetDocumentDataFromRequestPage
procedure SetDocumentDataFromRequestPage(DocumentDateValue: Date; PostingDateValue: Date; PostDocumentValue: Boolean; CreateContractInvoiceValue: Boolean)
Parameters
| Name |
Type |
Description |
|
DocumentDateValue
|
Date |
|
|
PostingDateValue
|
Date |
|
|
PostDocumentValue
|
Boolean |
|
|
CreateContractInvoiceValue
|
Boolean |
|
SetBillingGroupingPerContract
procedure SetBillingGroupingPerContract(ServicePartner: Enum "Service Partner")
Parameters
SetCustomerRecurringBillingGrouping
procedure SetCustomerRecurringBillingGrouping(NewCustomerRecurringBillingGrouping: Enum "Customer Rec. Billing Grouping")
Parameters
GetBillingPeriodDescriptionTxt
procedure GetBillingPeriodDescriptionTxt(): Text
Returns
GetBillingPeriodDescriptionTxt
procedure GetBillingPeriodDescriptionTxt(LanguageCode: Code[10]): Text
Parameters
| Name |
Type |
Description |
|
LanguageCode
|
Code[10] |
|
Returns
Events
OnAfterCreateSalesHeaderFromContract
[IntegrationEvent(False,False)]
local procedure OnAfterCreateSalesHeaderFromContract(CustomerSubscriptionContract: Record "Customer Subscription Contract"; SalesHeader: __MissingTypeSymbol__)
Parameters
OnAfterCreateSalesHeaderForCustomerNo
[IntegrationEvent(False,False)]
local procedure OnAfterCreateSalesHeaderForCustomerNo(SalesHeader: __MissingTypeSymbol__; ContractNo: Code[20])
Parameters
| Name |
Type |
Description |
|
SalesHeader
|
__MissingTypeSymbol__ |
|
|
ContractNo
|
Code[20] |
|
OnBeforeInsertSalesLineFromContractLine
[IntegrationEvent(False,False)]
local procedure OnBeforeInsertSalesLineFromContractLine(SalesLine: __MissingTypeSymbol__; var TempBillingLine: Record "Billing Line" temporary)
Parameters
OnBeforeInsertContractDescriptionSalesLines
[IntegrationEvent(False,False)]
local procedure OnBeforeInsertContractDescriptionSalesLines(SalesHeader: __MissingTypeSymbol__; BillingLine: Record "Billing Line"; var FirstContractDescriptionLineInserted: Boolean; CustomerRecurringBillingGrouping: Enum "Customer Rec. Billing Grouping"; var IsHandled: Boolean)
Parameters
OnAfterInsertContractDescriptionSalesLines
[IntegrationEvent(False,False)]
local procedure OnAfterInsertContractDescriptionSalesLines(SalesHeader: __MissingTypeSymbol__; BillingLine: Record "Billing Line"; var FirstContractDescriptionLineInserted: Boolean; CustomerRecurringBillingGrouping: Enum "Customer Rec. Billing Grouping")
Parameters
OnAfterInsertSalesLineFromBillingLine
[IntegrationEvent(False,False)]
local procedure OnAfterInsertSalesLineFromBillingLine(CustomerContractLine: Record "Cust. Sub. Contract Line"; SalesLine: __MissingTypeSymbol__)
Parameters
OnAfterInsertPurchaseLineFromBillingLine
[IntegrationEvent(False,False)]
local procedure OnAfterInsertPurchaseLineFromBillingLine(SubscriptionLine: Record "Subscription Line"; PurchaseLine: __MissingTypeSymbol__)
Parameters
OnBeforeInsertPurchaseLineFromContractLine
[IntegrationEvent(False,False)]
local procedure OnBeforeInsertPurchaseLineFromContractLine(PurchLine: __MissingTypeSymbol__; var TempBillingLine: Record "Billing Line" temporary)
Parameters
OnAfterCreateAdditionalInvoiceLines
[IntegrationEvent(False,False)]
local procedure OnAfterCreateAdditionalInvoiceLines(SalesHeader: __MissingTypeSymbol__; ParentSalesLine: __MissingTypeSymbol__; ServiceObject: Record "Subscription Header"; SubscriptionLine: Record "Subscription Line")
Parameters
OnGetAdditionalLineTextElseCase
[IntegrationEvent(False,False)]
local procedure OnGetAdditionalLineTextElseCase(ContractInvoiceTextType: Enum "Contract Invoice Text Type"; SubscriptionHeader: Record "Subscription Header"; SubscriptionLine: Record "Subscription Line"; var DescriptionText: Text; var IsHandled: Boolean)
Parameters
OnBeforeInsertAddressInfoForCollectiveInvoice
[IntegrationEvent(False,False)]
local procedure OnBeforeInsertAddressInfoForCollectiveInvoice(BillingLine: Record "Billing Line"; CustomerRecurringBillingGrouping: Enum "Customer Rec. Billing Grouping"; SalesHeader: __MissingTypeSymbol__; var IsHandled: Boolean)
Parameters
OnAfterInsertAddressInfoForCollectiveInvoice
[IntegrationEvent(False,False)]
local procedure OnAfterInsertAddressInfoForCollectiveInvoice(BillingLine: Record "Billing Line"; CustomerRecurringBillingGrouping: Enum "Customer Rec. Billing Grouping"; SalesHeader: __MissingTypeSymbol__)
Parameters
OnCreateTempBillingLinesBeforeSaveTempBillingLine
[IntegrationEvent(False,False)]
local procedure OnCreateTempBillingLinesBeforeSaveTempBillingLine(var TempBillingLine: Record "Billing Line" temporary; var BillingLine: Record "Billing Line")
Parameters
OnBeforeInsertTempBillingLine
[IntegrationEvent(False,False)]
local procedure OnBeforeInsertTempBillingLine(var TempBillingLine: Record "Billing Line" temporary; var BillingLine: Record "Billing Line")
Parameters
OnBeforeProcessBillingLines
[IntegrationEvent(False,False)]
local procedure OnBeforeProcessBillingLines(var BillingLine: Record "Billing Line"; var DocumentDate: Date; var PostingDate: Date; var CustomerRecBillingGrouping: Enum "Customer Rec. Billing Grouping"; var VendorRecBillingGrouping: Enum "Vendor Rec. Billing Grouping"; var PostDocuments: Boolean)
Parameters
OnAfterProcessBillingLines
[IntegrationEvent(False,False)]
local procedure OnAfterProcessBillingLines(var BillingLine: Record "Billing Line")
Parameters
OnBeforeCreateBillingDocuments
[IntegrationEvent(False,False)]
local procedure OnBeforeCreateBillingDocuments(var BillingLine: Record "Billing Line")
Parameters
OnAfterIsNewSalesHeaderNeeded
[IntegrationEvent(False,False)]
local procedure OnAfterIsNewSalesHeaderNeeded(var CreateNewSalesHeader: Boolean; TempBillingLine: Record "Billing Line" temporary; PreviousCustomerNo: Code[20]; LastDetailOverview: Enum "Contract Detail Overview"; PreviousCurrencyCode: Code[20]; PreviousContractNo: Code[20])
Parameters
OnAfterIsNewHeaderNeededPerContract
[IntegrationEvent(False,False)]
local procedure OnAfterIsNewHeaderNeededPerContract(var CreateNewSalesHeader: Boolean; TempBillingLine: Record "Billing Line" temporary; PreviousSubContractNo: Code[20])
Parameters
OnBeforeTestPreviousDocumentTotalInvoiceAmount
[IntegrationEvent(False,False)]
local procedure OnBeforeTestPreviousDocumentTotalInvoiceAmount(Sales: Boolean; DiscountLineExists: Boolean; PreviousContractNo: Code[20]; SalesHeader: __MissingTypeSymbol__; PurchaseHeader: __MissingTypeSymbol__)
Parameters
| Name |
Type |
Description |
|
Sales
|
Boolean |
|
|
DiscountLineExists
|
Boolean |
|
|
PreviousContractNo
|
Code[20] |
|
|
SalesHeader
|
__MissingTypeSymbol__ |
|
|
PurchaseHeader
|
__MissingTypeSymbol__ |
|
OnAfterCustomerContractLineGetInInsertSalesLineFromTempBillingLine
[IntegrationEvent(False,False)]
local procedure OnAfterCustomerContractLineGetInInsertSalesLineFromTempBillingLine(CustomerContractLine: Record "Cust. Sub. Contract Line"; SalesHeader: __MissingTypeSymbol__; var TempBillingLine: Record "Billing Line" temporary)
Parameters
OnCreateSalesDocumentsPerContractBeforeTempBillingLineFindSet
[IntegrationEvent(False,False)]
local procedure OnCreateSalesDocumentsPerContractBeforeTempBillingLineFindSet(var TempBillingLine: Record "Billing Line" temporary)
Parameters
OnCreatePurchaseDocumentsPerContractBeforeTempBillingLineFindSet
[IntegrationEvent(False,False)]
local procedure OnCreatePurchaseDocumentsPerContractBeforeTempBillingLineFindSet(var TempBillingLine: Record "Billing Line" temporary)
Parameters
OnCreateSalesDocumentsPerCustomerBeforeTempBillingLineFindSet
[IntegrationEvent(False,False)]
local procedure OnCreateSalesDocumentsPerCustomerBeforeTempBillingLineFindSet(var TempBillingLine: Record "Billing Line" temporary)
Parameters
OnCreatePurchaseDocumentsPerVendorBeforeTempBillingLineFindSet
[IntegrationEvent(False,False)]
local procedure OnCreatePurchaseDocumentsPerVendorBeforeTempBillingLineFindSet(var TempBillingLine: Record "Billing Line" temporary)
Parameters
OnAfterCreateAdditionalInvoiceLine
[IntegrationEvent(False,False)]
local procedure OnAfterCreateAdditionalInvoiceLine(SalesLine: __MissingTypeSymbol__; ParentSalesLine: __MissingTypeSymbol__)
Parameters
| Name |
Type |
Description |
|
SalesLine
|
__MissingTypeSymbol__ |
|
|
ParentSalesLine
|
__MissingTypeSymbol__ |
|
OnAfterGetAdditionalLineText
[IntegrationEvent(False,False)]
local procedure OnAfterGetAdditionalLineText(SubscriptionContractSetupFieldNo: Integer; ParentSalesLine: __MissingTypeSymbol__; SubscriptionHeader: Record "Subscription Header"; ServiceCommitment: Record "Subscription Line"; var DescriptionText: Text)
Parameters
See also