Metadata-Version: 2.1
Name: odoo-addon-hr_expense_advance_clearing
Version: 19.0.1.0.0.2
Requires-Dist: odoo==19.0.*
Summary: Employee Advance and Clearing
Home-page: https://github.com/OCA/hr-expense
License: AGPL-3
Author: Ecosoft, 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

=============================
Employee Advance and Clearing
=============================

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

.. |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%2Fhr--expense-lightgray.png?logo=github
    :target: https://github.com/OCA/hr-expense/tree/19.0/hr_expense_advance_clearing
    :alt: OCA/hr-expense
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/hr-expense-19-0/hr-expense-19-0-hr_expense_advance_clearing
    :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/hr-expense&target_branch=19.0
    :alt: Try me on Runboat

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

The standard Expenses application reimburses employees after they have
paid an expense. This module also allows companies to give employees an
advance and clear it against their expenses later.

There are 3 advance clearing scenarios:

- When clearing amount = advance amount, no other operation is required.
- When clearing amount > advance amount, company will pay the extra to
  employee.
- When clearing amount < advance amount, employee will return the remain
  to company.

**Table of contents**

.. contents::
   :local:

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

This module creates the "Employee Advance" product automatically.
Configure its Expense Account with the employee advance account:

- Open Products and search for "Employee Advance".
- On the Accounting tab, select the employee advance account.

Note:

- You need "Show Full Accounting Features" to access the accounting
  fields.
- If the Employee Advance account does not exist, create it with type
  Current Asset and enable Allow Reconciliation.

**Clearing Journal**

Clearing expenses are posted as miscellaneous journal entries. Configure
the default journal as follows:

1. Go to Settings > Expenses > Accounting.
2. Set Default Clearing Journal to a Miscellaneous journal.

The journal defaults from this setting and can be changed in the Post
Expenses wizard for each posting.

Usage
=====

Configure the "Employee Advance" product with a Current Asset account
and enable Allow Reconciliation before using this module.

**Create an Employee Advance**

1. Go to Expenses > My Expenses > My Advances and create an advance.
2. Enter the advance amount. Optionally, select a Clearing Product to
   prefill the product on the clearing expense.
3. Submit, approve, and post the advance.
4. Register the payment to the employee.
5. The paid advance shows its Remaining to Clear amount.

**Clear Advance**

You can create a clearing in two ways:

1. From an advance:

   - Open a paid advance with a Remaining to Clear amount.
   - Click Clear Advance. A new expense opens with the employee and
     advance prefilled. The Clearing Product is also prefilled when
     configured.
   - Complete, submit, and approve the expense.

2. From the clearing menu:

   - Go to Expenses > My Expenses > My Clearings and create an expense.
   - Select the advance in Clear Advance.
   - Complete, submit, and approve the expense.

Post Journal Entries and select a Miscellaneous journal in the Post
Expenses wizard. Normal expenses and advance clearings must be posted
separately.

Note:

- If the clearing amount is less than or equal to the advance, the
  clearing is set to Paid after posting.
- If the clearing amount exceeds the advance, the clearing shows Amount
  to Pay. Click Pay and register the difference to set the clearing to
  Paid.

**Return Advance**

1. Open a paid advance with a Remaining to Clear amount.
2. Click Return Advance to open the Register Payment wizard.
3. Enter an amount that does not exceed Remaining to Clear and click
   Create Payment.
4. The inbound payment is linked to the advance and is available from
   the Return smart button.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/hr-expense/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/hr-expense/issues/new?body=module:%20hr_expense_advance_clearing%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
-------

* Ecosoft

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

- Kitti Upariphutthiphong <kittiu@ecosoft.co.th>
- Tharathip Chaweewongphan <tharathipc@ecosoft.co.th>
- Saran Lim. <saranl@ecosoft.co.th>

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-kittiu| image:: https://github.com/kittiu.png?size=40px
    :target: https://github.com/kittiu
    :alt: kittiu
.. |maintainer-Saran440| image:: https://github.com/Saran440.png?size=40px
    :target: https://github.com/Saran440
    :alt: Saran440

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

|maintainer-kittiu| |maintainer-Saran440| 

This module is part of the `OCA/hr-expense <https://github.com/OCA/hr-expense/tree/19.0/hr_expense_advance_clearing>`_ project on GitHub.

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