Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 103 additions & 0 deletions l10n_jp_summary_invoice_untaxed_unrounded/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
=======================================
Japan Summary Invoice Untaxed Unrounded
=======================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:50bb0286793da755949b0349e8745c0f49f3886aa96e37d243a7a59c04ec6c2c
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--japan-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-japan/tree/18.0/l10n_jp_summary_invoice_untaxed_unrounded
:alt: OCA/l10n-japan
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-japan-18-0/l10n-japan-18-0-l10n_jp_summary_invoice_untaxed_unrounded
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-japan&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

On the summary invoice report, per-line subtotals and the per-invoice
"Amount Untaxed" are shown with the currency precision. Under **Round
Globally** tax rounding with a zero-decimal currency (such as JPY), this
rounding can hide decimals, so the displayed amounts no longer reconcile
with the invoice untaxed total.

This bridge module applies the unrounded disclosure provided by
``account_invoice_report_untaxed_unrounded`` to the summary invoice
report: the per-line subtotal (``price_subtotal_unrounded``) and the
per-invoice untaxed amount (``amount_untaxed_unrounded``) are shown at
full precision, formatted with the per-company *Untaxed Unrounded
Digits*.

It installs automatically when both ``l10n_jp_summary_invoice`` and
``account_invoice_report_untaxed_unrounded`` are present.

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-japan/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/l10n-japan/issues/new?body=module:%20l10n_jp_summary_invoice_untaxed_unrounded%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Quartile

Contributors
------------

- `Quartile <https://www.quartile.co>`__:

- Aung Ko Ko Lin

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-yostashiro| image:: https://github.com/yostashiro.png?size=40px
:target: https://github.com/yostashiro
:alt: yostashiro
.. |maintainer-aungkokolin1997| image:: https://github.com/aungkokolin1997.png?size=40px
:target: https://github.com/aungkokolin1997
:alt: aungkokolin1997

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-yostashiro| |maintainer-aungkokolin1997|

This module is part of the `OCA/l10n-japan <https://github.com/OCA/l10n-japan/tree/18.0/l10n_jp_summary_invoice_untaxed_unrounded>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Empty file.
22 changes: 22 additions & 0 deletions l10n_jp_summary_invoice_untaxed_unrounded/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2026 Quartile (https://www.quartile.co)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Japan Summary Invoice Untaxed Unrounded",
"summary": "Show unrounded subtotals and untaxed amounts on the summary "
"invoice report when currency rounding hides decimals",
"version": "18.0.1.0.0",
"category": "Japanese Localization",
"author": "Quartile, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-japan",
"license": "AGPL-3",
"depends": [
"l10n_jp_summary_invoice",
"account_invoice_report_untaxed_unrounded",
],
"data": [
"reports/report_summary_invoice_templates.xml",
],
"maintainers": ["yostashiro", "aungkokolin1997"],
"auto_install": True,
"installable": True,
}
3 changes: 3 additions & 0 deletions l10n_jp_summary_invoice_untaxed_unrounded/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [Quartile](https://www.quartile.co):
- Aung Ko Ko Lin
14 changes: 14 additions & 0 deletions l10n_jp_summary_invoice_untaxed_unrounded/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
On the summary invoice report, per-line subtotals and the per-invoice
"Amount Untaxed" are shown with the currency precision. Under **Round Globally**
tax rounding with a zero-decimal currency (such as JPY), this rounding can hide
decimals, so the displayed amounts no longer reconcile with the invoice untaxed
total.

This bridge module applies the unrounded disclosure provided by
`account_invoice_report_untaxed_unrounded` to the summary invoice report: the
per-line subtotal (`price_subtotal_unrounded`) and the per-invoice untaxed
amount (`amount_untaxed_unrounded`) are shown at full precision, formatted with
the per-company *Untaxed Unrounded Digits*.

It installs automatically when both `l10n_jp_summary_invoice` and
`account_invoice_report_untaxed_unrounded` are present.
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template
id="bill_line_section_layout"
inherit_id="l10n_jp_summary_invoice.bill_line_section_layout"
>
<!--
Always disclose the unrounded line subtotal and the per-invoice
untaxed amount, formatted with the company's untaxed-unrounded
digits, so the printed amounts reflect the decimals that currency
rounding would otherwise hide. The currency-rounded spans are hidden
(not removed) so other modules can still inherit them.
-->
<xpath expr="//td[@name='td_subtotal']/span" position="attributes">
<attribute name="t-if">False</attribute>
</xpath>
<xpath expr="//td[@name='td_subtotal']/span" position="after">
<span class="text-nowrap">
<t t-if="o.currency_id.position == 'before'"><t
t-out="o.currency_id.symbol"
/>&amp;nbsp;</t>
<t
t-out="line.price_subtotal_unrounded * (-1 if line.move_type in ['out_refund', 'in_refund'] else 1)"
t-options-widget="'float'"
t-options-precision="o.company_id.untaxed_unrounded_digits"
/>
<t t-if="o.currency_id.position == 'after'">&amp;nbsp;<t
t-out="o.currency_id.symbol"
/></t>
</span>
</xpath>
<xpath expr="//tr[@name='amount_untaxed']/td[2]/span" position="attributes">
<attribute name="t-if">False</attribute>
</xpath>
<xpath expr="//tr[@name='amount_untaxed']/td[2]/span" position="after">
<span class="text-nowrap">
<t t-if="o.currency_id.position == 'before'"><t
t-out="o.currency_id.symbol"
/>&amp;nbsp;</t>
<t
t-out="invoice.amount_untaxed_unrounded * (-1 if invoice.move_type in ['out_refund', 'in_refund'] else 1)"
t-options-widget="'float'"
t-options-precision="o.company_id.untaxed_unrounded_digits"
/>
<t t-if="o.currency_id.position == 'after'">&amp;nbsp;<t
t-out="o.currency_id.symbol"
/></t>
</span>
</xpath>
</template>
</odoo>
Loading
Loading