How to write code to reverse Gift Aid claim

How to use the API to reverse a Gift Aid Claim

UK version of RE has GiftAid claims.  When a posted gift with a claim needs to be adjusted, the front-end will create a new gift and reverse the Nominal Ledger entry for the old gift.  How is this accomplished with the API?

We have evaluated this issue and have determined it will not be addressed in the program in its current state. In this case, we believe the risks and challenges outweigh the potential benefit of resolving this issue. We strive to select the most impactful changes and issues to address with each release to accelerate the rate at which we deliver new features while sustaining the highest level of quality for our customers.

Steps to Duplicate

With The Raiser's Edge UK, add a gift to a constituent record
Click Tax tab and specify a percentage
Click Miscellaneous tab and set gift to Posted
Note the gift ID and use it in the following VBA sub:
Public Sub testAdjust()

Dim oGift As CGift
Set oGift = New CGift

With oGift
.Init REApplication.SessionContext
.Load 3966 'Adjust for your GiftID

'Dim oAdjustment As IBBAdjustment
'Dim oAdjustmentServer As CAdjustmentServer
'Set oAdjustmentServer = New CAdjustmentServer

' With oAdjustmentServer
' .Init REApplication.SessionContext, oGift
' Set oAdjustment = .AddAdjustment()
' With oAdjustment
' 'let the user set fields on the adjustment
' .Fields(ADJUSTMENT_fld_Post_Date) = "06/13/2017"
' End With
' 'Validate and save the adjustment
' .Validate
' .Save
' End With

Dim oGift2 As IBBGift2
Set oGift2 = oGift

With oGift2
.AdjustTaxClaim False, True
End With

End With

Set oGift = Nothing
'Set oAdjustmentServer = Nothing

End Sub


Was this article helpful?

Thanks for your feedback! Did this solve your issue?

Comments (optional):

Thanks for your feedback!
We're glad it was helpful but sorry it didn’t solve your issue. If you need assistance, click Chat with Support below.
We’re sorry to hear that. Please tell us why.

 I don't like how this works.

 The answer is confusing.

 The answer didn't match what I was searching for.

Additional Comments (optional):

Thanks for your feedback! If you need assistance, click Chat with Support below.
Thanks for your feedback. Help us make our products even better by sharing details in our Idea Banks or our online Community.
Thanks for letting us know. We'll work on clarifying the information in the article. If you need assistance, click Chat with Support below.
Thanks for letting us know. We'll work on updating the search engine to return more relevant results.