The CreateCustomerWithNonBlockedCustomerCategoryWithFreeGiftsAvailable helper function

CreateCustomerWithNonBlockedCustomerCategoryWithFreeGiftsAvailable is a helper function that creates a customer with a non-blocking customer category set, and it's implemented as follows:

local procedure
CreateCustomerWithNonBlockedCustomerCategory
WithFreeGiftsAvailable(var Customer: record Customer)
begin
LibrarySales.CreateCustomer(Customer);
with Customer do begin
Validate(
"Customer Category Code_PKT",
CreateNonBlockedCustomerCategory
WithFreeGiftsAvailable());
Modify();
end;
end;

Note that, like our previous helper function, CreateCustomer (see test examples 1 and 2), this test function also makes use of the standard CreateCustomer function in the standard library LibrarySales codeunit (130509).

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.147.87