Codeunit 8063 Sales Documents

Subscription Billing, Microsoft.SubscriptionBilling

src/Apps/W1/Subscription Billing/App/Billing/Codeunits/SalesDocuments.Codeunit.al44 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

DeleteAllTempSubscriptionItemSalesLines line 34, local

  1. 37writesTable 37 Sales Line DeleteAll

SalesHeaderOnBeforeDeleteEvent line 41, local

  1. 56callsGetAppliesToDocNo
  2. 63callsResetServiceCommitmentAndDeleteBillingLinesForCreditMemoSalesLine
  3. 66callsAutoResetServiceCommitmentAndDeleteBillingLinesForSalesDocument
  4. 71callsResetServiceCommitmentAndDeleteAllBillingLinesForDocument
  5. 76callsResetSalesDocumentFieldsForBillingLines

SalesLineOnAfterDeleteEvent line 81, local

  1. 105callsGetAppliesToDocNo
  2. 108callsResetServiceCommitmentAndDeleteBillingLinesForCreditMemoSalesLine
  3. 110callsAutoResetServiceCommitmentAndDeleteBillingLinesForSalesDocument
  4. 111callsResetServiceCommitmentAndDeleteAllBillingLinesForDocument
  5. 113callsFilterBillingLinePerSalesLine
  6. 114callsResetSalesDocumentFieldsForBillingLines

SetVATProductPostingGroupInContractRenewalLineOnAfterAssignFieldsForNo line 119, local

  1. 125callsTable 37 Sales Line IsLineWithServiceObject
  2. 137validatesTable 37 Sales Line VAT Prod. Posting Group
  3. 139validatesTable 37 Sales Line Tax Group Code
  4. 145validatesTable 37 Sales Line VAT Prod. Posting Group
  5. 147validatesTable 37 Sales Line Tax Group Code

ResetServiceCommitmentAndDeleteBillingLinesForCreditMemoSalesLine line 152, local

  1. 156callsFilterBillingLinePerSalesLine
  2. 158callsTable 8061 Billing Line FindFirstBillingLineForServiceCommitment
  3. 159callsTable 8061 Billing Line ResetServiceCommitmentNextBillingDate
  4. 160writesTable 8061 Billing Line DeleteAll

FilterBillingLinePerSalesLine line 164, local

  1. 166callsTable 8061 Billing Line FilterBillingLineOnDocumentLine
  2. 166callsTable 8061 Billing Line GetBillingDocumentTypeFromSalesDocumentType

ResetSalesDocumentFieldsForBillingLines line 169, local

  1. 172writesTable 8061 Billing Line ModifyAll
  2. 174writesTable 8061 Billing Line ModifyAll
  3. 175writesTable 8061 Billing Line ModifyAll

SalesPostOnBeforeSalesLineDeleteAll line 180, local

  1. 194callsFilterBillingLinePerSalesLine
  2. 195callsMoveBillingLineToBillingLineArchive
  3. 196writesTable 8061 Billing Line DeleteAll

MoveBillingLineToBillingLineArchive line 200, local

  1. 218writesTable 8064 Billing Line Archive Insert
  2. 220writesTable 8006 Usage Data Billing ModifyAll
  3. 221raisesOnAfterInsertBillingLineArchiveOnMoveBillingLineToBillingLineArchive

MoveBillingLineToBillingLineArchiveForPostingPreview line 225, internal

  1. 233raisesOnBeforeMoveBillingLineToBillingLineArchiveForPostingPreviewIsHandled
  2. 237callsSalesPostOnBeforeSalesLineDeleteAll

ValidateQuantityOnSalesLineOnBeforeInsertSalesOrderLine line 241, local

  1. 243callsCodeunit 8069 Sales Subscription Line Mgmt. IsSalesLineWithSalesServiceCommitmentsToShip
  2. 244validatesTable 37 Sales Line Quantity

BlanketSalesOrderToOrderValidateQuantityOnSalesLineOnBeforeInsertSalesOrderLine line 248, local

  1. 250callsCodeunit 8069 Sales Subscription Line Mgmt. IsSalesLineWithSalesServiceCommitmentsToShip
  2. 251validatesTable 37 Sales Line Quantity

ClearQtyToInvoiceForServiceCommitmentItemAfterValidateEventQtyToInvoice line 255, local

  1. 257callsClearQtyToInvoiceOnForServiceCommitmentItem

ClearQtyToInvoiceForServiceCommitmentItemAfterInitQtyToInvoice line 261, local

  1. 263callsClearQtyToInvoiceOnForServiceCommitmentItem

ClearQtyToInvoiceOnForServiceCommitmentItem line 266, local

  1. 270raisesOnBeforeClearQtyToInvoiceOnForSubscriptionItemIsHandled
  2. 274callsCodeunit 8069 Sales Subscription Line Mgmt. IsSalesLineWithServiceCommitmentItem

ResetValueForServiceCommitmentItemsBeforePosting line 282, local

  1. 286callsDeleteAllTempSubscriptionItemSalesLines
  2. 289callsCheckResetValueForServiceCommitmentItems
  3. 291writesTable 37 Sales Line Insert
  4. 297callsTable 37 Sales Line UpdateAmounts
  5. 298writesTable 37 Sales Line Modify

RestoreValueForServiceCommitmentItemsAfterPosting line 304, local

  1. 314callsTable 37 Sales Line UpdateAmounts
  2. 315writesTable 37 Sales Line Modify

SkipInitializingPostingNo line 319, local

  1. 323callsAllSalesLinesAreServiceCommitmentItems

SkipInsertingSalesInvoiceHeaderIfOnlyServiceCommitmentItemsExist line 328, local

  1. 332callsAllSalesLinesAreServiceCommitmentItems

SkipInsertingSalesInvoiceLineIfServiceCommitmentItemsExist line 337, local

  1. 344callsSalesLineShouldSkipInvoicing
  2. 347callsSalesLineShouldSkipInvoicing
  3. 348raisesOnAfterSkipInsertingSalesInvoiceLineIfServiceCommitmentItemsExistIsHandled

CreateSubscriptionHeaderFromItemJournalLine line 366, local

  1. 374callsCodeunit 8069 Sales Subscription Line Mgmt. IsSalesLineWithSalesServiceCommitments
  2. 377callsShowNegativeQuantityMessageIfNeeded
  3. 378callsResetGlobalVariables
  4. 383callsCreateServiceObjectFromSalesLine
  5. 387writesTable 8057 Subscription Header ModifyAll

CloseSalesOrderLineOnDropShipmentAssocOrderUpdate line 392, local

  1. 394callsSalesLineShouldSkipInvoicing
  2. 397callsSetSubscriptionItemLineAsInvoiced

CreateServiceObjectFromSales line 413

  1. 420callsCodeunit 8069 Sales Subscription Line Mgmt. IsSalesLineWithSalesServiceCommitmentsToShip
  2. 422callsShowNegativeQuantityMessageIfNeeded
  3. 423callsResetGlobalVariables
  4. 427callsCodeunit 6503 Item Tracking Doc. Management RetrieveDocumentItemTracking
  5. 431callsCreateServiceObjectFromSalesLine
  6. 436callsTable 27 Item HasSNSpecificItemTracking
  7. 437callsCreateServiceObjectFromSalesLine

UpdateQuantitiesOnPostUpdateOrderLineOnSetDefaultQtyBlank line 443, local

  1. 448callsSalesLineShouldSkipInvoicing
  2. 449raisesOnUpdateQuantitiesOnPostUpdateOrderLineOnSetDefaultQtyBlankOnAfterCalcShouldModifySalesLine
  3. 453callsSetSubscriptionItemLineAsInvoiced

UpdateInvoicedQtyOnShipmentLineOnBeforeModifySalesShptLine line 457, local

  1. 460callsSalesLineShouldSkipInvoicing

SetQtyToInvoiceToZeroOnBeforePostUpdateOrderLineModifyTempLine line 469, local

  1. 477callsSalesLineShouldSkipInvoicing
  2. 478raisesOnSetQtyToInvoiceToZeroOnBeforePostUpdateOrderLineModifyTempLineOnAfterCalcShouldModifySalesLine
  3. 487callsTable 37 Sales Line UpdateAmounts
  4. 490validatesTable 37 Sales Line Qty. to Invoice

CheckResetValueForServiceCommitmentItems line 528, local

  1. 534raisesOnCheckResetValueForSubscriptionItemsIsHandled
  2. 537callsCodeunit 8069 Sales Subscription Line Mgmt. IsSalesLineWithServiceCommitmentItem
  3. 537callsCodeunit 8003 Sub. Contract Renewal Mgt. IsContractRenewal

CreateServiceObjectFromSalesLine line 540, local

  1. 546raisesOnBeforeCreateSubscriptionHeaderFromSalesLineIsHandled
  2. 551callsCreateServiceObject
  3. 553callsCreateServiceObject
  4. 555callsCreateSubscriptionLineFromSalesLine
  5. 556raisesOnAfterCreateSubscriptionHeaderFromSalesLine

CreateServiceObject line 559, local

  1. 564callsTable 8057 Subscription Header SetHideValidationDialog
  2. 567validatesTable 8057 Subscription Header Description
  3. 568validatesTable 8057 Subscription Header Quantity
  4. 571validatesTable 8057 Subscription Header Unit of Measure
  5. 573validatesTable 8057 Subscription Header Provision Start Date
  6. 574validatesTable 8057 Subscription Header End-User Contact No.
  7. 575validatesTable 8057 Subscription Header End-User Customer No.
  8. 602callsTable 8057 Subscription Header UpdateVendorAndManufacturerFromItem
  9. 607raisesOnCreateSubscriptionHeaderFromSalesLineBeforeInsertSubscriptionHeader
  10. 608writesTable 8057 Subscription Header Insert(true)
  11. 609raisesOnCreateSubscriptionHeaderFromSalesLineAfterInsertSubscriptionHeader

CreateSubscriptionLineFromSalesLine line 612

  1. 617callsTable 8068 Sales Subscription Line FilterOnSalesLine
  2. 626validatesTable 8059 Subscription Line Subscription Line Start Date
  3. 629validatesTable 8059 Subscription Line Subscription Line Start Date
  4. 631validatesTable 8059 Subscription Line Subscription Line Start Date
  5. 632callsTable 8059 Subscription Line CopyFromSalesServiceCommitment
  6. 633callsTable 8059 Subscription Line EnsureCalculationBaseAmountExcludesVAT
  7. 635validatesTable 8059 Subscription Line Calculation Base Amount
  8. 637callsTable 8059 Subscription Line UpdateNextPriceUpdate
  9. 638callsTable 8059 Subscription Line CalculateSubscriptionDates
  10. 639callsTable 8059 Subscription Line SetCurrencyData
  11. 640callsTable 8059 Subscription Line SetLCYFields
  12. 646callsTable 8059 Subscription Line SetDefaultDimensions
  13. 647callsTable 8059 Subscription Line GetCombinedDimensionSetID
  14. 650raisesOnCreateSubscriptionHeaderFromSalesLineBeforeInsertSubscriptionLine
  15. 651callsTable 8059 Subscription Line CalculateServiceAmount
  16. 652writesTable 8059 Subscription Line Insert
  17. 653raisesOnCreateSubscriptionHeaderFromSalesLineAfterInsertSubscriptionLine

AllSalesLinesAreServiceCommitmentItems line 657

  1. 667callsCodeunit 8069 Sales Subscription Line Mgmt. IsSalesLineWithServiceCommitmentItem

ResetServiceCommitmentAndDeleteAllBillingLinesForDocument line 687, local

  1. 691callsFilterBillingLinePerSalesLine
  2. 693callsTable 8061 Billing Line ResetServiceCommitmentNextBillingDate
  3. 694writesTable 8061 Billing Line DeleteAll

ModifyShipmentDateFromInventoryPickPostingDate line 699, local

  1. 709callsCodeunit 8069 Sales Subscription Line Mgmt. IsSalesLineWithSalesServiceCommitmentsToShip
  2. 713writesTable 37 Sales Line Modify

TransferRecurringBillingMark line 718, local

  1. 724callsGetRecurringBillingField

SalesInvLineCopyContractNoOnAfterInitFromSalesLine line 763, local

  1. 767callsTable 8061 Billing Line FilterBillingLineOnDocumentLine
  2. 767callsTable 8061 Billing Line GetBillingDocumentTypeFromSalesDocumentType

SalesCrMemoLineCopyContractNoOnAfterInitFromSalesLine line 775, local

  1. 779callsTable 8061 Billing Line FilterBillingLineOnDocumentLine
  2. 779callsTable 8061 Billing Line GetBillingDocumentTypeFromSalesDocumentType

IsInvoiceCredited line 791, internal

  1. 797callsTable 8064 Billing Line Archive IsInvoiceCredited

GetAppliesToDocNo line 800, internal

  1. 806callsTable 8061 Billing Line GetCorrectionDocumentNo

RevertInvoicedQuantityOnUpdateSalesLineOnBeforeSalesLineModify line 810, local

  1. 814callsCodeunit 8069 Sales Subscription Line Mgmt. IsSalesLineWithServiceCommitmentItemToShip
  2. 815raisesOnRevertInvoicedQuantityOnUpdateSalesLineOnBeforeSalesLineModifyOnAfterCalcShouldModifySalesLine

ClearQtyToInvoiceInSalesLineForServiceCommitmentItem line 824, local

  1. 830callsTable 37 Sales Line IsSalesDocumentTypeWithServiceCommitments
  2. 835callsTable 27 Item IsServiceCommitmentItem

UpdateInvoicedQtyOnSalesLineAfterUndoShipment line 843, local

  1. 845callsCodeunit 8069 Sales Subscription Line Mgmt. IsSalesLineWithServiceCommitmentItem

SalesLineShouldSkipInvoicing line 857

  1. 859callsCodeunit 8069 Sales Subscription Line Mgmt. IsSalesLineWithServiceCommitmentItem
  2. 861raisesOnAfterSalesLineShouldSkipInvoicing

ResetVariablesOnBeforePostSalesDoc line 895, local

  1. 897callsResetGlobalVariables

ResetVariablesOnAfterPostSalesDoc line 901, local

  1. 903callsResetGlobalVariables