From 96995bec10607edf0bf7656fd8be414fc1b5f75f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miljan=20Milosavljevi=C4=87?= Date: Mon, 17 Nov 2025 15:48:32 +0100 Subject: [PATCH] Use "Billing Period" instead of "Subscription Period" in Invoice --- .../App/Billing/Codeunits/CreateBillingDocuments.Codeunit.al | 4 ++-- .../Test/Billing/RecurringBillingDocsTest.Codeunit.al | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Apps/W1/Subscription Billing/App/Billing/Codeunits/CreateBillingDocuments.Codeunit.al b/src/Apps/W1/Subscription Billing/App/Billing/Codeunits/CreateBillingDocuments.Codeunit.al index 3c3718207b..cfd345d30a 100644 --- a/src/Apps/W1/Subscription Billing/App/Billing/Codeunits/CreateBillingDocuments.Codeunit.al +++ b/src/Apps/W1/Subscription Billing/App/Billing/Codeunits/CreateBillingDocuments.Codeunit.al @@ -930,7 +930,7 @@ codeunit 8060 "Create Billing Documents" procedure GetBillingPeriodDescriptionTxt() DescriptionText: Text begin - DescriptionText := ServicePeriodDescriptionTxt; + DescriptionText := BillingPeriodDescriptionTxt; end; procedure GetBillingPeriodDescriptionTxt(LanguageCode: Code[10]) DescriptionText: Text @@ -1220,7 +1220,7 @@ codeunit 8060 "Create Billing Documents" ProgressTxt: Label 'Creating documents...\Partner No. #1#################################\Contract No. #2#################################', Comment = '%1=Partner No., %2=Contract No.'; OnlyOneServicePartnerErr: Label 'You can create documents only for one type of partner at a time (Customer or Vendor). Please check your filters.'; UpdateRequiredErr: Label 'At least one Subscription Line was changed after billing proposal was created. Please check the lines marked with "Update Required" field and update the billing proposal before the billing documents can be created.'; - ServicePeriodDescriptionTxt: Label 'Subscription period: %1 to %2', Comment = '%1=Recurring Billing from, %2=Recurring Billing to'; + BillingPeriodDescriptionTxt: Label 'Billing period: %1 to %2', Comment = '%1=Recurring Billing from, %2=Recurring Billing to'; NoDocumentsCreatedMsg: Label 'No documents have been created.'; DocumentsCreatedMsg: Label 'Creation of documents completed.\\%1 document(s) for %2 contract(s) were created.', Comment = '%1=Number of documents, %2=Number of contracts'; DocumentsCreatedAndPostedMsg: Label 'Creation of documents completed.\\%1 document(s) for %2 contract(s) were created and posted.', Comment = '%1=Number of documents, %2=Number of contracts'; diff --git a/src/Apps/W1/Subscription Billing/Test/Billing/RecurringBillingDocsTest.Codeunit.al b/src/Apps/W1/Subscription Billing/Test/Billing/RecurringBillingDocsTest.Codeunit.al index 63c6ec464b..91f2b3dd20 100644 --- a/src/Apps/W1/Subscription Billing/Test/Billing/RecurringBillingDocsTest.Codeunit.al +++ b/src/Apps/W1/Subscription Billing/Test/Billing/RecurringBillingDocsTest.Codeunit.al @@ -236,8 +236,8 @@ codeunit 139687 "Recurring Billing Docs Test" SalesLine2.SetRange("Attached to Line No.", SalesLine."Line No."); Assert.AreEqual(5, SalesLine2.Count, 'Setup-failure: expected five attached Lines.'); SalesLine2.FindSet(); - // 1st line: Service Period - Assert.IsSubstring(SalesLine2.Description, 'Subscription period'); + // 1st line: Billing Period + Assert.IsSubstring(SalesLine2.Description, 'Billing period'); ParentSalesLine.Get(SalesLine2."Document Type", SalesLine2."Document No.", SalesLine2."Attached to Line No."); SalesLine2.Next(); // 2nd line: Subscription Description