Skip to main content
Business Central forum
Suggested answer

Job Number on Posted Sales Invoice

editSubscribe (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.
Categories:
  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 20,984 Super User 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 20,984 Super User 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 33,131 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 33,131 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.")
                {
                }
    
            }
        }
    
    }

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 222,562 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans