mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 14:46:55 +01:00
Second contribution from CURABIS ApS, generalized from patterns observed across real AppSource/PTE development. Cross-checked against the current microsoft/knowledge corpus before opening; several originally-drafted candidates were dropped as duplicates of existing files.
11 lines
595 B
Perl
11 lines
595 B
Perl
// Both fields guarded the same way, out of habit rather than analysis.
|
|
if SalesHeader.Get(SalesHeader."Document Type"::Order, DocumentNo) then
|
|
VATRegNo := SalesHeader."VAT Registration No."; // low blast radius - fine
|
|
|
|
// but the same pattern, unexamined, was also applied here:
|
|
if SalesHeader.Get(SalesHeader."Document Type"::Order, DocumentNo) then
|
|
VATBusPostingGroup := SalesHeader."VAT Bus. Posting Group"
|
|
else
|
|
VATBusPostingGroup := '';
|
|
// High blast radius: silently wrong VAT posting group reaches posting
|
|
// with no error, no TestField, and no reviewer in the loop.
|