ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[External Request] - codeunit Swiss QR-Bill Decode - Procedure DecodeQRCodeText #22953

Open kguldbaek opened this issue 3 years ago • 1 comments

Would it be possible to change the visibility of the function DecodeQRCodeText in Codeunit 11512 to external?

    internal procedure DecodeQRCodeText(var SwissQRBillBuffer: Record "Swiss QR-Bill Buffer"; QRCodeText: Text): Boolean
    begin
        Clear(SwissQRBillBuffer);

        if not InitializeLineBuffer(QRCodeText) then
            exit(false);

        if not ReadHeader() then
            exit(false);
        if not ReadIBAN(SwissQRBillBuffer) then
            exit(false);
        if not ReadCreditorPartyInfo(SwissQRBillBuffer) then
            exit(false);
        if not ReadUltimateCreditorPartyInfo(SwissQRBillBuffer) then
            exit(false);
        if not ReadPaymentInfo(SwissQRBillBuffer) then
            exit(false);
        if not ReadUltimateDebitorPartyInfo(SwissQRBillBuffer) then
            exit(false);
        if not ReadPaymentReferenceInfo(SwissQRBillBuffer) then
            exit(false);
        if not ReadNextLineIntoFieldNo(SwissQRBillBuffer, SwissQRBillBuffer.FieldNo("Unstructured Message"), UnstrMsgNotFoundLbl) then
            exit(false);
        if not ReadNextLineAndAssertValue('EPD', TrailerEPDNotFoundLbl) then
            exit(false);
        // Optional
        if not ReadNextLineIntoFieldNo(SwissQRBillBuffer, SwissQRBillBuffer.FieldNo("Billing Information"), '') then
            exit(not AnyErrorLogged());
        if not ReadNextLineIntoFieldNo(SwissQRBillBuffer, SwissQRBillBuffer.FieldNo("Alt. Procedure Value 1"), '') then
            exit(not AnyErrorLogged());
        ReadNextLineIntoFieldNo(SwissQRBillBuffer, SwissQRBillBuffer.FieldNo("Alt. Procedure Value 2"), '');
        ParseAltProcedures(SwissQRBillBuffer);
        exit(not AnyErrorLogged());
    end;

kguldbaek avatar Apr 17 '23 19:04 kguldbaek

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

Build ID: 10652.

JesperSchulz avatar Apr 30 '23 07:04 JesperSchulz