19. Juli 2018 11:21
IF "Invoice Disc. Code" = '' THEN
"Invoice Disc. Code" := "No.";
// -@01
{ Orig.
IF NOT (InsertFromContact OR (InsertFromTemplate AND (Contact <> ''))) THEN
UpdateContFromVend.OnInsert(Rec);
}
DonSetup.GET;
IF NOT DonSetup."No Cont. Creation from Vendor" THEN BEGIN
IF NOT (InsertFromContact OR (InsertFromTemplate AND (Contact <> ''))) THEN
UpdateContFromVend.OnInsert(Rec);
END;
// +@01
IF "Purchaser Code" = '' THEN
SetDefaultPurchaser;
19. Juli 2018 11:56
OnInsert(VAR Vend : Record Vendor)
RMSetup.GET;
IF RMSetup."Bus. Rel. Code for Vendors" = '' THEN
EXIT;
InsertNewContact(Vend,TRUE);
19. Juli 2018 12:16