Balance problem with unintended self-payment

Bug and problem reporting on Cyclos 4 version

Moderators: rmvanarkel, hugo, alexandre

Post Reply
admin_de2
Posts: 90
Joined: Wed Dec 31, 1969 9:00 pm

Balance problem with unintended self-payment

Post by admin_de2 »

Hi Alexandre,

i hit a problem how cyclos manages bookings, which are not neccessarily wrong, but maybe unintended:

- I have a broker group.
- User "Verein-1" has user "Betreiber-Geschäftskonto" as Broker.
- Brokers get a fee, when a User receives a payment from system account "EUR-backing". The fee is payed by fixed user "Betreiber Geschäftskonto".

- When i transfer 500 from "EUR-backing" to "Verein-1", a unintended self-payment is triggered:
- Fee-amout of 15 units (3%) is received by the Verein-1's broker "Betreiber-Geschäftskonto", payed by itself.
- Sofar, so good: I thought that should not be a problem for cyclos. But, i suspected maybe it is, since self-payments always have this checkbox "is self-payment".

The result is at the "Betreiber-Geschäftskonto"-Account:
- Booking of -15 units from the account;
- But no counterpart with +15 units apprears; the +15 units also do not appear on any other (system or user) account. They are swallowed by Cyclos.

When i recheck the balance calculation, it's not the amount intended;
When i recheck the "net income"-item, it's the amount intended, with the missing +15 units taken into consideration.

I added screenshot for the account sheet as well the fee transaction details.

For the first, i figure out if i can move "Betreiber-Geschäftskonto" to a non-broker-group, what would avoid this unintended self-payment.
Finally, i guess, you should take this case into investigation.

Thank you, Thomas
Attachments
Transaction fee details
Transaction fee details
cyclos-unintended-self-payment-2.jpg (71.32 KiB) Viewed 475 times
Account transaction history
Account transaction history
cyclos-unintended-self-payment-1.jpg (115.87 KiB) Viewed 475 times
alexandre
Posts: 952
Joined: Wed Sep 06, 2006 9:06 am

Re: Balance problem with unintended self-payment

Post by alexandre »

Hi,

It seems to be a configuration problem.

Review all transfer types and fees related to the payment.

If you cannot find the problem, send a db dump to info@cyclos.org

Regards
Alexandre Caurrinhos
Cyclos development team.
admin_de2
Posts: 90
Joined: Wed Dec 31, 1969 9:00 pm

Re: Balance problem with unintended self-payment

Post by admin_de2 »

Alexandre, i cannot reproduce this case in network of the community-server. There, the booking is neutral - the selfpayment is left away entierly, what is the correct behavior in my opinion.

For me it's open for now why a single amount appears in my case without a counterpart on another account.

I come back to you either with our dump or if it would be neccessary again.

Thank you, Thomas
alexandre
Posts: 952
Joined: Wed Sep 06, 2006 9:06 am

Re: Balance problem with unintended self-payment

Post by alexandre »

Hi,

We found the problem and will be fixed on the next release.

Thanks for report
Alexandre Caurrinhos
Cyclos development team.
admin_de2
Posts: 90
Joined: Wed Dec 31, 1969 9:00 pm

Re: Balance problem with unintended self-payment

Post by admin_de2 »

Dear Alexandre, wow, that's superfast!

Just as a hint for me:
Is the balance amount change there and just not visible (so i can count to be "self-corrected" with next release),
or is the balance change amount indeed missing?

Thank you very much!

All best, Thomas
alexandre
Posts: 952
Joined: Wed Sep 06, 2006 9:06 am

Re: Balance problem with unintended self-payment

Post by alexandre »

Hi,

Yes the balance amounts will be corrected with the next release.
This transactions will be removed as they should not be generated.
When the from and to for the generated fee is the same account the transaction is ignored.

regards
Alexandre Caurrinhos
Cyclos development team.
Post Reply