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.
10 lines
578 B
Perl
10 lines
578 B
Perl
// Low blast radius: guard, with an explicit chosen fallback.
|
|
if SalesHeader.Get(SalesHeader."Document Type"::Order, DocumentNo) then
|
|
VATRegNo := SalesHeader."VAT Registration No.";
|
|
// Blank is an acceptable, deliberately-considered default here - the field
|
|
// is informational and a reviewer sees it before the document ships.
|
|
|
|
// High blast radius: let it fail loud, because this feeds posted VAT.
|
|
SalesHeader.Get(SalesHeader."Document Type"::Order, DocumentNo);
|
|
SalesHeader.TestField("VAT Bus. Posting Group");
|
|
VATBusPostingGroup := SalesHeader."VAT Bus. Posting Group";
|