[Bug]: Source order no. on value entries is incorrect when invoicing multiple orders
Nobody has claimed this yet.
- Dominant language
- AL
- Stars
- 683
- Forks
- 459
- Avg merge
- 3d 26m
- Merged PRs (30d)
- 633
Description
Describe the issue
The source order no. field on value entries are incorrect when invoicing multiple shipment or receipt lines on a sales or purchase invoice. This is caused by the source order no. being retrieved from the posted document header, rather than the posted document lines.
Expected behavior
The source order no. field on value entries correctly shows the order it's related to to, even when invoicing multiple shipments or receipts
Steps to reproduce
- Create 2 sales orders for the same customer, each with an item.
- Ship both sales orders without invoicing.
- Create a sales invoice for the customer and use get shipment lines to invoice the previous two shipments
- Post the invoice
- Check the source order no. on the invoice value entries
Additional context
Requested by @KennieNP
Fixes BusinessCentralApps/1253 (AB#562761)
Fixes AB#???
I will provide a fix for a bug
- I will provide a fix for a bug
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue by invoicing shipment lines from two orders, then trace how the source order number is assigned to value entries during posting. Compare the posted document header and line data, and verify that each value entry shows the order associated with its shipment or receipt line.
Written by the indexing model from the issue text.
Assessment
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100