Metadata-Version: 2.1
Name: odoo-addon-account_payment_term_cutoff_day
Version: 19.0.1.0.0.5
Requires-Dist: odoo==19.0.*
Summary: =?utf-8?b?5pSv5omV5p2h5Lu244Gr57eg5pel44Gu5qaC5b+144KS6L+95Yqg?=
Home-page: https://github.com/OCA/l10n-japan
License: AGPL-3
Author: Quartile, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 19.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Description-Content-Type: text/x-rst

.. image:: https://odoo-community.org/readme-banner-image
   :target: https://odoo-community.org/get-involved?utm_source=readme
   :alt: Odoo Community Association

===============================
Account Payment Term Cutoff Day
===============================

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

.. |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/license-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/19.0/account_payment_term_cutoff_day
    :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-19-0/l10n-japan-19-0-account_payment_term_cutoff_day
    :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=19.0
    :alt: Try me on Runboat

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

支払条件に「締日」の概念を追加します。

支払条件の明細行に「締日あり」「月数」「締日」のフィールドを追加し、
締日を基準とした支払期日の計算を可能にします。

請求書の日付が締日を過ぎている場合、支払期日が自動的に翌月に繰り越されます。
「月数」フィールドで、締日から何ヶ月後の月末を基準とするかを指定できます。

また、請求書（account.move）に「締日」フィールドを追加します。

**Table of contents**

.. contents::
   :local:

Configuration
=============

- *会計(または請求) > 設定 > 支払条件* を開く
- 支払条件を選択または新規作成
- 支払条件の明細行で「締日あり」を有効化
- 「締日」と「月数」を設定

Usage
=====

顧客請求書/仕入先請求書に締日付きの支払条件を設定すると、適切な締日および支払期日が
提案されます。

支払期日は以下のロジックで自動計算:

- 請求日が締日以前の場合、当月の締日を基準日とする
- 請求日が締日より後の場合、翌月の締日を基準日とする
- 基準日に「月数」を加算した月の月末を支払期日とする

例: 締日=20、月数=1 の場合

- 請求日が2月20日 → 基準日: 2月20日 → 支払期日: 3月31日
- 請求日が2月21日 → 基準日: 3月20日 → 支払期日: 4月30日

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:%20account_payment_term_cutoff_day%0Aversion:%2019.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

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/19.0/account_payment_term_cutoff_day>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
