Codeunit 8002 Create Sub. Contract Renewal

Subscription Billing, Microsoft.SubscriptionBilling

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

OnRun line 13, trigger

  1. 16callsCreateSingleContractRenewal

RunCheck line 19, local

  1. 27callsCheckContractRenewalLine
  2. 30raisesOnAfterRunCheck

CheckContractRenewalLine line 33, local

  1. 56callsCodeunit 8003 Sub. Contract Renewal Mgt. ExistsInSalesOrderOrSalesQuote
  2. 63raisesOnAfterCheckSubContractRenewalLine

BatchCreateContractRenewal line 66, internal

  1. 90callsCallCreateSingleContractRenewalFromBatch
  2. 92writesTable 8001 Sub. Contract Renewal Line DeleteAll
  3. 96writesTable 8001 Sub. Contract Renewal Line Insert
  4. 102writesTable 8001 Sub. Contract Renewal Line Insert
  5. 105callsCallCreateSingleContractRenewalFromBatch
  6. 107writesTable 8001 Sub. Contract Renewal Line DeleteAll
  7. 111callsOpenSalesQuotes

OpenSalesQuotes line 114, internal

  1. 129callsCodeunit 27 Confirm Management GetResponse
  2. 131runsPage 41 Sales Quote
  3. 136callsCodeunit 27 Confirm Management GetResponse
  4. 138runsPage 9300 Sales Quotes

CallCreateSingleContractRenewalFromBatch line 143, local

  1. 157runsCodeunit 8002 Create Sub. Contract Renewal
  2. 163writesTable 8001 Sub. Contract Renewal Line Modify
  3. 166callsCodeunit 8002 Create Sub. Contract Renewal GetSalesQuoteNo

CreateSingleContractRenewal line 170, local

  1. 174callsRunCheck
  2. 180callsCreateSalesQuoteHeaderFromCustomerContract
  3. 188callsCreateSalesQuoteLineFromContractRenewalLine
  4. 190raisesOnAfterCreateSingleContractRenewal

CreateSalesQuoteHeaderFromCustomerContract line 193, local

  1. 198callsCodeunit 8063 Sales Documents SetCalledFromContractRenewal
  2. 203writesTable 36 Sales Header Insert(true)
  3. 204callsTable 36 Sales Header SetHideValidationDialog
  4. 205validatesTable 36 Sales Header Sell-to Customer No.
  5. 207validatesTable 36 Sales Header Bill-to Customer No.
  6. 217validatesTable 36 Sales Header Document Date
  7. 218validatesTable 36 Sales Header Currency Code
  8. 220callsTable 36 Sales Header SetHideValidationDialog
  9. 221writesTable 36 Sales Header Modify
  10. 224raisesOnAfterCreateSalesHeaderFromSubscriptionContract
  11. 226callsCreateDescriptionLines
  12. 227callsCodeunit 8063 Sales Documents SetCalledFromContractRenewal

CreateSalesQuoteLineFromContractRenewalLine line 230, local

  1. 240raisesOnBeforeCreateSalesQuoteLineFromSubContractRenewalLine
  2. 246callsInsertTermInfoLine
  3. 248callsTable 37 Sales Line InitFromSalesHeader
  4. 250validatesTable 37 Sales Line No.
  5. 251validatesTable 37 Sales Line Unit of Measure Code
  6. 253validatesTable 37 Sales Line Quantity
  7. 255validatesTable 37 Sales Line Unit Price
  8. 258validatesTable 37 Sales Line Unit Price
  9. 259callsTable 330 Currency Exchange Rate ExchangeAmtFCYToFCY
  10. 260callsTable 36 Sales Header GetUseDate
  11. 266validatesTable 37 Sales Line Line Discount %
  12. 267validatesTable 37 Sales Line Unit Cost (LCY)
  13. 268callsTable 37 Sales Line GetCombinedDimensionSetID
  14. 270writesTable 37 Sales Line Insert
  15. 272callsTable 37 Sales Line DeleteSalesServiceCommitment
  16. 274callsCodeunit 53 Translation Helper SetGlobalLanguageByCode
  17. 275callsTable 37 Sales Line InsertDescriptionSalesLine
  18. 275callsTable 8057 Subscription Header GetSerialNoDescription
  19. 276callsCodeunit 53 Translation Helper RestoreGlobalLanguage
  20. 278raisesOnAfterInsertSalesQuoteLineFromSubContractRenewalLine
  21. 280callsAddServiceCommitment
  22. 281callsAddLinkedServiceCommitment
  23. 282raisesOnAfterAddSubscriptionLinesToSalesLine
  24. 285writesTable 8001 Sub. Contract Renewal Line Delete

AddLinkedServiceCommitment line 288, local

  1. 298callsAddServiceCommitment
  2. 300writesTable 8001 Sub. Contract Renewal Line Delete

AddServiceCommitment line 304, local

  1. 312raisesOnBeforeInsertSubscriptionLineIsHandled
  2. 320callsTable 8068 Sales Subscription Line InitRecord
  3. 321writesTable 8068 Sales Subscription Line Insert
  4. 323validatesTable 8068 Sales Subscription Line Item No.
  5. 325validatesTable 8068 Sales Subscription Line Subscription Package Code
  6. 328validatesTable 8068 Sales Subscription Line Extension Term
  7. 329validatesTable 8068 Sales Subscription Line Notice Period
  8. 330validatesTable 8068 Sales Subscription Line Initial Term
  9. 333validatesTable 8068 Sales Subscription Line Billing Base Period
  10. 335validatesTable 8068 Sales Subscription Line Billing Rhythm
  11. 336validatesTable 8068 Sales Subscription Line Agreed Sub. Line Start Date
  12. 338validatesTable 8068 Sales Subscription Line Calculation Base Amount
  13. 340validatesTable 8068 Sales Subscription Line Price
  14. 341validatesTable 8068 Sales Subscription Line Discount %
  15. 349writesTable 8068 Sales Subscription Line Modify
  16. 351raisesOnAfterInsertSubscriptionLine

InsertTermInfoLine line 354, local

  1. 374callsCodeunit 53 Translation Helper SetGlobalLanguageByCode
  2. 376callsTable 37 Sales Line InsertDescriptionSalesLine
  3. 377callsCodeunit 53 Translation Helper RestoreGlobalLanguage
  4. 381raisesOnAfterInsertTermInfoLine

CreateDescriptionLines line 384, local

  1. 398raisesOnBeforeInsertSubscriptionContractDescriptionSalesLinesIsHandled
  2. 400callsCodeunit 53 Translation Helper SetGlobalLanguageByCode
  3. 401callsCodeunit 8060 Create Billing Documents GetContractTypeDescription
  4. 405callsTable 37 Sales Line InsertDescriptionSalesLine
  5. 407callsTable 37 Sales Line InsertDescriptionSalesLine
  6. 408callsCodeunit 53 Translation Helper RestoreGlobalLanguage
  7. 410raisesOnAfterInsertSubscriptionContractDescriptionSalesLines