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

This connector provides functions to adjust and reverse gifts /summary> More...

Static Public Member Functions

static bool GetGiftsForReverseAdjust (Hashtable requestParams, ref GiftBatchTDS AGiftDS, out TVerificationResultCollection AMessages)
 Get all data that is needed for a reverse or adjust (not Field Adjust) More...
 
static bool GetGiftsForFieldChangeAdjustment (ref GiftBatchTDS AGiftDS, Int32 ALedgerNumber, Int64 ARecipientKey, DateTime AStartDate, DateTime AEndDate, Int64 AOldField, out TVerificationResultCollection AMessages)
 Find all gifts that need their field adjusted More...
 
static bool CheckGiftsNotPreviouslyReversed (GiftBatchTDS AGiftDS, out TVerificationResultCollection AMessages)
 Check that none of the gifts have been reversed before. More...
 
static void ReversedGiftReset (Int32 ALedgerNumber, List< string >AModifiedDetailKeys)
 Identify the gift detail that needs to be reset as not reversed More...
 
static bool GiftRevertAdjust (Int32 ALedgerNumber, Int32 ABatchNumber, Int32 AGiftTransactionNumber, Int32 AGiftDetailNumber, bool ABatchSelected, Int32 ANewBatchNumber, DateTime? ANewGLDateEffective, GiftAdjustmentFunctionEnum AFunction, bool ANoReceipt, Decimal ANewPct, out int AAdjustmentBatchNumber)
 Revert or Adjust a Gift, revert a Gift Detail, revert a gift batch More...
 

Detailed Description

This connector provides functions to adjust and reverse gifts /summary>

Member Function Documentation

◆ CheckGiftsNotPreviouslyReversed()

static bool Ict.Petra.Server.MFinance.Gift.WebConnectors.TAdjustmentWebConnector.CheckGiftsNotPreviouslyReversed ( GiftBatchTDS  AGiftDS,
out TVerificationResultCollection  AMessages 
)
inlinestatic

Check that none of the gifts have been reversed before.

◆ GetGiftsForFieldChangeAdjustment()

static bool Ict.Petra.Server.MFinance.Gift.WebConnectors.TAdjustmentWebConnector.GetGiftsForFieldChangeAdjustment ( ref GiftBatchTDS  AGiftDS,
Int32  ALedgerNumber,
Int64  ARecipientKey,
DateTime  AStartDate,
DateTime  AEndDate,
Int64  AOldField,
out TVerificationResultCollection  AMessages 
)
inlinestatic

Find all gifts that need their field adjusted

Parameters
AGiftDSGift Batch containing all the data needed for a Field Change Adjustment
ALedgerNumber
ARecipientKey
AStartDatestart of period where we want to fix gifts
AEndDateend of period where we want to fix gifts
AOldFieldthe wrong field
AMessagesAdditional messages to display in a messagebox

◆ GetGiftsForReverseAdjust()

static bool Ict.Petra.Server.MFinance.Gift.WebConnectors.TAdjustmentWebConnector.GetGiftsForReverseAdjust ( Hashtable  requestParams,
ref GiftBatchTDS  AGiftDS,
out TVerificationResultCollection  AMessages 
)
inlinestatic

Get all data that is needed for a reverse or adjust (not Field Adjust)

Parameters
requestParamsHashtable containing the given params
AGiftDSDataSet containing all gift data needed
AMessagesAdditional messages to display in a messagebox

◆ GiftRevertAdjust()

static bool Ict.Petra.Server.MFinance.Gift.WebConnectors.TAdjustmentWebConnector.GiftRevertAdjust ( Int32  ALedgerNumber,
Int32  ABatchNumber,
Int32  AGiftTransactionNumber,
Int32  AGiftDetailNumber,
bool  ABatchSelected,
Int32  ANewBatchNumber,
DateTime?  ANewGLDateEffective,
GiftAdjustmentFunctionEnum  AFunction,
bool  ANoReceipt,
Decimal  ANewPct,
out int  AAdjustmentBatchNumber 
)
inlinestatic

Revert or Adjust a Gift, revert a Gift Detail, revert a gift batch

Parameters
ALedgerNumber
ABatchNumber
AGiftTransactionNumber
AGiftDetailNumber
ABatchSelected
ANewBatchNumber
ANewGLDateEffective
AFunction
ANoReceipt
ANewPct
AAdjustmentBatchNumberBatch that adjustment transactions have been added to
Returns
false if error

◆ ReversedGiftReset()

static void Ict.Petra.Server.MFinance.Gift.WebConnectors.TAdjustmentWebConnector.ReversedGiftReset ( Int32  ALedgerNumber,
List< string >  AModifiedDetailKeys 
)
inlinestatic

Identify the gift detail that needs to be reset as not reversed

Parameters
ALedgerNumber
AModifiedDetailKeys

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