diff --git a/pos_limited_account_entry/README.rst b/pos_limited_account_entry/README.rst new file mode 100644 index 000000000..d5515cb0e --- /dev/null +++ b/pos_limited_account_entry/README.rst @@ -0,0 +1,28 @@ +===================================== +Reduced Accounting Entries In POS V10 +===================================== + +This module allow passing a single journal entry for POS transaction. + +Installation +============ + +Just select it from available modules to install it, there is no need to extra installations. + +Configuration +============= + +Nothing to configure. + +Features +======== + +* Allows recording payments as a single entry. +* Eliminates unnecessary return entry in pos. + +Credits +======= + +Cybrosys Technologies, odoo@cybrosys.com + + diff --git a/pos_limited_account_entry/__init__.py b/pos_limited_account_entry/__init__.py new file mode 100644 index 000000000..d14f2523f --- /dev/null +++ b/pos_limited_account_entry/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions() +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### +from . import models diff --git a/pos_limited_account_entry/__manifest__.py b/pos_limited_account_entry/__manifest__.py new file mode 100644 index 000000000..6e37aae78 --- /dev/null +++ b/pos_limited_account_entry/__manifest__.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions() +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### +{ + 'name': "Reduced Accounting Entries In POS", + 'version': '10.0.1.0.0', + 'summary': """Single Transaction Entry In Pos""", + 'description': """This module allows to record pos transaction as a single transaction""", + 'author': "Cybrosys Techno Solutions", + 'company': "Cybrosys Techno Solutions", + 'website': "https://www.cybrosys.com", + 'category': 'Point of Sale', + 'depends': ['base', 'point_of_sale'], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, +} diff --git a/pos_limited_account_entry/models/__init__.py b/pos_limited_account_entry/models/__init__.py new file mode 100644 index 000000000..39beeb1fc --- /dev/null +++ b/pos_limited_account_entry/models/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import pos_order diff --git a/pos_limited_account_entry/models/pos_order.py b/pos_limited_account_entry/models/pos_order.py new file mode 100644 index 000000000..dd2d73758 --- /dev/null +++ b/pos_limited_account_entry/models/pos_order.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- + +from odoo import models, api +from odoo.tools import float_is_zero + + +class PosReconciliation(models.Model): + _inherit = "pos.order" + + @api.model + def _process_order(self, pos_order): + prec_acc = self.env['decimal.precision'].precision_get('Account') + pos_session = self.env['pos.session'].browse(pos_order['pos_session_id']) + if pos_session.state == 'closing_control' or pos_session.state == 'closed': + pos_order['pos_session_id'] = self._get_valid_session(pos_order).id + order = self.create(self._order_fields(pos_order)) + journal_ids = set() + payment_sum = 0 + for payments in pos_order['statement_ids']: + if not float_is_zero(payments[2]['amount'], precision_digits=prec_acc): + payment_sum = payment_sum + payments[2]['amount'] + if payment_sum > pos_order['amount_total']: + payments[2]['amount'] = payments[2]['amount'] - pos_order['amount_return'] + order.add_payment(self._payment_fields(payments[2])) + journal_ids.add(payments[2]['journal_id']) + if pos_session.sequence_number <= pos_order['sequence_number']: + pos_session.write({'sequence_number': pos_order['sequence_number'] + 1}) + pos_session.refresh() + return order diff --git a/pos_limited_account_entry/static/description/banner.jpg b/pos_limited_account_entry/static/description/banner.jpg new file mode 100644 index 000000000..2231db050 Binary files /dev/null and b/pos_limited_account_entry/static/description/banner.jpg differ diff --git a/pos_limited_account_entry/static/description/cybro_logo.png b/pos_limited_account_entry/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/pos_limited_account_entry/static/description/cybro_logo.png differ diff --git a/pos_limited_account_entry/static/description/icon.png b/pos_limited_account_entry/static/description/icon.png new file mode 100644 index 000000000..f549f54b6 Binary files /dev/null and b/pos_limited_account_entry/static/description/icon.png differ diff --git a/pos_limited_account_entry/static/description/index.html b/pos_limited_account_entry/static/description/index.html new file mode 100644 index 000000000..eb045419f --- /dev/null +++ b/pos_limited_account_entry/static/description/index.html @@ -0,0 +1,94 @@ +
+
+

Reduced Accounting Entries In POS

+

Allow passing a single journal entry for POS transaction.

+

Cybrosys Technologies

+
+
+ +
+
+
+

Overview

+

+ Currently payments in POS with return amount will create two accounting entries. This module eliminates unnecessary return entry in pos. +

+
+
+
+ + +
+
+
+

Pos Payment

+

POS records every payment with extra amount as return amount.

+
+
+ +
+
+
+
+
+
+
+
+

This module allows recording payments as a single entry.

+
+
+ +
+
+
+
+ +
+
+
+
+
+ +
+
+
+

Currently in Odoo POS, return amount creates an extra accounting entry.

+
+
+ +
+
+
+
+ +
+
+
+
+
+ +
+

Need Any Help?

+ +
diff --git a/pos_limited_account_entry/static/description/pos_limit_1.png b/pos_limited_account_entry/static/description/pos_limit_1.png new file mode 100644 index 000000000..dfe38382b Binary files /dev/null and b/pos_limited_account_entry/static/description/pos_limit_1.png differ diff --git a/pos_limited_account_entry/static/description/pos_limit_2.png b/pos_limited_account_entry/static/description/pos_limit_2.png new file mode 100644 index 000000000..8508e27cc Binary files /dev/null and b/pos_limited_account_entry/static/description/pos_limit_2.png differ diff --git a/pos_limited_account_entry/static/description/pos_limit_3.png b/pos_limited_account_entry/static/description/pos_limit_3.png new file mode 100644 index 000000000..754de48c2 Binary files /dev/null and b/pos_limited_account_entry/static/description/pos_limit_3.png differ diff --git a/pos_limited_account_entry/static/description/pos_limit_4.png b/pos_limited_account_entry/static/description/pos_limit_4.png new file mode 100644 index 000000000..6df693103 Binary files /dev/null and b/pos_limited_account_entry/static/description/pos_limit_4.png differ diff --git a/pos_limited_account_entry/static/description/pos_limit_5.png b/pos_limited_account_entry/static/description/pos_limit_5.png new file mode 100644 index 000000000..5d39acd8f Binary files /dev/null and b/pos_limited_account_entry/static/description/pos_limit_5.png differ diff --git a/pos_quick_payment/__init__.py b/pos_quick_payment/__init__.py index a458e962f..69bd536dc 100644 --- a/pos_quick_payment/__init__.py +++ b/pos_quick_payment/__init__.py @@ -2,7 +2,7 @@ ################################################################################### # # Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Copyright (C) 2017-TODAY Cybrosys Technologies(). # Author: Aswani PC() # # This program is free software: you can modify @@ -16,7 +16,7 @@ # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# along with this program. If not, see . # ################################################################################### from . import models diff --git a/pos_quick_payment/__manifest__.py b/pos_quick_payment/__manifest__.py index 718422c55..0b1981cea 100644 --- a/pos_quick_payment/__manifest__.py +++ b/pos_quick_payment/__manifest__.py @@ -2,7 +2,7 @@ ################################################################################### # # Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Copyright (C) 2017-TODAY Cybrosys Technologies(). # Author: Aswani PC() # # This program is free software: you can modify @@ -16,7 +16,7 @@ # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# along with this program. If not, see . # ################################################################################### { diff --git a/pos_quick_payment/static/description/quick_payment_2.png b/pos_quick_payment/static/description/quick_payment_2.png index 5328df6f8..1091609d7 100644 Binary files a/pos_quick_payment/static/description/quick_payment_2.png and b/pos_quick_payment/static/description/quick_payment_2.png differ diff --git a/vouchers_pos/__manifest__.py b/vouchers_pos/__manifest__.py index 2d25d95b1..4dae8fe89 100644 --- a/vouchers_pos/__manifest__.py +++ b/vouchers_pos/__manifest__.py @@ -24,7 +24,7 @@ 'name': 'Coupons & Vouchers in Point of Sale', 'version': '10.0.1.0', 'category': 'Point of Sale', - 'summary': 'Manage Point of Sale Vouchers & Coupon Codes', + 'summary': 'Manage POS Vouchers & Coupon Codes', 'author': 'Cybrosys Techno Solutions', 'website': "https://www.cybrosys.com", 'company': 'Cybrosys Techno Solutions', diff --git a/vouchers_pos/__manifest__.py~ b/vouchers_pos/__manifest__.py~ new file mode 100644 index 000000000..2d25d95b1 --- /dev/null +++ b/vouchers_pos/__manifest__.py~ @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Linto C T() +# you can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +{ + 'name': 'Coupons & Vouchers in Point of Sale', + 'version': '10.0.1.0', + 'category': 'Point of Sale', + 'summary': 'Manage Point of Sale Vouchers & Coupon Codes', + 'author': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'company': 'Cybrosys Techno Solutions', + 'depends': ['point_of_sale'], + 'data': [ + 'data/product_data.xml', + 'views/gift_voucher.xml', + 'views/applied_coupons.xml', + 'views/pos_template.xml', + 'security/ir.model.access.csv', + ], + 'qweb': [ + 'static/src/xml/*.xml'], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'application': False, + 'auto_install': False, +}