Skip to content

[16.0][ADD] purchase_deposit_company_amount - #3161

Open
AungKoKoLin1997 wants to merge 1 commit into
OCA:16.0from
qrtl:16.0-add-purchase_deposit_company_amount
Open

[16.0][ADD] purchase_deposit_company_amount#3161
AungKoKoLin1997 wants to merge 1 commit into
OCA:16.0from
qrtl:16.0-add-purchase_deposit_company_amount

Conversation

@AungKoKoLin1997

@AungKoKoLin1997 AungKoKoLin1997 commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

This module books a foreign-currency purchase deposit at the company-currency amount actually paid and carries that figure through to the final bill, so the deposit account clears to zero and the exchange-rate difference lands in the inventory cost of the goods instead of being stranded on the balance sheet.

In detail:

  • Adds a Company Currency Amount field to the deposit line of a deposit
    bill, which forces the line's balance to the amount entered instead
    of converting the foreign currency amount at the exchange rate.
  • Carries the company currency value of a posted deposit bill over to
    the deposit offset line of the final bill, so the deposit account
    closes out at the amount that was actually paid.
  • Books the resulting exchange rate difference into the product lines,
    and reflects it in the stock valuation of the received goods.

The field is only available on the deposit line of a deposit bill raised in a foreign currency, and the column is hidden everywhere else. Everything on the final bill is derived from it, and a deposit nobody entered an amount for keeps the standard rate conversion throughout.

@qrtl QT6131

@OCA-git-bot OCA-git-bot added series:16.0 mod:purchase_deposit_company_amount Module purchase_deposit_company_amount labels Sep 1, 2026
@AungKoKoLin1997
AungKoKoLin1997 marked this pull request as draft September 1, 2026 09:54
@AungKoKoLin1997
AungKoKoLin1997 force-pushed the 16.0-add-purchase_deposit_company_amount branch 2 times, most recently from 7cbde9a to d4fc3db Compare September 1, 2026 10:15
@AungKoKoLin1997
AungKoKoLin1997 marked this pull request as ready for review September 1, 2026 10:15
Comment thread purchase_deposit_company_amount/readme/USAGE.md
Comment thread purchase_deposit_company_amount/models/account_move.py
Comment thread purchase_deposit_company_amount/models/account_move.py Outdated
@AungKoKoLin1997
AungKoKoLin1997 force-pushed the 16.0-add-purchase_deposit_company_amount branch 2 times, most recently from 36ad8d5 to 97c10f0 Compare September 2, 2026 03:31
@AungKoKoLin1997
AungKoKoLin1997 force-pushed the 16.0-add-purchase_deposit_company_amount branch from 97c10f0 to 4185fbe Compare September 2, 2026 03:43

@yostashiro yostashiro left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review and functional test. LGTM. 👍

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

Labels

mod:purchase_deposit_company_amount Module purchase_deposit_company_amount series:16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants