Source AL, 118 lines
src/Layers/W1/BaseApp/Pricing/Source/PriceSourceCustomer.Codeunit.allines 11 to 26 of 118, Copyright (c) Microsoft Corporation. MIT
codeunit 7032 "Price Source - Customer" implements "Price Source"{ var Customer: Record Customer; ParentErr: Label 'Parent Source No. must be blank for Customer source type.'; procedure GetNo(var PriceSource: Record "Price Source") begin if Customer.GetBySystemId(PriceSource."Source ID") then begin PriceSource."Source No." := Customer."No."; FillAdditionalFields(PriceSource); end else PriceSource.InitSource(); end; procedure GetId(var PriceSource: Record "Price Source")
All 118 lines
Events 2 in 29
| [IntegrationEvent] OnAfterFillAdditionalFields(var PriceSource: Record "Price Source"; Customer: Record Customer) | new in 20 |
| [IntegrationEvent] OnBeforeGetId(var PriceSource: Record "Price Source"; var IsHandled: Boolean) | new in 22 |
Public procedures 7 in 29
| GetNo(var PriceSource: Record "Price Source") | 17-29 |
| GetId(var PriceSource: Record "Price Source") | 17-29 |
| IsForAmountType(AmountType: Enum "Price Amount Type"): Boolean | 17-29 |
| IsSourceNoAllowed(): Boolean | 17-29 |
| IsLookupOK(var PriceSource: Record "Price Source"): Boolean | 17-29 |
| VerifyParent(var PriceSource: Record "Price Source"): Boolean | 17-29 |
All 7 procedures
Changes 1 in 22
| List | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
|---|
| Events | | | | 1 | | 1 | | | | | | | |
|---|
| [IntegrationEvent] OnBeforeGetId(var PriceSource: Record "Price Source"; var IsHandled: Boolean) | new in 22 |
| added |
All 2 changes in 17-29