Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

Table link between Sales Shipment and Sales Invoice

Posted on by 2,437

Hi Guys

I thought this was easy - to create a link between posted sales shipment and posted sales Invoice but couldn't find a link that provide unique values.

For example:

  Sales Order      Sales Shipment  Sales Invoice

SO1 Line 1         SS1                      IN1

                           SS2                      IN2

Now I want to report:

SS1      IN1

SS2      IN2

You cannot use the Sales order line link since you have multiple shipments, and invoices per SO line.  What am I missing?

thanks

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Table link between Sales Shipment and Sales Invoice
    [quote user="MichaelZ"]

    I must be completely missing something because when I do the table id of 5802 it returns:  LedgerPeriodAllocationCategoryEntity  

    [/quote]

    5802 is the correct number. The name you are referring to is not a table that is part of the BC base application.

  • MichaelZ Profile Picture
    MichaelZ 2 on at
    RE: Table link between Sales Shipment and Sales Invoice

    I must be completely missing something because when I do the table id of 5802 it returns:  LedgerPeriodAllocationCategoryEntity  

  • Samantha73 Profile Picture
    Samantha73 2,437 on at
    RE: Table link between Sales Shipment and Sales Invoice

    Thanks Thomas that worked :) awesome

  • Verified answer
    TWBlaisdell Profile Picture
    TWBlaisdell on at
    RE: Table link between Sales Shipment and Sales Invoice

    Hi,

    You could possibly use the Document Number in Table 5802 Value Entries.  The Shipment will be the first Value Entry associated with the ILE and the Invoicing will be the second Document No. and Value Entry linked to the Sales ILE.

    I'm not sure if this will work for you, but it is worth looking into.

    Thanks

    Tom  

  • Samantha73 Profile Picture
    Samantha73 2,437 on at
    RE: Table link between Sales Shipment and Sales Invoice

    If you look at the structure I cannot user the header as SS1, SS2, IN1, IN2 all have the same order and line so when you link you are duplicating results in the row set. I'm curious how others solve this ..maybe there is a 3rd table...

    Sales process is Sales Order---WH shipment--Sales Shipment--Sales Invoice

  • Suggested answer
    JAngle Profile Picture
    JAngle 33,159 on at
    RE: Table link between Sales Shipment and Sales Invoice

    Can you not use the header? If the shipment and invoice were made from the order you will get the “Order No.” populated. If you’re using the combine shipments routine this won’t be valid or if you create a manual sales invoice and do “get shipment lines.

    Depending on your process, Date may play as a valid way of creating the link too. Do you Ship & Invoice at the same time? Also an aggregated total of “Quantity” and “Line Amount” would be valid links.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans