mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 06:36:55 +01:00
25 lines
804 B
AL
25 lines
804 B
AL
codeunit 50543 "Test Sample Posted Fixture Bad"
|
|
{
|
|
Subtype = Test;
|
|
TestPermissions = Disabled; // does not help: the check is the license, not the permission set
|
|
|
|
// Direct insert into a posted table: green under a container runner,
|
|
// "Your license does not grant you ... Insert" under a SaaS user license.
|
|
local procedure CreatePostedPurchaseInvoice(): Code[20]
|
|
var
|
|
PurchInvHeader: Record "Purch. Inv. Header";
|
|
begin
|
|
PurchInvHeader.Init();
|
|
PurchInvHeader."No." := 'PI-TEST-001';
|
|
PurchInvHeader.Insert();
|
|
exit(PurchInvHeader."No.");
|
|
end;
|
|
|
|
[Test]
|
|
procedure PostedInvoiceIsAvailable()
|
|
var
|
|
PurchInvHeader: Record "Purch. Inv. Header";
|
|
begin
|
|
PurchInvHeader.Get(CreatePostedPurchaseInvoice());
|
|
end;
|
|
}
|