Commit 8786d37
authored
Correct document for embedded PDF (#29667)
<!-- Thank you for submitting a Pull Request. If you're new to
contributing to AlAppExtensions please read our pull request guideline
below
* https://github.com/microsoft/ALAppExtensions/blob/main/CONTRIBUTING.md
-->
#### Summary <!-- Provide a general summary of your changes -->
This pull request updates how `SalesHeader` is populated in the `Export
XRechnung Document` codeunit. Instead of using the
`PEPPOLMgt.FindNextSalesInvoiceRec` and
`PEPPOLMgt.FindNextSalesCreditMemoRec` methods, it now uses
`TransferFields` and explicitly sets the `"Document Type"` field. This
change fixes the wrong document selection for both invoices and credit
memos.
#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes #29665
[AB#620565](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/620565)1 parent 382ec50 commit 8786d37
File tree
1 file changed
+4
-2
lines changed- Apps/DE/EDocumentDE/app/src/XRechnung
1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
956 | 956 | | |
957 | 957 | | |
958 | 958 | | |
959 | | - | |
| 959 | + | |
| 960 | + | |
960 | 961 | | |
961 | 962 | | |
962 | 963 | | |
963 | 964 | | |
964 | | - | |
| 965 | + | |
| 966 | + | |
965 | 967 | | |
966 | 968 | | |
967 | 969 | | |
| |||
0 commit comments