[PA][Pioneer]: Numeric line fields mis-extracted (discount, quantity, unit of measure) - #9772
[PA][Pioneer]: Numeric line fields mis-extracted (discount, quantity, unit of measure)#9772Explorer986 wants to merge 1 commit into
Conversation
9844245 to
6131e96
Compare
|
PopulateEDocumentPurchaseLine now only records Line mapping was unavailable, so this was posted as an issue comment. 👍 useful · ❤️ especially valuable · 👎 wrong - reply with why · AL review agent v1.19.4 |
|
Both EDocMLLMSchemaHelper.MapLinesFromJson and EDocumentADIHandler.PopulateEDocumentPurchaseLine previously defaulted an unusable quantity ( Line mapping was unavailable, so this was posted as an issue comment. 👍 useful · ❤️ especially valuable · 👎 wrong - reply with why · AL review agent v1.19.4 |
6131e96 to
e475a67
Compare
What & why
When a scanned invoice line has no quantity or a zero line total, the importer used to force the quantity to 1 and invent a discount from the price. That created phantom lines and wrong discounts. Now we keep a genuine zero quantity, only derive quantity from total over price when it makes sense, and never fabricate a discount. Unresolved units like HUR now carry through to the BC unit of measure field instead of showing blank.
Linked work
Fixes AB#642334
How I validated this
What I tested and the outcome
Risk & compatibility
The unresolved unit fallback puts the raw code like HUR straight into the BC unit of measure field in View Extracted Data Page.