Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Job Number on Posted Sales Invoice

(0) ShareShare
ReportReport
Posted on by 190

Hello All,

am trying to bring Job Number Field in Posted Sales Invoice Print out. But values is not coming over the print out.

pls let me know what is the issue

posted-job.jpg

reportextension 60003 PostedSalesInvoiceExt extends "Sales - Invoice EMP"
{

    RDLCLayout = './ReportLayouts/PostedSalesInvoice.rdl';
    dataset
    {
        add("Sales Invoice Line")
        {
            column(JobNo_SalesInvoiceLine; "Job No.")
            {
            }

        }
    }

}




Compile Messages
warning AL0432: Report 'Sales - Invoice EMP' is marked for removal. Reason: Replaced with report 1306 Standard Sales - Invoice. Tag: 15.2.

Compilation ended at '17:10:28.840'.

Success: The package is created.
  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,083 Super User 2024 Season 1 on at
    RE: Job Number on Posted Sales Invoice

    Can you please show me your Report Selection - Sales page for Sales invoice report?

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,083 Super User 2024 Season 1 on at
    RE: Job Number on Posted Sales Invoice

    Hi,

    If you check the report ID 1306 "Job No." already defined with the column, I did not get why you are trying to add it again.

    Secondly this report belongs to Posted Sales data, and you I can see you are trying to take Sales Line table.

    See the screenshot below.

    pastedimage1660819296600v1.png

  • LearnBC Profile Picture
    LearnBC 190 on at
    RE: Job Number on Posted Sales Invoice

    in Lines also it is there or in find entries- job ledger entries also the job field is there

    posted-sales-in.jpg

    led-entry.jpg

    reportextension 60003 PostedSalesInvoiceExt extends 1306
    {
    
        RDLCLayout = './ReportLayouts/PostedSalesInvoice.rdl';
        dataset
        {
            addbefore(Line)
            {
                
                dataitem("Sales Line"; "Sales Line")
    
                //add("Sales Invoice Line")
                {
    
                    
                    column(JobNo_SalesLine; "Job No.")
                    {
                    }
    
                }
            }
    
        }
    }

  • LearnBC Profile Picture
    LearnBC 190 on at
    RE: Job Number on Posted Sales Invoice

    Yes, i already added in the report but it is not coming over there. thatz why am confused is there any mistakes in code or not

  • Suggested answer
    JAngle Profile Picture
    JAngle 48 on at
    RE: Job Number on Posted Sales Invoice

    For report 1306 the field is already part of the sales line data item. Just add it through a report layout

  • LearnBC Profile Picture
    LearnBC 190 on at
    RE: Job Number on Posted Sales Invoice

    Could you pls anyone guide me what may be the issue in this.

  • LearnBC Profile Picture
    LearnBC 190 on at
    RE: Job Number on Posted Sales Invoice

    Could you pls anyone suggest me what may be the issue in this.

  • LearnBC Profile Picture
    LearnBC 190 on at
    RE: Job Number on Posted Sales Invoice

    is it like this..but there is no result as expected

    reportextension 60003 PostedSalesInvoiceExt extends 1306
    {
    
        RDLCLayout = './ReportLayouts/PostedSalesInvoice.rdl';
        dataset
        {
            addbefore(Line)
            {
                
                dataitem("Sales Line"; "Sales Line")
    
                //add("Sales Invoice Line")
                {
    
                    
                    column(JobNo_SalesLine; "Job No.")
                    {
                    }
    
                }
            }
    
        }
    }

  • Suggested answer
    JAngle Profile Picture
    JAngle 48 on at
    RE: Job Number on Posted Sales Invoice

    I believe the dataitem in the report is like this:

    dataitem(Line; "Sales Invoice Line")

    Which would mean you reference it with Line in a report extension. Try using ctrl+spacebar in vs code. That gives you suggestions on what to use table and field wise

  • LearnBC Profile Picture
    LearnBC 190 on at
    RE: Job Number on Posted Sales Invoice

    after downloading the latest extension and changing the report to 1306 standard sales then  also am getting the same

    pos-job.jpg

    reportextension 60003 PostedSalesInvoiceExt extends 1306
    {
    
        RDLCLayout = './ReportLayouts/PostedSalesInvoice.rdl';
        dataset
        {
            add("Sales Invoice Line")
            {
                column(JobNo_SalesInvoiceLine; "Job No.")
                {
                }
    
            }
        }
    
    }

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,817 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans