11-24-2016 11:35 AM - edited 02-03-2024 6:28 PM
Hi people,
I have a boring problem with an addon that have to register A/R invoice payments.
Some, not all, payments fail with the error "[-10] Reconciliation difference must be zero before reconciling [3821-8]"
My code is this
Dim pay As SAPbobsCOM.Payments = _cmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments)
With pay
.CardCode = _CardCode
.CashSum = docTotal
.CashAccount = "14483010"
.Invoices.DocEntry = nEntry
.Invoices.SumApplied = docTotal
End With
Dim ret As Integer = pay.Add()
If ret <> 0 Then
' error!
End If
The amount that I write in CashSum and SumApplied is read directly from the invoice registered with DocEntry nEntry and then is the same amount.
Why one time on three the registration fails with this error?
My B1 is v. 9.10.180 PL:08 32-bit
Thank you very much for your help.
Nicola
--------------------------------------------------------
Do you need to index your XML? Try the OpenSource XMLSmartHelper Framework
Hi Diego and all other interested.
I'm happy to announce that I find the solution to the damned problem.
Upgrade B1 to 9.20.150 PL 05
That's all.
Ciao
Nicola
--------------------------------------------------------
Do you need to index your XML? Try the OpenSource XMLSmartHelper Framework
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nicola,
Your code seems ok.
I believe that the problem is not in your code.
Look at this line: https://archive.sap.com/discussions/message/8744416 maybe some of mentioned notes in that topic will help you.
Good Luck.
Kind Regards,
Diego Lother
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
6 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.