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.
12 lines
380 B
Perl
12 lines
380 B
Perl
[Test]
|
|
procedure PostSalesOrder_CreatesInvoice()
|
|
var
|
|
SalesHeader: Record "Sales Header";
|
|
begin
|
|
// [GIVEN] a sales order — posting groups left to whatever exists in the test company
|
|
LibrarySales.CreateSalesOrder(SalesHeader);
|
|
// [WHEN]
|
|
LibrarySales.PostSalesOrder(SalesHeader, false, true);
|
|
// [THEN]
|
|
Assert.RecordIsNotEmpty(SalesInvoiceHeader);
|
|
end;
|