==========================
Pos Loyalty Redeem Payment
==========================

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

.. |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-LGPL--3-blue.png
    :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
    :alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github
    :target: https://github.com/OCA/pos/tree/16.0/pos_loyalty_redeem_payment
    :alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_loyalty_redeem_payment
    :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/pos&target_branch=16.0
    :alt: Try me on Runboat

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

This module allows gift cards to be applied as a payment method when customer
uses it. Provides the necessary flexibility to accomplish with `European
Regulations <https://eur-lex.europa.eu/eli/dir/2016/1065/oj>`_ (Council
Directive (EU) 2016/1065 of 27 June 2016 amending Directive 2006/112/EC).

**Table of contents**

.. contents::
   :local:

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

To allow a loyalty program of type *Gift Card* to be redeemed as a payment
method, first select *Payment Method* as *Redemption Method*:

.. image:: https://raw.githubusercontent.com/OCA/pos/16.0/pos_loyalty_redeem_payment/static/img/redeemMethod.png
   :width: 300
   :alt: Configure a loyalty program to be redeemed as payments

Then, choose those *POS Payment Methods* that will be used to redeem cards:

.. image:: https://raw.githubusercontent.com/OCA/pos/16.0/pos_loyalty_redeem_payment/static/img/paymentMethod.png
   :width: 300
   :alt: Select payment methods to be used for card redeeming

On selected payment methods, field *Used for loyalty program* has to be checked:

.. image:: https://raw.githubusercontent.com/OCA/pos/16.0/pos_loyalty_redeem_payment/static/img/paymentMethodCheck.png
   :width: 300
   :alt: Payment method used for loyalty program

Usage
=====

In the payment screen of PoS interface, after selecting configured payment
method a popup requests loyalty card code:


.. image:: https://raw.githubusercontent.com/OCA/pos/16.0/pos_loyalty_redeem_payment/static/img/usage_1_code_popup.png
   :width: 300
   :alt: config

After entering card code, a new popup asks user to introduce amount to redeem:

.. image:: https://raw.githubusercontent.com/OCA/pos/16.0/pos_loyalty_redeem_payment/static/img/usage_2_amount_popup.png
   :width: 300
   :alt: config

A new payment line is added with selected amount:

.. image:: https://raw.githubusercontent.com/OCA/pos/16.0/pos_loyalty_redeem_payment/static/img/usage_3_payment_line.png
   :width: 300
   :alt: config

After order is completed, loyalty card report is downloaded with updated
points.

Known issues / Roadmap
======================

* Make popup used for redeeming compatible with Mozilla Firefox. Currently CSS
  rules are not applied correctly to it with this navigator

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/pos/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/pos/issues/new?body=module:%20pos_loyalty_redeem_payment%0Aversion:%2016.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
~~~~~~~

* FactorLibre

Contributors
~~~~~~~~~~~~

* Juan Carlos Bonilla <juancarlos.bonilla@factorlibre.com>
* Pablo De Andrés <pablo.deandres@factorlibre.com>
* Daniel Duque <daniel.duque@factorlibre.com>

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.

This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/16.0/pos_loyalty_redeem_payment>`_ project on GitHub.

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