Skip to content

[17.0,18.0] accoun_loan: unable to post leasing with residual amount #2234

Description

@petrus-v

Module

account_loan from version 17.0

Describe the bug

unable to post leasing with residual amount

To Reproduce

Affected versions: 17.0+

Steps to reproduce the behavior:

  1. create a leasing (account.loan with is_leasing = True) fill leasing data as usual
  2. add residual amount on leasing tab
  3. generate lines
  4. click post to open the wizard to choose the journal and click run
    currently I got the message

The total principal amount does not match the loan amount.

Expected behavior
We shouldn't be lock at this stage

Additional context

First investigation I guess this control should be aware of the residual amount https://github.com/OCA/account-financial-tools/blob/17.0/account_loan/wizards/account_loan_post.py#L92-L101

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions