Skip to main content

Notifications

Business Central forum
Answered

Work Descriptions in posted sales Invoice header

Posted on by 138
Hi Guys,
 
i need to be able to edit the work descriptions on the posted sales invoice header.
i have tried giving the page permission rmid but still no luck.
 
can anyone surgest a way to do this?
 
Thanks
M
Categories:
  • Netjacker2097 Profile Picture
    Netjacker2097 138 on at
    Work Descriptions in posted sales Invoice header
    @YUN ZHU,
     
    from your sample, i have now done what is needed, this is just the frist sample i did to get the blob text. will buid the OutSTream later. But thanks for your guidance :)
        local procedure ReadDescBLOB(): Text
        var
            TypeHelper: Codeunit "Type Helper";
            InStream: InStream;
        begin
            Rec.CalcFields("Work Description");
            Rec."Work Description".CreateInStream(InStream, TEXTENCODING::UTF8);
            exit(TypeHelper.ReadAsTextWithSeparator(InStream, TypeHelper.LFSeparator));
        end;
  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 60,859 Super User on at
    Work Descriptions in posted sales Invoice header
    Hi, just adding some key points, hope it helps you too.
     
    Thanks.
    ZHU
  • Netjacker2097 Profile Picture
    Netjacker2097 138 on at
    Work Descriptions in posted sales Invoice header
    Thanks Guys, apriciate it. i will create a Codeunit to handle it.
    Will post later on what is built for code unit.
     
    Thanks Again.
    Michael.
  • Suggested answer
    Valentin Castravet Profile Picture
    Valentin Castravet 4,486 Super User on at
    Work Descriptions in posted sales Invoice header
    Its not possible out of the box. Posted documents/entries are not allowed to be modified in Business Central. This is true system wide except for certain exceptions (several fields). This is done to maintain data integrity and have an audit trail. 
     
    In a posted sales invoice there is an Update Document button that does allow modifying several fields (the exceptions mentioned above) in the posted document. If you want to modify the work description a developer would have to customize the system to add the work description as one of the fields that can be modified when using this Update Document button. 
     
     
  • Suggested answer
    gdrenteria Profile Picture
    gdrenteria 3,114 Super User on at
    Work Descriptions in posted sales Invoice header
    Hi
    You would have to make an adaptation to the standard functionality of editing registered documents.
    https://learn.microsoft.com/en-us/dynamics365/business-central/across-edit-posted-document?wt.mc_id=MVP_354389 
    You could rely on this:
    https://yzhums.com/24923/ 
    Pay attention that this field is a blob field.
    BR
    GR

Helpful resources

Quick Links

Take the Community feedback survey!

Answer this brief 15-question survey about your Community experience…

Demystifying Copilot: Service Edition with Sundar Raghavan

Sundar answers more questions about Copilot for Service...

Dynamics 365 Business Central vs Finance and SCM

Take a look at the key differences between Business Central and…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,377 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 223,308 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,140

Featured topics

Product updates

Dynamics 365 release plans