Skip to content

Commit

Permalink
✨ Support different Credit Accounts (#702)
Browse files Browse the repository at this point in the history
(e.g. internal for employees and usual for customers)

Other updates are:

+- **ADD:** Cash out feature
+- **ADD:** Multiple debit credit accounts
+- **ADD:** Smart button with debts/credits on a customer view
+- **ADD:** Credits via discount
+- **FIX:** Debt history for Chinese localization
+- **FIX:** Error when user doesn't have timezone
+- **FIX:** user_id was always replaced to Administrator in pos.order
+- **IMP:** Updating debts/credits data for partners in opened orders after restoring the internet connection
+- **ADD:** Option 'Autopay' for debt journals
  • Loading branch information
Ivan Yelizariev authored Jul 18, 2018
1 parent 5776873 commit 6f491c5
Show file tree
Hide file tree
Showing 81 changed files with 4,723 additions and 686 deletions.
16 changes: 15 additions & 1 deletion pos_debt_notebook/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,26 @@ Installation \ Deinstallation
POS config would not be changed.
* Multicompany mode is supported

Roadmap
=======

* TODO. New option for **Zero transactions** feature: allow to create extra order line with negative amount instead of applying discounts.

* It creates extra record in accounting system (pos.order.line). It can be used as a backup for *Manual Updates*
* It works with following problem case:

In case of purchasing products with taxes not included in the price, such journals cannot be used along with normal payments


Credits
=======

Contributors
------------
* krotov@it-projects.info
* `Ivan Yelizariev <https://it-projects.info/team/yelizariev>`__
* `Stanislav Krotov <https://it-projects.info/team/ufaks>`__
* `Dinar Gabbasov <https://it-projects.info/team/GabbasovDinar>`__
* `Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>`__

Sponsors
--------
Expand Down
2 changes: 2 additions & 0 deletions pos_debt_notebook/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from . import models
from . import report
from . import wizard
Expand Down
17 changes: 15 additions & 2 deletions pos_debt_notebook/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
# -*- coding: utf-8 -*-
# Copyright 2014-2018 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
# Copyright 2015 Bassirou Ndaw <https://github.com/bassn>
# Copyright 2015 Alexis de Lattre <https://github.com/alexis-via>
# Copyright 2016-2017 Stanislav Krotov <https://it-projects.info/team/ufaks>
# Copyright 2017 Ilmir Karamov <https://it-projects.info/team/ilmir-k>
# Copyright 2017 Artyom Losev
# Copyright 2017 Lilia Salihova
# Copyright 2017-2018 Gabbasov Dinar <https://it-projects.info/team/GabbasovDinar>
# Copyright 2018 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

{
'name': 'POS Debt & Credit notebook',
'summary': 'Comfortable sales for your regular customers. Debt payment method for POS',
'category': 'Point Of Sale',
'live_test_url': 'http://apps.it-projects.info/shop/product/pos-debt-notebook?version=10.0',
"images": ['images/debt_notebook.png'],
'version': '4.4.3',
'version': '10.0.5.0.0',

'author': 'IT-Projects LLC, Ivan Yelizariev',
"support": "apps@it-projects.info",
Expand All @@ -20,9 +31,10 @@
'base_groupby_extra',
],
'data': [
'security/pos_debt_notebook_security.xml',
'data/product.xml',
'views.xml',
'views/pos_debt_report_view.xml',
'views.xml',
'views/pos_credit_update.xml',
'wizard/pos_credit_invoices_views.xml',
'data.xml',
Expand All @@ -32,6 +44,7 @@
'static/src/xml/pos.xml',
],
"demo": [
'data/demo.xml',
],
'installable': True,
'uninstall_hook': 'pre_uninstall',
Expand Down
5 changes: 5 additions & 0 deletions pos_debt_notebook/data.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!--Copyright 2014-2016 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
Copyright 2015 Alexis de Lattre <https://github.com/alexis-via>
Copyright 2016 Stanislav Krotov <https://it-projects.info/team/ufaks>
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). -->

<openerp>
<data>

Expand Down
23 changes: 23 additions & 0 deletions pos_debt_notebook/data/demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<!--Copyright 2018 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). -->

<openerp>
<data>

<!--Set field debt to 'credit' in model pos.config.settings via get_default_debt_type-->
<function model="ir.config_parameter" name="set_param" eval="('pos_debt_notebook.debt_type', 'credit', ['base.group_system'])" />

<record id="product_credit_product" model="product.product">
<field name="name">Credits top-up</field>
<field name="default_code">POS-DEBT</field>
<field name="sale_ok" eval="True"/>
<field name="available_in_pos" eval="True"/>
<field name="list_price">1</field>
<field name="type">service</field>
<field name="uom_id" ref="product.product_uom_unit"/>
<field name="description">This is a product for purchasing "Credits".</field>
</record>

</data>
</openerp>
3 changes: 3 additions & 0 deletions pos_debt_notebook/data/product.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?xml version="1.0"?>
<!--Copyright 2016 Stanislav Krotov <https://it-projects.info/team/ufaks>
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). -->

<openerp>
<data noupdate="1">

Expand Down
21 changes: 17 additions & 4 deletions pos_debt_notebook/doc/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
`5.0.0`
-------

- **ADD:** Cash out feature
- **ADD:** Multiple debit credit accounts
- **ADD:** Smart button with debts/credits on a customer view
- **ADD:** Credits via discount
- **FIX:** Debt history for Chinese localization
- **FIX:** Error when user doesn't have timezone
- **FIX:** user_id was always replaced to Administrator in pos.order
- **IMP:** Updating debts/credits data for partners in opened orders after restoring the internet connection
- **ADD:** Option 'Autopay' for debt journals

`4.4.3`
-------

**FIX:** Compatibility with Chinese localization
- **FIX:** Compatibility with Chinese localization

`4.4.2`
-------

**ADD:** Compatibility with Pos Mobile
- **ADD:** Compatibility with Pos Mobile

`4.4.1`
-------

**FIX:** Extra Debt payment lines when using "Pay Full Debt" method.
**FIX:** Incorrect order validation.
- **FIX:** Extra Debt payment lines when using "Pay Full Debt" method.
- **FIX:** Incorrect order validation.

`4.4.0`
-------
Expand Down
50 changes: 49 additions & 1 deletion pos_debt_notebook/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,41 @@ Credit Products
* Instead of using Debt Journal, customer can purchase *Credits* via *Credit Products*
* When you create *Credit product*, don't forget to set **Credit Product** field
* *Credit products* can be sold via POS and via invoices (including eCommerce). The later requires `another module <https://apps.odoo.com/apps/modules/10.0/pos_debt_notebook_sync/>`_ to notify POS about eCommerce sales, otherwise POS will get updates about invoices only after POS reloading.
* Note. Taxes on purchasing *Credit Products* are not supported. Taxes are applied on purchasings normal products.
* We recommend a module that force user to login before making purchase on website, e.g. `website_sale_require_login <https://www.odoo.com/apps/modules/10.0/website_sale_require_login/>`_
* Note. Taxes on purchasing *Credit Products* are supported for purchasing via invoices (including eCommerce), but not for sales via POS. For taxed Credit Products in invoices only untaxed amount is added to credit amount.

Allow to cash out credits
-------------------------

* Go to ``Point of sale >> Configuration >> Payment Methods``

* Open journal form
* On ``Pont of Sale`` tab check the box ``Allow to cash out credits``

RESULT: By using journals with this option partners will be able to exchange their credits to cash in POS


Autopay credits
---------------

Journals with turned on option *Autopay* will be automatically added to payment lines if credit balance for the journal is positive.
If added payment lines fully cover the payment amount you will see additional buttons for payment proceeding

* *Validate* button on payment screen
* *Next* button on the receipt screen

In order to simplify and speed up a payment proceeding, those buttons located in the place of *Payment* button in pos.
After a successfully proceeded autopay a thumb up is shown on the screen.

Zero transactions
-----------------

* Go to ``Point of sale >> Configuration >> Payment Methods``

* Open journal form
* On ``Pont of Sale`` tab check the box ``Zero transactions``

RESULT: Discount the order (mostly 100%) when a user pay via such type of journal in POS

Manual Credit Updates
---------------------
Expand All @@ -51,6 +85,20 @@ To use it
* open ``Point of sale >> Configuration >> Manual Credit Updates``
* create record or import csv, Excel file

Zero transactions
-----------------

A special type of debt journals. Applies discounts corresponding to amount of payment. It creates *Manual Credit Updates* instead of accounting transactions. It can be used for bonuses, volunteer rewards and other cases when you don't work with real money. Notes:

* For such journals option **Allow to cash out credits** cannot be activated
* In case of purchasing products with taxes not included in the price, such journals cannot be used along with normal payments

To use it

* Open ``Point of sale >> Configuration >> Payment Methods``
* Create or select a required record
* Turn on the **Zero transactions** option

Handling employees
------------------

Expand Down
Loading

0 comments on commit 6f491c5

Please sign in to comment.