Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advance payment residual amount negative when credit notes are reconciled #3421

Open
yaazkal opened this issue Nov 23, 2024 · 0 comments
Open
Labels

Comments

@yaazkal
Copy link

yaazkal commented Nov 23, 2024

Module

Sale Advance Payment (sale_advance_payment)

Describe the bug

When a sale has a credit note, and that credit note is paid, then the residual amount becomes negative.

To Reproduce

Affected versions: 15.0, 16.0 but maybe others too.

Steps to reproduce the behavior:

One scenario: Sale order wants to be cancelled but an invoice has already been published, when the credit not is created and reconciled with the invoice the residual amount becomes negative

  1. Create a sale
  2. Create invoice of the sale.
  3. Create credit note for the invoice

Residual amount negative:
Captura de pantalla 2024-11-23 a la(s) 6 56 54 a m

Second scenario: The client wants to return products of the sale so a credit note is created and money is returned to the client.

  1. Create a sale.
  2. Deliver 2 products.
  3. Create invoice.
  4. Return 1 product.
  5. Create credit note for 1 product.
  6. Pay credit note with a payment.

Residual amount negative:
Captura de pantalla 2024-11-23 a la(s) 6 59 49 a m

Expected behavior
For the first scenario the residual amount should 320 and not -320, for the second scenario the residual amount should be 320 and not -320 un less the user change the quantity to 1 product in the sale order where should be then zero that residual amount.

Additional context
This was tested on runboat.

@yaazkal yaazkal added the bug label Nov 23, 2024
@yaazkal yaazkal changed the title Advance payment residual amount negative when credit notes are paid Advance payment residual amount negative when credit notes are reconciled Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant