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 are currently evaluating this issue and will update this article when we have more information.

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

.Validate
.Save
.Closedown
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.