microsoft / microsoft/BCApps

[Bug]: Source order no. on value entries is incorrect when invoicing multiple orders

Open
#8,877 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Approved Team: SCM
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
  1. Create 2 sales orders for the same customer, each with an item.
  2. Ship both sales orders without invoicing.
  3. Create a sales invoice for the customer and use get shipment lines to invoice the previous two shipments
  4. Post the invoice
  5. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.