Metadata-Version: 2.1
Name: odoo-addon-hr_expense_advance_clearing
Version: 19.0.1.0.1.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:a2869223eeaff945a5187707966a03b4254376cf3327751a238d12b348dda5d7
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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
=============

**Employee advance account**

1. Using a user account with **Show Full Accounting Features**, open
   **Products** and search for **Employee Advance**. The module creates
   this product automatically.
2. Open the product and go to **Accounting > Expense Account**. Select
   the account your company uses for employee advances.
3. Check that the account is of type **Current Assets** and has **Allow
   Reconciliation** enabled. If you need to create the account, use
   these settings.

The advance account tracks the amount the employee still needs to
account for or return. When posting the clearing expense, Odoo uses the
account shown on the expense. If that field is empty, Odoo uses the
expense account of the product (or its category), then the default
expense account of the company.

**Clearing journal**

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

Odoo proposes this journal when you post an expense against an advance.
You can select another **Miscellaneous** journal in the **Post
Expenses** wizard. If no default is configured, the first journal you
select there becomes the default. The initial advance is posted in a
**Purchase** journal.

Usage
=====

**Create and pay an employee advance**

1. Go to **Expenses > My Expenses > My Advances** and click **New**.
2. Check the employee, enter the advance amount and leave **Paid By**
   set to **Employee (to reimburse)**. If you already know the expense
   category the employee will use, select it in **Clearing Product**.
   Odoo will fill in that category when you create the clearing expense.
3. Submit the advance for approval. Once approved, click **Post Journal
   Entries**, select a journal of type **Purchase** and confirm.
4. Odoo opens the receipt and the advance is now **Posted**. On the
   receipt, **Amount Due** shows how much the company owes the employee.
   Click **Pay** and register the payment in the bank or cash journal
   used to pay the employee.
5. Return to **My Advances** and check that the advance is **Paid**. If
   it shows **In Payment** (when the Accounting app is installed),
   reconcile the payment with the bank transaction first. **Clear
   Advance** and **Return Advance** are only available once the advance
   is **Paid**.

For example, after the company pays a 100 EUR advance, **Remaining to
Clear** on the advance still shows 100 EUR. The employee has received
the money and can now submit expenses against it or return the unused
amount.

**Clear a paid advance**

You can create the clearing expense from either menu:

- **From My Advances:** Open a **Paid** advance with a positive
  **Remaining to Clear** balance and click **Clear Advance**. Odoo opens
  a new expense with the employee and the advance already selected. If
  you set a **Clearing Product** on the advance, Odoo also fills in the
  expense category.
- **From My Clearings:** Go to **Expenses > My Expenses > My Clearings**
  and click **New**. Select the employee, then select their advance in
  the **Clear Advance** field.

Once the expense is open:

1. Check the expense category and enter the full amount the employee
   spent. For example, if the employee received 100 EUR and spent 130
   EUR, enter **130 EUR**.
2. Submit the expense for approval. Once approved, click **Post Journal
   Entries**.
3. In the **Post Expenses** wizard, confirm the proposed
   **Miscellaneous** journal or select another journal of that type.
   Post regular expenses and advance clearings separately.
4. Check the clearing expense to see whether the employee is owed a
   payment. Open the original advance to check **Remaining to Clear**.

Examples for a paid advance of 100 EUR:

+----------------+--------------------------+--------------------------+
| Expense amount | Result after posting     | Next step                |
+================+==========================+==========================+
| 100 EUR        | The clearing expense is  | The advance is fully     |
|                | **Paid** and **Remaining | cleared.                 |
|                | to Clear** on the        |                          |
|                | advance is zero.         |                          |
+----------------+--------------------------+--------------------------+
| 130 EUR        | **Remaining to Clear**   | Click **Pay** on the     |
|                | is zero. The clearing    | clearing expense and     |
|                | expense shows **Amount   | register the 30 EUR      |
|                | to Pay** of 30 EUR.      | payment to the employee. |
|                |                          | The clearing expense     |
|                |                          | then shows **Paid**.     |
+----------------+--------------------------+--------------------------+
| 70 EUR         | The clearing expense is  | When the employee        |
|                | **Paid**. **Remaining to | returns the 30 EUR, open |
|                | Clear** on the advance   | the original advance and |
|                | is 30 EUR.               | click **Return           |
|                |                          | Advance**.               |
+----------------+--------------------------+--------------------------+

**Record money returned by the employee**

1. When the employee returns unused funds, go to **My Advances** and
   open the original advance. It must be **Paid** and have a positive
   **Remaining to Clear** balance.
2. Click **Return Advance**. This button is only available to users with
   **Show Full Accounting Features**. In the payment wizard, select the
   bank or cash journal where the company received the money.
3. Enter the amount received and click **Create Payment**. The amount
   cannot exceed **Remaining to Clear**.
4. On the advance, click the **Return** smart button to view the
   incoming payment. After the employee returns the full outstanding
   amount, **Remaining to Clear** is zero.

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.
