OpenPetra
Free Administration Software for Non-Profits
Ict.Petra.Server.MFinance.Gift.WebConnectors.TGuiTools Class Reference

Description of Class1. More...

Static Public Member Functions

static Boolean GetMotivationGroupAndDetailForPartner (Int64 APartnerKey, ref String AMotivationGroup, ref String AMotivationDetail)
 The user can insert a recipient key manualy and so each key has to be checked for usability. Parallel to this request you can check the values of MotivationGroup and MotivationDetail. In normal cases the global default values will be used. But in some cases "PartnerKey"-specific defaults are used instead. More...
 

Detailed Description

Description of Class1.

Member Function Documentation

◆ GetMotivationGroupAndDetailForPartner()

static Boolean Ict.Petra.Server.MFinance.Gift.WebConnectors.TGuiTools.GetMotivationGroupAndDetailForPartner ( Int64  APartnerKey,
ref String  AMotivationGroup,
ref String  AMotivationDetail 
)
inlinestatic

The user can insert a recipient key manualy and so each key has to be checked for usability. Parallel to this request you can check the values of MotivationGroup and MotivationDetail. In normal cases the global default values will be used. But in some cases "PartnerKey"-specific defaults are used instead.

This Routine

  1. Checks if PartnerKey is available in p_partner
  2. If PartnerKey is not available the result PartnerKeyIsValid = false and the other parameters are not changed.
  3. If PartnerKey is available then PartnerKeyIsValid = true and:
  4. The Table-Entry p_partner_class_c is checked for the value "unit"
  5. If p_partner_class_c does not hold the value unit, then the routine is done; the other parameters are not changed
  6. If p_partner_class_c holds the value "unit" then the table p_unit is checked.
  7. If p_unit.p_partner_class_c holds the value "KEYMIN" then MotivationDetail is changed to KEY-MIN.
  8. If p_unit.p_partner_class_c does not hold the value "KEYMIN" the routine is done.
Parameters
APartnerKey
AMotivationGroupOutput: Probably set to GIFT
AMotivationDetailInput: default value; unlikely to be used! Output: value depending on APartnerKey.
Returns
true if parther key is valid

The documentation for this class was generated from the following file: