Skip to content

[Bug]: Subscription & Recurring Billing - Validation Problem #27941

Open
@PeterKevesRevol

Description

Describe the issue

When you want to start the "Create Documents" function from the "Recurring billing" extension, we get an error: "You cannot make this change because the document is linked to a contract" if Hungarian localisation was installed.

Expected behavior

Shouldn't be any error.

Steps to reproduce

  • Install Hungarian localization
  • Create Documents

Additional context

The problem is:
codeunit 8060 "Create Billing Documents"
...
local procedure CreatePurchaseHeaderFromContract(VendorContract: Record "Vendor Contract")
...
PurchaseHeader.SetHideValidationDialog(true);
PurchaseHeader."Recurring Billing" := true; //This line is missing!!! This is why the next "Pay-to Vendor No." validate can NOT handle, that this is"Recurring Billing"
PurchaseHeader.Validate("Pay-to Vendor No.", VendorContract."Pay-to Vendor No.");
...

If you check the similar code for the sales side, the logic is the same, and there is this line:
local procedure CreateSalesHeaderFromContract(CustomerContract: Record "Customer Contract")

I will provide a fix for a bug

  • I will provide a fix for a bug

Metadata

Assignees

No one assigned

    Labels

    FinanceGitHub request for Finance areaapprovedThe issue is approved

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions