Skip to content

Commit 7055a47

Browse files
author
Magnus Hartvig Grønbech
committed
Fix sub contract subscriber
1 parent 612e878 commit 7055a47

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/Apps/W1/Subscription Billing/App/Base/Codeunits/SubContractsGeneralMgt.Codeunit.al

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,10 @@ codeunit 8059 "Sub. Contracts General Mgt."
501501
begin
502502
if Rec.IsTemporary() then
503503
exit;
504+
505+
if not RunTrigger then
506+
exit;
507+
504508
CustomerContract.SetRange("Sell-to Customer No.", Rec."No.");
505509
if not CustomerContract.IsEmpty() then
506510
Error(CustomerContractExistErr, Rec.TableCaption, Rec."No.");
@@ -518,6 +522,10 @@ codeunit 8059 "Sub. Contracts General Mgt."
518522
begin
519523
if Rec.IsTemporary() then
520524
exit;
525+
526+
if not RunTrigger then
527+
exit;
528+
521529
VendorContract.SetRange("Buy-from Vendor No.", Rec."No.");
522530
if not VendorContract.IsEmpty() then
523531
Error(VendorContractExistErr, Rec.TableCaption, Rec."No.");

0 commit comments

Comments
 (0)