| @ -0,0 +1,47 @@ | |||||
|  | .. image:: https://img.shields.io/badge/licence-LGPL--3-green.svg | ||||
|  |     :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html | ||||
|  |     :alt: License: LGPL-3 | ||||
|  | 
 | ||||
|  | POS Customer Wallet Management | ||||
|  | ============================== | ||||
|  | This module helps to manage each customer wallet in pos | ||||
|  | 
 | ||||
|  | Installation | ||||
|  | ============ | ||||
|  | - www.odoo.com/documentation/16.0/setup/install.html | ||||
|  | - Install our custom addon | ||||
|  | 
 | ||||
|  | License | ||||
|  | ------- | ||||
|  | Lesser General Public License, Version 3 (LGPL-3). | ||||
|  | (https://www.gnu.org/licenses/lgpl-3.0-standalone.html) | ||||
|  | 
 | ||||
|  | Company | ||||
|  | ------- | ||||
|  | * `Cybrosys Techno Solutions <https://cybrosys.com/>`__ | ||||
|  | 
 | ||||
|  | Credits | ||||
|  | ------- | ||||
|  | * Developer: (v16) Sruthi Pavithran, | ||||
|  | * Contact: odoo@cybrosys.com | ||||
|  | 
 | ||||
|  | Contacts | ||||
|  | -------- | ||||
|  | * Mail Contact : odoo@cybrosys.com | ||||
|  | 
 | ||||
|  | Bug Tracker | ||||
|  | ----------- | ||||
|  | Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. | ||||
|  | 
 | ||||
|  | Maintainer | ||||
|  | ========== | ||||
|  | .. image:: https://cybrosys.com/images/logo.png | ||||
|  |    :target: https://cybrosys.com | ||||
|  | 
 | ||||
|  | This module is maintained by Cybrosys Technologies. | ||||
|  | 
 | ||||
|  | For support and more information, please visit `Our Website <https://cybrosys.com/>`__ | ||||
|  | 
 | ||||
|  | Further information | ||||
|  | =================== | ||||
|  | HTML Description: `<static/description/index.html>`__ | ||||
| @ -0,0 +1,23 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################# | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Sruthi Pavithran (odoo@cybrosys.com) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU LESSER | ||||
|  | #    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | ||||
|  | # | ||||
|  | #    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 | ||||
|  | #    (LGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################# | ||||
|  | from . import models | ||||
|  | from . import wizard | ||||
| @ -0,0 +1,57 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################# | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Sruthi Pavithran (odoo@cybrosys.com) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU LESSER | ||||
|  | #    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | ||||
|  | # | ||||
|  | #    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 | ||||
|  | #    (LGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################# | ||||
|  | { | ||||
|  |     'name': 'POS Customer Wallet Management', | ||||
|  |     'version': '16.0.1.0.0', | ||||
|  |     'category': 'Point of Sale', | ||||
|  |     'summary': 'This Module Helps to Manage Customer Wallet in POS.', | ||||
|  |     'description': """This Module Helps to Manage Customer Wallet in POS.""", | ||||
|  |     'author': 'Cybrosys Techno Solutions', | ||||
|  |     'company': 'Cybrosys Techno Solutions', | ||||
|  |     'maintainer': 'Cybrosys Techno Solutions', | ||||
|  |     'website': 'https://www.cybrosys.com', | ||||
|  |     'depends': ['base', 'contacts', 'account', 'point_of_sale'], | ||||
|  |     'data': [ | ||||
|  |         'security/ir.model.access.csv', | ||||
|  |         'data/ir_sequence_data.xml', | ||||
|  |         'views/res_partner_views.xml', | ||||
|  |         'views/wallet_transaction_views.xml', | ||||
|  |         'views/account_journal_views.xml', | ||||
|  |         'views/pos_payment_method_views.xml', | ||||
|  |         'wizard/recharge_wallet_views.xml' | ||||
|  |     ], | ||||
|  |     'assets': { | ||||
|  |         'point_of_sale.assets': [ | ||||
|  |          'pos_customer_wallet_management/static/src/js/customerListScreen.js', | ||||
|  |          'pos_customer_wallet_management/static/src/js/payment_method.js', | ||||
|  |          'pos_customer_wallet_management/static/src/js/wallet_recharge.js', | ||||
|  |          'pos_customer_wallet_management/static/src/xml/balance_templates.xml', | ||||
|  |          'pos_customer_wallet_management/static/src/xml/partner_templates.xml', | ||||
|  |          'pos_customer_wallet_management/static/src/xml/wallet_templates.xml', | ||||
|  |         ], | ||||
|  |     }, | ||||
|  |     'images': ['static/description/banner.jpg'], | ||||
|  |     'license': 'LGPL-3', | ||||
|  |     'installable': True, | ||||
|  |     'auto_install': False, | ||||
|  |     'application': False, | ||||
|  | } | ||||
| @ -0,0 +1,13 @@ | |||||
|  | <?xml version="1.0" encoding="utf-8"?> | ||||
|  | <odoo> | ||||
|  | <!--    Sequence creation for wallet --> | ||||
|  |     <data noupdate="1"> | ||||
|  |         <record id="seq_wallet_transaction" model="ir.sequence"> | ||||
|  |             <field name="name">Wallet Transaction</field> | ||||
|  |             <field name="code">wallet.transaction</field> | ||||
|  |             <field name="prefix">WT</field> | ||||
|  |             <field name="padding">3</field> | ||||
|  |             <field name="number_next">1</field> | ||||
|  |         </record> | ||||
|  |     </data> | ||||
|  | </odoo> | ||||
| @ -0,0 +1,6 @@ | |||||
|  | ## Module <pos_customer_wallet_management> | ||||
|  | 
 | ||||
|  | #### 18.01.2024 | ||||
|  | #### Version 16.0.1.0.0 | ||||
|  | #### ADD | ||||
|  | - Initial Commit for POS Customer Wallet Management | ||||
| @ -0,0 +1,26 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################# | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Sruthi Pavithran (odoo@cybrosys.com) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU LESSER | ||||
|  | #    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | ||||
|  | # | ||||
|  | #    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 | ||||
|  | #    (LGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################# | ||||
|  | from . import account_journal | ||||
|  | from . import pos_payment_method | ||||
|  | from . import pos_session | ||||
|  | from . import res_partner | ||||
|  | from . import wallet_transaction | ||||
| @ -0,0 +1,30 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################# | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Sruthi Pavithran (odoo@cybrosys.com) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU LESSER | ||||
|  | #    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | ||||
|  | # | ||||
|  | #    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 | ||||
|  | #    (LGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################# | ||||
|  | from odoo import fields, models | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | class AccountJournal(models.Model): | ||||
|  |     """Adding fields to account journal""" | ||||
|  |     _inherit = "account.journal" | ||||
|  | 
 | ||||
|  |     wallet_journal = fields.Boolean(string="Wallet Journal", | ||||
|  |                                     help="Journal for wallet") | ||||
| @ -0,0 +1,31 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################# | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Sruthi Pavithran (odoo@cybrosys.com) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU LESSER | ||||
|  | #    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | ||||
|  | # | ||||
|  | #    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 | ||||
|  | #    (LGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################# | ||||
|  | from odoo import fields, models | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | class PosPaymentMethod(models.Model): | ||||
|  |     """Adding fields to pos payment method""" | ||||
|  |     _inherit = "pos.payment.method" | ||||
|  | 
 | ||||
|  |     wallet_journal = fields.Boolean(related="journal_id.wallet_journal", | ||||
|  |                                     string="Wallet Journal", | ||||
|  |                                     help="Journal for wallet") | ||||
| @ -0,0 +1,61 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################# | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Sruthi Pavithran (odoo@cybrosys.com) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU LESSER | ||||
|  | #    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | ||||
|  | # | ||||
|  | #    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 | ||||
|  | #    (LGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################# | ||||
|  | from odoo import models | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | class PosSession(models.Model): | ||||
|  |     """Class to load models in to pos session""" | ||||
|  |     _inherit = "pos.session" | ||||
|  | 
 | ||||
|  |     def _pos_ui_models_to_load(self): | ||||
|  |         """Load models to pos session""" | ||||
|  |         result = super()._pos_ui_models_to_load() | ||||
|  |         result += ['account.journal', 'res.partner', 'pos.payment.method'] | ||||
|  |         return result | ||||
|  | 
 | ||||
|  |     def _loader_params_account_journal(self): | ||||
|  |         """Load account journal parameters""" | ||||
|  |         return { | ||||
|  |             'search_params': { | ||||
|  |                 'fields': [ | ||||
|  |                     'name', 'type', 'code', 'default_account_id', | ||||
|  |                     'wallet_journal' | ||||
|  |                 ] | ||||
|  |             } | ||||
|  |         } | ||||
|  | 
 | ||||
|  |     def _get_pos_ui_account_journal(self, params): | ||||
|  |         """Get account journal parameter""" | ||||
|  |         return self.env['account.journal'].search_read( | ||||
|  |             **params['search_params']) | ||||
|  | 
 | ||||
|  |     def _loader_params_res_partner(self): | ||||
|  |         """Load res.partner parameters""" | ||||
|  |         result = super()._loader_params_res_partner() | ||||
|  |         result['search_params']['fields'].extend(['wallet_balance']) | ||||
|  |         return result | ||||
|  | 
 | ||||
|  |     def _loader_params_pos_payment_method(self): | ||||
|  |         """Load payment method parameters""" | ||||
|  |         result = super()._loader_params_pos_payment_method() | ||||
|  |         result['search_params']['fields'].extend(['wallet_journal']) | ||||
|  |         return result | ||||
| @ -0,0 +1,76 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################# | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Sruthi Pavithran (odoo@cybrosys.com) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU LESSER | ||||
|  | #    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | ||||
|  | # | ||||
|  | #    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 | ||||
|  | #    (LGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################# | ||||
|  | from odoo import api, fields, models | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | class ResPartner(models.Model): | ||||
|  |     """Add field into res partner""" | ||||
|  |     _inherit = 'res.partner' | ||||
|  | 
 | ||||
|  |     wallet_balance = fields.Float(string="Wallet Balance", | ||||
|  |                                   help="Wallet balance of each employee") | ||||
|  |     wallet_count = fields.Integer(string="Wallet", | ||||
|  |                                   compute='_compute_wallet_count', | ||||
|  |                                   help="Count of each wallet recharge") | ||||
|  | 
 | ||||
|  |     def action_recharge(self): | ||||
|  |         """Open wizard for wallet recharge""" | ||||
|  |         return { | ||||
|  |             'name': 'Wallet Recharge', | ||||
|  |             'type': 'ir.actions.act_window', | ||||
|  |             'res_model': 'recharge.wallet', | ||||
|  |             'view_mode': 'form', | ||||
|  |             'view_type': 'form', | ||||
|  |             'target': 'new', | ||||
|  |         } | ||||
|  | 
 | ||||
|  |     def action_number_of_wallet(self): | ||||
|  |         """Wallet balance tree view""" | ||||
|  |         self.ensure_one() | ||||
|  |         return { | ||||
|  |             'type': 'ir.actions.act_window', | ||||
|  |             'name': 'Wallet', | ||||
|  |             'view_mode': 'tree', | ||||
|  |             'res_model': 'wallet.transaction', | ||||
|  |             'domain': [('customer', '=', self.name)], | ||||
|  |             'context': "{'create': False}" | ||||
|  |         } | ||||
|  | 
 | ||||
|  |     def _compute_wallet_count(self): | ||||
|  |         """Count of wallet balance""" | ||||
|  |         for record in self: | ||||
|  |             record.wallet_count = self.env['wallet.transaction'].search_count( | ||||
|  |                 [('customer', '=', self.name)]) | ||||
|  | 
 | ||||
|  |     @api.model | ||||
|  |     def write_value(self, balance, order, session, price, currency_id): | ||||
|  |         """Write remaining balance into customer wallet balance""" | ||||
|  |         self.env['res.partner'].browse(order['id']).write({ | ||||
|  |             'wallet_balance': balance | ||||
|  |         }) | ||||
|  |         self.env['wallet.transaction'].create({ | ||||
|  |             'type': "Debit", | ||||
|  |             'customer': order['name'], | ||||
|  |             'amount': price, | ||||
|  |             'pos_order': session, | ||||
|  |             'currency': currency_id, | ||||
|  |         }) | ||||
| @ -0,0 +1,46 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################# | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Sruthi Pavithran (odoo@cybrosys.com) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU LESSER | ||||
|  | #    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | ||||
|  | # | ||||
|  | #    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 | ||||
|  | #    (LGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################# | ||||
|  | from odoo import api, fields, models | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | class WalletTransaction(models.Model): | ||||
|  |     """Adding wallet transaction fields""" | ||||
|  |     _name = 'wallet.transaction' | ||||
|  |     _description = "Create Wallet Transaction Details" | ||||
|  | 
 | ||||
|  |     name = fields.Char(string="Name", help="Sequence of wallet transaction") | ||||
|  |     type = fields.Char(string="Type", help="Type of wallet transaction") | ||||
|  |     customer = fields.Char(string="Customer", | ||||
|  |                            help="Customer of wallet transaction") | ||||
|  |     pos_order = fields.Char(string="POS Order", | ||||
|  |                             help="Order reference of wallet transaction") | ||||
|  |     amount = fields.Float(string="Amount", | ||||
|  |                           help="Amount of wallet transaction") | ||||
|  |     currency = fields.Char(string="Currency", | ||||
|  |                            help="Currency of wallet transaction") | ||||
|  | 
 | ||||
|  |     @api.model | ||||
|  |     def create(self, vals): | ||||
|  |         """Create sequence for wallet transaction""" | ||||
|  |         vals['name'] = self.env['ir.sequence'].next_by_code( | ||||
|  |             'wallet.transaction') | ||||
|  |         return super(WalletTransaction, self).create(vals) | ||||
| 
 | 
| After Width: | Height: | Size: 3.6 KiB | 
| After Width: | Height: | Size: 310 B | 
| After Width: | Height: | Size: 1.3 KiB | 
| After Width: | Height: | Size: 1.4 KiB | 
| After Width: | Height: | Size: 576 B | 
| After Width: | Height: | Size: 733 B | 
| After Width: | Height: | Size: 911 B | 
| After Width: | Height: | Size: 1.1 KiB | 
| After Width: | Height: | Size: 1.2 KiB | 
| After Width: | Height: | Size: 673 B | 
| After Width: | Height: | Size: 878 B | 
| After Width: | Height: | Size: 653 B | 
| After Width: | Height: | Size: 905 B | 
| After Width: | Height: | Size: 839 B | 
| After Width: | Height: | Size: 427 B | 
| After Width: | Height: | Size: 627 B | 
| After Width: | Height: | Size: 1.2 KiB | 
| After Width: | Height: | Size: 988 B | 
| After Width: | Height: | Size: 1.2 KiB | 
| After Width: | Height: | Size: 1.5 KiB | 
| After Width: | Height: | Size: 1.1 KiB | 
| After Width: | Height: | Size: 1.9 KiB | 
| After Width: | Height: | Size: 1.1 KiB | 
| After Width: | Height: | Size: 2.1 KiB | 
| After Width: | Height: | Size: 4.4 KiB | 
| After Width: | Height: | Size: 589 B | 
| After Width: | Height: | Size: 3.4 KiB | 
| After Width: | Height: | Size: 1.7 KiB | 
| After Width: | Height: | Size: 2.3 KiB | 
| After Width: | Height: | Size: 967 B | 
| After Width: | Height: | Size: 1.6 KiB | 
| After Width: | Height: | Size: 3.8 KiB | 
| After Width: | Height: | Size: 5.0 KiB | 
| After Width: | Height: | Size: 77 KiB | 
| After Width: | Height: | Size: 84 KiB | 
| After Width: | Height: | Size: 72 KiB | 
| After Width: | Height: | Size: 83 KiB | 
| After Width: | Height: | Size: 14 KiB | 
| After Width: | Height: | Size: 81 KiB | 
| After Width: | Height: | Size: 316 KiB | 
| After Width: | Height: | Size: 89 KiB | 
| After Width: | Height: | Size: 265 KiB | 
| After Width: | Height: | Size: 181 KiB | 
| After Width: | Height: | Size: 148 KiB | 
| After Width: | Height: | Size: 169 KiB | 
| After Width: | Height: | Size: 85 KiB | 
| After Width: | Height: | Size: 139 KiB | 
| After Width: | Height: | Size: 113 KiB | 
| After Width: | Height: | Size: 107 KiB | 
| After Width: | Height: | Size: 181 KiB | 
| After Width: | Height: | Size: 286 KiB | 
| After Width: | Height: | Size: 115 KiB | 
| After Width: | Height: | Size: 110 KiB | 
| After Width: | Height: | Size: 112 KiB | 
| After Width: | Height: | Size: 115 KiB | 
| After Width: | Height: | Size: 121 KiB | 
| After Width: | Height: | Size: 90 KiB | 
| After Width: | Height: | Size: 72 KiB | 
| After Width: | Height: | Size: 99 KiB | 
| After Width: | Height: | Size: 13 KiB | 
| @ -0,0 +1,634 @@ | |||||
|  | <div style="background-color: #714B67; height: 810px; width: 100%; padding: 15px; position: relative;"> | ||||
|  |     <!-- TITLE BAR --> | ||||
|  |     <div class="d-flex align-items-center justify-content-between" | ||||
|  |          style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;"> | ||||
|  |         <img src="assets/misc/cybrosys-logo.png" width="42" height="42" | ||||
|  |              style="width: 42px; height: 42px;"/> | ||||
|  |         <div> | ||||
|  |             <div | ||||
|  |                     style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" | ||||
|  |                     class="mr-2"> | ||||
|  |                 <i class="fa fa-check mr-1"></i>Community | ||||
|  |             </div> | ||||
|  |             <div | ||||
|  |                     style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" | ||||
|  |                     class="mr-2"> | ||||
|  |                 <i class="fa fa-check mr-1"></i>Enterprise | ||||
|  |             </div> | ||||
|  |             <div | ||||
|  |                     style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" | ||||
|  |                     class="mr-2"> | ||||
|  |                 <i class="fa fa-check mr-1"></i>Odoo.sh | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  |     <!-- END OF TITLE BAR --> | ||||
|  |     <div class="container"> | ||||
|  |         <div class="row"> | ||||
|  |             <div class="col-sm-12 col-md-12 col-lg-12"> | ||||
|  |                 <h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;"> | ||||
|  |                     POS Customer Wallet Management</h1> | ||||
|  |                 <p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;"> | ||||
|  |                     Manage Customer Wallet Management in POS</p> | ||||
|  |                 <!-- END OF APP HERO --> | ||||
|  |                         <img src="assets/screenshots/hero1.gif" class="img-responsive" | ||||
|  |                 style="width: 100%; margin-left: auto; margin-right: auto;" /> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | </div> | ||||
|  | 
 | ||||
|  | <!-- NAVIGATION SECTION --> | ||||
|  | <div class="d-flex align-items-center" | ||||
|  |      style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;"> | ||||
|  |     <div class="d-flex justify-content-center align-items-center mr-2" | ||||
|  |          style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | ||||
|  |         <img src="assets/misc/compass.png"/> | ||||
|  |     </div> | ||||
|  |     <h2 class="mt-2" | ||||
|  |         style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> | ||||
|  |         Explore This | ||||
|  |         Module</h2> | ||||
|  | </div> | ||||
|  | <div class="row my-4" style="font-family: 'Montserrat', sans-serif;"> | ||||
|  |     <div class="col-sm-12 col-md-6 my-3"> | ||||
|  |         <a href="#overview"> | ||||
|  |             <div class="d-flex justify-content-between align-items-center" | ||||
|  |                  style="background-color: #f5f5f5; padding: 30px; width: 100%;"> | ||||
|  |                 <div> | ||||
|  |                     <span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Overview</span> | ||||
|  |                     <span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33;  display: block;">Learn | ||||
|  |             more about this | ||||
|  |             module</span> | ||||
|  |                 </div> | ||||
|  |                 <img src="assets/misc/right-arrow.png" width="36" height="36"/> | ||||
|  |             </div> | ||||
|  |         </a> | ||||
|  |     </div> | ||||
|  |     <div class="col-sm-12 col-md-6 my-3"> | ||||
|  |         <a href="#features"> | ||||
|  |             <div class="d-flex justify-content-between align-items-center" | ||||
|  |                  style="background-color: #f5f5f5; padding: 30px; width: 100%;"> | ||||
|  |                 <div> | ||||
|  |                     <span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Features</span> | ||||
|  |                     <span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33;  display: block;">View | ||||
|  |             features of this | ||||
|  |             module</span> | ||||
|  |                 </div> | ||||
|  |                 <img src="assets/misc/right-arrow.png" width="36" height="36"/> | ||||
|  |             </div> | ||||
|  |         </a> | ||||
|  |     </div> | ||||
|  |     <div class="col-sm-12 col-md-6 my-3"> | ||||
|  |         <a href="#screenshots"> | ||||
|  |             <div class="d-flex justify-content-between align-items-center" | ||||
|  |                  style="background-color: #f5f5f5; padding: 30px; width: 100%;"> | ||||
|  |                 <div> | ||||
|  |                     <span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Screenshots</span> | ||||
|  |                     <span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33;  display: block;">View | ||||
|  |             screenshots for this | ||||
|  |             module</span> | ||||
|  |                 </div> | ||||
|  |                 <img src="assets/misc/right-arrow.png" width="36" height="36"/> | ||||
|  |             </div> | ||||
|  |         </a> | ||||
|  |     </div> | ||||
|  | </div> | ||||
|  | <!-- END OF NAVIGATION SECTION --> | ||||
|  | 
 | ||||
|  | <!-- OVERVIEW SECTION --> | ||||
|  | <div class="d-flex align-items-center" | ||||
|  |      style="border-bottom: 2px solid #714B67; padding: 15px 0px;" | ||||
|  |      id="overview"> | ||||
|  |     <div class="d-flex justify-content-center align-items-center mr-2" | ||||
|  |          style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | ||||
|  |         <img src="assets/misc/pie-chart.png"/> | ||||
|  |     </div> | ||||
|  |     <h2 class="mt-2" | ||||
|  |         style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> | ||||
|  |         Overview | ||||
|  |     </h2> | ||||
|  | </div> | ||||
|  | <div class="row" | ||||
|  |      style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;"> | ||||
|  |     <div class="col-sm-12 py-4"> | ||||
|  |         This module helps to manage each Customer Wallet in Pos. | ||||
|  |     </div> | ||||
|  | </div> | ||||
|  | <!-- END OF OVERVIEW SECTION --> | ||||
|  | 
 | ||||
|  | <!-- FEATURES SECTION --> | ||||
|  | <div class="d-flex align-items-center" | ||||
|  |      style="border-bottom: 2px solid #714B67; padding: 15px 0px;" | ||||
|  |      id="features"> | ||||
|  |     <div class="d-flex justify-content-center align-items-center mr-2" | ||||
|  |          style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | ||||
|  |         <img src="assets/misc/features.png"/> | ||||
|  |     </div> | ||||
|  |     <h2 class="mt-2" | ||||
|  |         style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> | ||||
|  |         Features | ||||
|  |     </h2> | ||||
|  | </div> | ||||
|  | <div class="row" | ||||
|  |      style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;"> | ||||
|  |     <div class="col-sm-12 col-md-6"> | ||||
|  | 
 | ||||
|  |         <div class="d-flex align-items-center" | ||||
|  |              style="margin-top: 30px; margin-bottom: 30px"> | ||||
|  |             <img src="assets/misc/check-box.png" class="mr-2"/> | ||||
|  |             <span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Recharge Wallet of Customer</span> | ||||
|  |         </div> | ||||
|  |         <div class="d-flex align-items-center" | ||||
|  |              style="margin-top: 30px; margin-bottom: 30px"> | ||||
|  |             <img src="assets/misc/check-box.png" class="mr-2"/> | ||||
|  |             <span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Create Wallet Transaction in Point of Sale</span> | ||||
|  |         </div> | ||||
|  |         <div class="d-flex align-items-center" | ||||
|  |              style="margin-top: 30px; margin-bottom: 30px"> | ||||
|  |             <img src="assets/misc/check-box.png" class="mr-2"/> | ||||
|  |             <span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Create Payment in Invoice</span> | ||||
|  |         </div> | ||||
|  |         <div class="d-flex align-items-center" | ||||
|  |              style="margin-top: 30px; margin-bottom: 30px"> | ||||
|  |             <img src="assets/misc/check-box.png" class="mr-2"/> | ||||
|  |             <span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Create Wallet Recharge from Pos Session</span> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  |     <div class="col-sm-12 col-md-6"> | ||||
|  |         <div class="d-flex align-items-center" | ||||
|  |              style="margin-top: 30px; margin-bottom: 30px"> | ||||
|  |             <img src="assets/misc/check-box.png" class="mr-2"/> | ||||
|  |             <span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Display Wallet Balance of Customer</span> | ||||
|  |         </div> | ||||
|  |         <div class="d-flex align-items-center" | ||||
|  |              style="margin-top: 30px; margin-bottom: 30px"> | ||||
|  |             <img src="assets/misc/check-box.png" class="mr-2"/> | ||||
|  |             <span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Create new Wallet Payment Method</span> | ||||
|  |         </div> | ||||
|  |           <div class="d-flex align-items-center" | ||||
|  |              style="margin-top: 30px; margin-bottom: 30px"> | ||||
|  |             <img src="assets/misc/check-box.png" class="mr-2"/> | ||||
|  |             <span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Payment using Customer Wallet Balance</span> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  | </div> | ||||
|  | <!-- END OF FEATURES SECTION --> | ||||
|  | 
 | ||||
|  | <!-- SCREENSHOTS SECTION --> | ||||
|  | <div class="d-flex align-items-center" | ||||
|  |      style="border-bottom: 2px solid #714B67; padding: 15px 0px;" | ||||
|  |      id="screenshots"> | ||||
|  |     <div class="d-flex justify-content-center align-items-center mr-2" | ||||
|  |          style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | ||||
|  |         <img src="assets/misc/pictures.png"/> | ||||
|  |     </div> | ||||
|  |     <h2 class="mt-2" | ||||
|  |         style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> | ||||
|  |         Screenshots | ||||
|  |     </h2> | ||||
|  | </div> | ||||
|  | <div class="row"> | ||||
|  |     <div class="col-sm-12"> | ||||
|  | 
 | ||||
|  |         <div style="display: block; margin: 30px auto;"> | ||||
|  |             <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> | ||||
|  |                Wallet Recharge of each Customer | ||||
|  |             </h3> | ||||
|  |             <p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;"> | ||||
|  |               By clicking WALLET RECHARGE button open a wizard for Wallet Recharge</p> | ||||
|  |             <img src="assets/screenshots/pos_wallet_01.png" class="img-thumbnail"> | ||||
|  |             <p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;"> | ||||
|  |                We can enter the Amount and Journal for recharging</p> | ||||
|  |             <img src="assets/screenshots/pos_wallet_02.png" class="img-thumbnail"> | ||||
|  |             <p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;"> | ||||
|  |                We can see the wallet is now recharged</p> | ||||
|  |             <img src="assets/screenshots/pos_wallet_03.png" class="img-thumbnail"> | ||||
|  |             <p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;"> | ||||
|  |                We can see a Wallet Management menu containing all wallet transaction details in Wallet Transaction menu</p> | ||||
|  |             <img src="assets/screenshots/pos_wallet_04.png" class="img-thumbnail"> | ||||
|  |             <p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;"> | ||||
|  |                Wallet details of customer when we recharged</p> | ||||
|  |             <img src="assets/screenshots/pos_wallet-05.png" class="img-thumbnail"> | ||||
|  |             <p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;"> | ||||
|  |                A payment is created in Invoicing</p> | ||||
|  |             <img src="assets/screenshots/pos_wallet_06.png" class="img-thumbnail"> | ||||
|  |             <p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;"> | ||||
|  |                 We can have an option to create new Wallet Journal</p> | ||||
|  |             <img src="assets/screenshots/pos_wallet_07.png" class="img-thumbnail"> | ||||
|  |             <p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;"> | ||||
|  |                Create a new Payment Method with that journal</p> | ||||
|  |             <img src="assets/screenshots/pos_wallet_08.png" class="img-thumbnail"> | ||||
|  |             <p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;"> | ||||
|  |                Choose wallet Payment Method from Configuration Settings</p> | ||||
|  |             <img src="assets/screenshots/pos_wallet_09.png" class="img-thumbnail"> | ||||
|  |             <p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;"> | ||||
|  |                 When we enter in to the Pos Session we can see a WALLET RECHARGE button in each partner</p> | ||||
|  |             <img src="assets/screenshots/pos_wallet_10.png" class="img-thumbnail"> | ||||
|  |             <p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;"> | ||||
|  |                 While clicking the button we can recharge the wallet</p> | ||||
|  |             <img src="assets/screenshots/pos_wallet.png" class="img-thumbnail"> | ||||
|  |               <p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;"> | ||||
|  |                Customers wallet balance displaying in screen</p> | ||||
|  |             <img src="assets/screenshots/pos_wallet_12.png" class="img-thumbnail"> | ||||
|  |              <p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;"> | ||||
|  |                 When we validate payment with product in order line, There is an option to pay with wallet.</p> | ||||
|  |             <img src="assets/screenshots/pos_wallet_18.png" class="img-thumbnail"> | ||||
|  |              <p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;"> | ||||
|  |                 When we validate payment without one product in order line,it will generate a Warning Message</p> | ||||
|  |             <img src="assets/screenshots/pos_wallet_13.png" class="img-thumbnail"> | ||||
|  | 
 | ||||
|  |             <p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;"> | ||||
|  |                 When we validate payment without the customer,it will generate a Warning Message</p> | ||||
|  |             <img src="assets/screenshots/pos_wallet_14.png" class="img-thumbnail"> | ||||
|  |             <p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;"> | ||||
|  |                When the customer have Wallet Balance 0,it will generate a Warning Message</p> | ||||
|  |             <img src="assets/screenshots/pos_wallet_15.png" class="img-thumbnail"> | ||||
|  |             <p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;"> | ||||
|  |                 When the order price is greater than the Wallet Balance it will generate a Warning Message</p> | ||||
|  |             <img src="assets/screenshots/pos_wallet_16.png" class="img-thumbnail"> | ||||
|  |               <p style="font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 14px;"> | ||||
|  |                 Wallet Transaction created</p> | ||||
|  |             <img src="assets/screenshots/pos_wallet_17.png" class="img-thumbnail"> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  | </div> | ||||
|  | <!-- END OF SCREENSHOTS SECTION --> | ||||
|  | 
 | ||||
|  | <!-- RELATED PRODUCTS --> | ||||
|  | <div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> | ||||
|  |   <div class="d-flex justify-content-center align-items-center mr-2" | ||||
|  |     style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | ||||
|  |     <img src="assets/misc/categories.png" /> | ||||
|  |   </div> | ||||
|  |   <h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Related | ||||
|  |     Products | ||||
|  |   </h2> | ||||
|  | </div> | ||||
|  | <div class="row"> | ||||
|  |         <div class="col-sm-12"> | ||||
|  |             <div id="demo1" class="row carousel slide" data-ride="carousel"> | ||||
|  |                 <!-- The slideshow --> | ||||
|  |                 <div class="carousel-inner" style="padding:30px"> | ||||
|  |                     <div class="carousel-item" style="min-height:198.656px"> | ||||
|  |                         <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> | ||||
|  |                             <a href="https://apps.odoo.com/apps/modules/16.0/dashboard_pos/" target="_blank"> | ||||
|  |                                 <div style="border-radius:10px"> | ||||
|  |                                     <img class="img img-responsive center-block" style="border-radius:0px" | ||||
|  |                                          src="assets/modules/1.png"> | ||||
|  |                                 </div> | ||||
|  |                             </a> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> | ||||
|  |                             <a href="https://apps.odoo.com/apps/modules/16.0/custom_receipts_for_pos/#" target="_blank"> | ||||
|  |                                 <div style="border-radius:10px"> | ||||
|  |                                     <img class="img img-responsive center-block" style="border-radius:0px" | ||||
|  |                                          src="assets/modules/2.png"> | ||||
|  |                                 </div> | ||||
|  |                             </a> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> | ||||
|  |                             <a href="https://apps.odoo.com/apps/modules/16.0/login_pos_direct/#" target="_blank"> | ||||
|  |                                 <div style="border-radius:10px"> | ||||
|  |                                     <img class="img img-responsive center-block" style="border-radius:0px" | ||||
|  |                                          src="assets/modules/3.png"> | ||||
|  |                                 </div> | ||||
|  |                             </a> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div class="carousel-item active" style="min-height:198.656px"> | ||||
|  |                         <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> | ||||
|  |                             <a href="https://apps.odoo.com/apps/modules/16.0/pos_report_generator/" target="_blank"> | ||||
|  |                                 <div style="border-radius:10px"> | ||||
|  |                                     <img class="img img-responsive center-block" style="border-radius:0px" | ||||
|  |                                          src="assets/modules/4.png"> | ||||
|  |                                 </div> | ||||
|  |                             </a> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> | ||||
|  |                             <a href="https://apps.odoo.com/apps/modules/16.0/pos_receipt_extend/" target="_blank"> | ||||
|  |                                 <div style="border-radius:10px"> | ||||
|  |                                     <img class="img img-responsive center-block" style="border-radius:0px" | ||||
|  |                                          src="assets/modules/5.png"> | ||||
|  |                                 </div> | ||||
|  |                             </a> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> | ||||
|  |                             <a href="https://apps.odoo.com/apps/modules/16.0/pos_product_creation/" target="_blank"> | ||||
|  |                                 <div style="border-radius:10px"> | ||||
|  |                                     <img class="img img-responsive center-block" style="border-radius:0px" | ||||
|  |                                          src="assets/modules/6.png"> | ||||
|  |                                 </div> | ||||
|  |                             </a> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <!-- Left and right controls --> | ||||
|  |                 <a class="carousel-control-prev" href="#demo1" data-slide="prev" style="width:35px; color:#000"> <span | ||||
|  |                         class="carousel-control-prev-icon"><i class="fa fa-chevron-left" | ||||
|  |                                                               style="font-size:24px"></i></span> | ||||
|  |                 </a> <a class="carousel-control-next" href="#demo1" data-slide="next" style="width:35px; color:#000"> | ||||
|  |                 <span class="carousel-control-next-icon"><i class="fa fa-chevron-right" | ||||
|  |                                                             style="font-size:24px"></i></span> | ||||
|  |             </a> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  | <!-- END OF RELATED PRODUCTS --> | ||||
|  | 
 | ||||
|  | <!-- OUR SERVICES --> | ||||
|  | <section class="container" style="margin-top: 6rem !important;"> | ||||
|  |     <div class="row"> | ||||
|  |         <div class="col-lg-12 d-flex flex-column justify-content-center align-items-center"> | ||||
|  |             <h2 style="color: #212529 !important;">Our Services</h2> | ||||
|  |             <hr | ||||
|  |                     style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;"/> | ||||
|  |         </div> | ||||
|  |         <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |             <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |                  style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |                 <img src="assets/icons/cogs.png" class="img-responsive" | ||||
|  |                      height="48px" width="48px"> | ||||
|  |             </div> | ||||
|  |             <h6 class="text-center" | ||||
|  |                 style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |                 Odoo | ||||
|  |                 Customization</h6> | ||||
|  |         </div><div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |             <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |                  style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |                 <img src="assets/icons/wrench.png" class="img-responsive" | ||||
|  |                      height="48px" width="48px"> | ||||
|  |             </div> | ||||
|  |             <h6 class="text-center" | ||||
|  |                 style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |                 Odoo | ||||
|  |                 Implementation</h6> | ||||
|  |         </div> | ||||
|  |         <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |             <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |                  style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |                 <img src="assets/icons/lifebuoy.png" class="img-responsive" | ||||
|  |                      height="48px" width="48px"> | ||||
|  |             </div> | ||||
|  |             <h6 class="text-center" | ||||
|  |                 style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |                 Odoo | ||||
|  |                 Support</h6> | ||||
|  |         </div> | ||||
|  |         <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |             <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |                  style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |                 <img src="assets/icons/user.png" class="img-responsive" | ||||
|  |                      height="48px" width="48px"> | ||||
|  |             </div> | ||||
|  |             <h6 class="text-center" | ||||
|  |                 style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |                 Hire | ||||
|  |                 Odoo | ||||
|  |                 Developer</h6> | ||||
|  |         </div> | ||||
|  |         <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |             <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |                  style="background-color: #54a0ff  !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |                 <img src="assets/icons/puzzle.png" class="img-responsive" | ||||
|  |                      height="48px" width="48px"> | ||||
|  |             </div> | ||||
|  |             <h6 class="text-center" | ||||
|  |                 style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |                 Odoo | ||||
|  |                 Integration</h6> | ||||
|  |         </div> | ||||
|  |         <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |             <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |                  style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |                 <img src="assets/icons/update.png" class="img-responsive" | ||||
|  |                      height="48px" width="48px"> | ||||
|  |             </div> | ||||
|  |             <h6 class="text-center" | ||||
|  |                 style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |                 Odoo | ||||
|  |                 Migration</h6> | ||||
|  |         </div> | ||||
|  |         <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |             <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |                  style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |                 <img src="assets/icons/consultation.png" class="img-responsive" | ||||
|  |                      height="48px" width="48px"> | ||||
|  |             </div> | ||||
|  |             <h6 class="text-center" | ||||
|  |                 style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |                 Odoo | ||||
|  |                 Consultancy</h6> | ||||
|  |         </div> | ||||
|  |         <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |             <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |                  style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |                 <img src="assets/icons/training.png" class="img-responsive" | ||||
|  |                      height="48px" width="48px"> | ||||
|  |             </div> | ||||
|  |             <h6 class="text-center" | ||||
|  |                 style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |                 Odoo | ||||
|  |                 Implementation</h6> | ||||
|  |         </div> | ||||
|  |         <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | ||||
|  |             <div class="d-flex justify-content-center align-items-center mx-3 my-3" | ||||
|  |                  style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | ||||
|  |                 <img src="assets/icons/license.png" class="img-responsive" | ||||
|  |                      height="48px" width="48px"> | ||||
|  |             </div> | ||||
|  |             <h6 class="text-center" | ||||
|  |                 style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | ||||
|  |                 Odoo | ||||
|  |                 Licensing Consultancy</h6> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  | </section> | ||||
|  | <!-- END OF OUR SERVICES --> | ||||
|  | 
 | ||||
|  | <!-- OUR INDUSTRIES --> | ||||
|  | <section class="container" style="margin-top: 6rem !important;"> | ||||
|  |     <div class="row"> | ||||
|  |         <div class="col-lg-12 d-flex flex-column justify-content-center align-items-center"> | ||||
|  |             <h2 style="color: #212529 !important;">Our Industries</h2> | ||||
|  |             <hr | ||||
|  |                     style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;"/> | ||||
|  |         </div> | ||||
|  |         <div class="col-lg-3"> | ||||
|  |             <div class="my-4 d-flex flex-column justify-content-center" | ||||
|  |                  style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> | ||||
|  |                 <img src="./assets/icons/trading-black.png" | ||||
|  |                      class="img-responsive mb-3" height="48px" width="48px"> | ||||
|  |                 <h5 | ||||
|  |                         style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | ||||
|  |                     Trading | ||||
|  |                 </h5> | ||||
|  |                 <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | ||||
|  |                     Easily procure | ||||
|  |                     and | ||||
|  |                     sell your products</p> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |         <div class="col-lg-3"> | ||||
|  |             <div class="my-4 d-flex flex-column justify-content-center" | ||||
|  |                  style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> | ||||
|  |                 <img src="./assets/icons/pos-black.png" | ||||
|  |                      class="img-responsive mb-3" height="48px" width="48px"> | ||||
|  |                 <h5 | ||||
|  |                         style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | ||||
|  |                     POS | ||||
|  |                 </h5> | ||||
|  |                 <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | ||||
|  |                     Easy | ||||
|  |                     configuration | ||||
|  |                     and convivial experience</p> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |         <div class="col-lg-3"> | ||||
|  |             <div class="my-4 d-flex flex-column justify-content-center" | ||||
|  |                  style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> | ||||
|  |                 <img src="./assets/icons/education-black.png" | ||||
|  |                      class="img-responsive mb-3" height="48px" | ||||
|  |                      width="48px"> | ||||
|  |                 <h5 | ||||
|  |                         style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | ||||
|  |                     Education | ||||
|  |                 </h5> | ||||
|  |                 <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | ||||
|  |                     A platform for | ||||
|  |                     educational management</p> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |         <div class="col-lg-3"> | ||||
|  |             <div class="my-4 d-flex flex-column justify-content-center" | ||||
|  |                  style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> | ||||
|  |                 <img src="./assets/icons/manufacturing-black.png" | ||||
|  |                      class="img-responsive mb-3" height="48px" | ||||
|  |                      width="48px"> | ||||
|  |                 <h5 | ||||
|  |                         style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | ||||
|  |                     Manufacturing | ||||
|  |                 </h5> | ||||
|  |                 <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | ||||
|  |                     Plan, track and | ||||
|  |                     schedule your operations</p> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |         <div class="col-lg-3"> | ||||
|  |             <div class="my-4 d-flex flex-column justify-content-center" | ||||
|  |                  style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> | ||||
|  |                 <img src="./assets/icons/ecom-black.png" | ||||
|  |                      class="img-responsive mb-3" height="48px" width="48px"> | ||||
|  |                 <h5 | ||||
|  |                         style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | ||||
|  |                     E-commerce & Website | ||||
|  |                 </h5> | ||||
|  |                 <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | ||||
|  |                     Mobile | ||||
|  |                     friendly, | ||||
|  |                     awe-inspiring product pages</p> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |         <div class="col-lg-3"> | ||||
|  |             <div class="my-4 d-flex flex-column justify-content-center" | ||||
|  |                  style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> | ||||
|  |                 <img src="./assets/icons/service-black.png" | ||||
|  |                      class="img-responsive mb-3" height="48px" width="48px"> | ||||
|  |                 <h5 | ||||
|  |                         style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | ||||
|  |                     Service Management | ||||
|  |                 </h5> | ||||
|  |                 <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | ||||
|  |                     Keep track of | ||||
|  |                     services and invoice</p> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |         <div class="col-lg-3"> | ||||
|  |             <div class="my-4 d-flex flex-column justify-content-center" | ||||
|  |                  style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> | ||||
|  |                 <img src="./assets/icons/restaurant-black.png" | ||||
|  |                      class="img-responsive mb-3" height="48px" | ||||
|  |                      width="48px"> | ||||
|  |                 <h5 | ||||
|  |                         style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | ||||
|  |                     Restaurant | ||||
|  |                 </h5> | ||||
|  |                 <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | ||||
|  |                     Run your bar or | ||||
|  |                     restaurant methodically</p> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |         <div class="col-lg-3"> | ||||
|  |             <div class="my-4 d-flex flex-column justify-content-center" | ||||
|  |                  style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> | ||||
|  |                 <img src="./assets/icons/hotel-black.png" | ||||
|  |                      class="img-responsive mb-3" height="48px" width="48px"> | ||||
|  |                 <h5 | ||||
|  |                         style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | ||||
|  |                     Hotel Management | ||||
|  |                 </h5> | ||||
|  |                 <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | ||||
|  |                     An | ||||
|  |                     all-inclusive | ||||
|  |                     hotel management application</p> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  | </section> | ||||
|  | 
 | ||||
|  | <!-- END OF OUR INDUSTRIES --> | ||||
|  |      <!-- SUPPORT --> | ||||
|  | <div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> | ||||
|  |     <div class="d-flex justify-content-center align-items-center mr-2" | ||||
|  |         style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | ||||
|  |         <img src="assets/misc/customer-support.png" /> | ||||
|  |     </div> | ||||
|  |     <h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Support | ||||
|  |     </h2> | ||||
|  | </div> | ||||
|  | <div class="container mt-5"> | ||||
|  |     <div class="row"> | ||||
|  |         <div class="col-sm-12 col-md-6"> | ||||
|  |             <div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;"> | ||||
|  |                 <div class="mr-4" | ||||
|  |                     style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;"> | ||||
|  |                     <img src="assets/misc/support.png" height="48" width="48" style="width: 42px; height: 42px;" /> | ||||
|  |                 </div> | ||||
|  |                 <div> | ||||
|  |                     <h4>Need Help?</h4> | ||||
|  |                     <p style="line-height: 100%;">Got questions or need help? Get in touch.</p> | ||||
|  |                     <a href="mailto:odoo@cybrosys.com"> | ||||
|  |                         <p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;"> | ||||
|  |                             odoo@cybrosys.com</p> | ||||
|  |                     </a> | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |         <div class="col-sm-12 col-md-6"> | ||||
|  |             <div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;"> | ||||
|  |                 <div class="mr-4" | ||||
|  |                     style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;"> | ||||
|  |                     <img src="assets/misc/whatsapp.png" height="52" width="52" style="width: 52px; height: 52px;" /> | ||||
|  |                 </div> | ||||
|  |                 <div> | ||||
|  |                     <h4>WhatsApp</h4> | ||||
|  |                     <p style="line-height: 100%;">Say hi to us on WhatsApp!</p> | ||||
|  |                     <a href="https://api.whatsapp.com/send?phone=918606827707"> | ||||
|  |                         <p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">+91 86068 | ||||
|  |                             27707</p> | ||||
|  |                     </a> | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  |     <div class="row"> | ||||
|  |         <div class="col-sm-12 my-5 d-flex justify-content-center align-items-center"> | ||||
|  |             <img src="assets/misc/logo.png" width="144" height="31" | ||||
|  |                 style="width:144px; height: 31px; margin-top: 40px;" /> | ||||
|  |         </div> | ||||
|  |     </div> | ||||
|  | </div> | ||||
|  | <!-- END OF SUPPORT --> | ||||
| @ -0,0 +1,38 @@ | |||||
|  | odoo.define('pos_customer_wallet_management.customerListScreen', function (require) { | ||||
|  | "use strict"; | ||||
|  | 
 | ||||
|  |     var {PosGlobalState} = require('point_of_sale.models'); | ||||
|  |     const Registries = require('point_of_sale.Registries'); | ||||
|  |     const NewPosGlobalState = (PosGlobalState) => class NewPosGlobalState extends PosGlobalState { | ||||
|  |          /** | ||||
|  |          *Override PosGlobalState to load fields in pos session | ||||
|  |          */ | ||||
|  |         async _processData(loadedData){ | ||||
|  |             await super._processData(...arguments); | ||||
|  |             this.account_journal = loadedData['account.journal']; | ||||
|  |             this.res_partner = loadedData['res.partner']; | ||||
|  |             this.pos_payment_method = loadedData['pos.payment.method']; | ||||
|  |         } | ||||
|  |     } | ||||
|  | Registries.Model.extend(PosGlobalState,NewPosGlobalState) | ||||
|  | 
 | ||||
|  |  const PartnerLine = require('point_of_sale.PartnerLine'); | ||||
|  |  const ExtendPartnerLine = (PartnerLine) => | ||||
|  |         class extends PartnerLine { | ||||
|  |          /** | ||||
|  |          *Override PartnerLine | ||||
|  |          */ | ||||
|  |            wallet() | ||||
|  |            { | ||||
|  |            //Show wallet recharge screen
 | ||||
|  |            var partner = this.props.partner; | ||||
|  |            var data = this.env.pos.account_journal; | ||||
|  |                 this.showScreen('RechargeScreen', { | ||||
|  |                       result : data, | ||||
|  |                       partner : partner, | ||||
|  |                 }); | ||||
|  |            } | ||||
|  |         } | ||||
|  |     Registries.Component.extend(PartnerLine, ExtendPartnerLine); | ||||
|  |     return PartnerLine; | ||||
|  | }); | ||||
| @ -0,0 +1,73 @@ | |||||
|  | odoo.define('pos_customer_wallet_management.payment_method', function (require) { | ||||
|  | "use strict"; | ||||
|  | const Registries = require('point_of_sale.Registries'); | ||||
|  | const PaymentScreen = require('point_of_sale.PaymentScreen'); | ||||
|  | const { browser } = require("@web/core/browser/browser"); | ||||
|  | 
 | ||||
|  | const payment_method = (PaymentScreen) => | ||||
|  |   class extends PaymentScreen { | ||||
|  |        /** | ||||
|  |          *Override PaymentScreen | ||||
|  |        */ | ||||
|  |        async addNewPaymentLine({ detail: paymentMethod }) { | ||||
|  |                                        console.log(this.env.pos.selectedOrder.partner, 'addNewPaymentLine......................') | ||||
|  |               const orders = this.payment_method; | ||||
|  |               var order = this.env.pos.selectedOrder.partner; | ||||
|  |               var select = this.env.pos.selectedOrder.selected_orderline; | ||||
|  |               var payment = this.env.pos.selectedOrder.selected_paymentline; | ||||
|  |                   if (order == null) { | ||||
|  |                        await this.showPopup('ErrorPopup', { | ||||
|  |                             title: this.env._t('Unknown'), | ||||
|  |                             body: "Choose Customer First", | ||||
|  |                         }); | ||||
|  |                   } | ||||
|  |                   else if (select == null) { | ||||
|  |                        await this.showPopup('ErrorPopup', { | ||||
|  |                                 title: this.env._t('Product'), | ||||
|  |                                 body: "Choose Product First", | ||||
|  |                        }); | ||||
|  |                   } | ||||
|  |                   else { | ||||
|  |                          return super.addNewPaymentLine({ detail: paymentMethod }); | ||||
|  |                   } | ||||
|  |    } | ||||
|  |    async validateOrder(isForceValidate) { | ||||
|  |                  /** | ||||
|  |                     *Override Validate order button | ||||
|  |                  */ | ||||
|  |                   var payment = this.env.pos.selectedOrder.paymentlines; | ||||
|  |                      for (const orderLine of payment) { | ||||
|  |                          if (orderLine.payment_method.wallet_journal) { | ||||
|  |                             var price = orderLine.amount; | ||||
|  |                             var session = this.env.pos.config.current_session_id[1]; | ||||
|  |                             var currency_id = this.env.pos.company.currency_id[1]; | ||||
|  |                             var order = this.env.pos.selectedOrder.partner; | ||||
|  |                             var wallet_balance = this.env.pos.selectedOrder.partner.wallet_balance; | ||||
|  |                             var quantity = this.env.pos.selectedOrder.selected_orderline.quantity; | ||||
|  |                             var balance = wallet_balance - price; | ||||
|  |                                 if (wallet_balance < price) { | ||||
|  |                                     await this.showPopup('ErrorPopup', { | ||||
|  |                                         title: this.env._t('Unknown'), | ||||
|  |                                         body: "Not enough wallet balance", | ||||
|  |                                     }); | ||||
|  |                                 } else { | ||||
|  |                                         var rpc = require('web.rpc'); | ||||
|  |                                         var self = this; | ||||
|  |                                         rpc.query({ | ||||
|  |                                             model: 'res.partner', | ||||
|  |                                             method: 'write_value', | ||||
|  |                                             args: [balance, order, session, price, currency_id], | ||||
|  |                                         }).then(() => { | ||||
|  |                                              browser.location.reload(); | ||||
|  |                                             return super.validateOrder(isForceValidate); | ||||
|  |                                         }); | ||||
|  |                                 } | ||||
|  |                          } | ||||
|  |                          else { | ||||
|  |                                return super.validateOrder(isForceValidate); | ||||
|  |                          } | ||||
|  |                      } | ||||
|  |    } | ||||
|  | } | ||||
|  |   Registries.Component.extend(PaymentScreen, payment_method); | ||||
|  | }); | ||||
| @ -0,0 +1,53 @@ | |||||
|  | odoo.define('pos_customer_wallet_management.wallet_recharge', function(require) { | ||||
|  |   'use strict'; | ||||
|  |     const PosComponent = require('point_of_sale.PosComponent'); | ||||
|  |     const Registries = require('point_of_sale.Registries'); | ||||
|  |     const PartnerListScreen = require('point_of_sale.PartnerListScreen') | ||||
|  |     const { browser } = require("@web/core/browser/browser"); | ||||
|  |     const { useRef, onMounted } = owl; | ||||
|  |     class RechargeScreen extends PosComponent { | ||||
|  |         /** | ||||
|  |          *Override PosComponent | ||||
|  |          */ | ||||
|  |          setup() { | ||||
|  |             super.setup(); | ||||
|  |             this.amount_input = useRef("amountInput") | ||||
|  |             this.journalInput = useRef("journalInput") | ||||
|  |             onMounted(() => { | ||||
|  |                    this.amount_input.el.value = this.props.amount_input || ''; | ||||
|  |                    this.journalInput.el.value = this.props.journalInput || ''; | ||||
|  |             }); | ||||
|  |         } | ||||
|  |         cancel() | ||||
|  |         { | ||||
|  |             this.showScreen("PartnerListScreen") | ||||
|  |         } | ||||
|  |         async confirm(partner) | ||||
|  |         { | ||||
|  |             // Create front end recharge through rpc
 | ||||
|  |             var currency = this.env.pos.currency.name; | ||||
|  |             var amount_input = this.amount_input.el.value; | ||||
|  |             var journalInput = this.journalInput.el.value; | ||||
|  |             if (amount_input.trim() === '' || journalInput.trim() === '') { | ||||
|  |                   return; | ||||
|  |             } | ||||
|  |             var rpc = require('web.rpc'); | ||||
|  |             rpc.query({ | ||||
|  |                 model: 'recharge.wallet', | ||||
|  |                 method: 'frontend_recharge', | ||||
|  |                 args: [partner,amount_input,currency] | ||||
|  |             }) | ||||
|  |             this.showScreen("PartnerListScreen") | ||||
|  |              const { confirmed, payload } = await this.showPopup('ConfirmPopup', { | ||||
|  |                    title: this.env._t('Confirm Popup'), | ||||
|  |                    body: this.env._t('Successfully Recharged Your Wallet'), | ||||
|  |              }); | ||||
|  |              if (confirmed) { | ||||
|  |                  browser.location.reload(); | ||||
|  |              } | ||||
|  |         } | ||||
|  |     } | ||||
|  |     RechargeScreen.template = 'RechargeScreen'; | ||||
|  |     Registries.Component.add(RechargeScreen); | ||||
|  |     return RechargeScreen; | ||||
|  | }); | ||||
| @ -0,0 +1,44 @@ | |||||
|  | <?xml version="1.0" encoding="UTF-8"?> | ||||
|  | <!--Wallet balance of customer in set partner button--> | ||||
|  | <templates id="template_id" xml:space="preserve"> | ||||
|  |     <t t-name="ActionpadWidget" t-inherit="point_of_sale.ActionpadWidget" | ||||
|  |        t-inherit-mode="extension" owl="1"> | ||||
|  |        <xpath expr="//div[hasclass('actionpad')]/button[1]" position="replace"> | ||||
|  |           <button class="button set-partner" | ||||
|  |                   t-att-class="{'decentered': isLongName}" | ||||
|  |                   t-on-click="() => this.trigger('click-partner')"> | ||||
|  |                 <t t-if="!env.isMobile"><i class="fa fa-user" role="img" aria-label="Customer" title="Customer" /></t> | ||||
|  |               <t t-if="props.partner"> | ||||
|  |                     <t t-esc="props.partner.name"/> | ||||
|  |                   <h5>WALLET[<t t-esc="props.partner.wallet_balance.toFixed(2)"/>]</h5> | ||||
|  |                 </t> | ||||
|  |               <t t-else=""> | ||||
|  |                     Customer | ||||
|  |                 </t> | ||||
|  |             </button> | ||||
|  |        </xpath> | ||||
|  |     </t> | ||||
|  |     <t t-name="PaymentScreen" t-inherit="point_of_sale.PaymentScreen" | ||||
|  |        t-inherit-mode="extension" owl="1"> | ||||
|  |          <xpath expr="//div[hasclass('partner-button')]" position="replace"> | ||||
|  |              <div class="button" | ||||
|  |                   t-att-class="{ highlight: currentOrder.get_partner() }" | ||||
|  |                   t-on-click="selectPartner"> | ||||
|  |                                     <i class="fa fa-user" role="img" | ||||
|  |                                        title="Customer"/> | ||||
|  |                  <t t-set="partner" t-value="currentOrder.get_partner()"/> | ||||
|  |                  <span> | ||||
|  |                                         <t t-if="partner"> | ||||
|  |                                             <t t-esc="partner.name"/> | ||||
|  |                                             <br/>WALLET[ | ||||
|  |                                             <t t-esc="partner.wallet_balance"/> | ||||
|  |                                             ] | ||||
|  |                                         </t> | ||||
|  |                      <t t-if="!partner"> | ||||
|  |                                             Customer | ||||
|  |                                         </t> | ||||
|  |                                     </span> | ||||
|  |              </div> | ||||
|  |          </xpath> | ||||
|  |     </t> | ||||
|  | </templates> | ||||
| @ -0,0 +1,12 @@ | |||||
|  | <?xml version="1.0" encoding="UTF-8"?> | ||||
|  | <!--Wallet recharge button in partner line--> | ||||
|  | <templates id="template" xml:space="preserve">onClickWallet | ||||
|  |     <t t-name="PartnerLine" t-inherit="point_of_sale.PartnerLine" | ||||
|  |        t-inherit-mode="extension" owl="1"> | ||||
|  |         <xpath expr="//button[hasclass('edit-partner-button')]" | ||||
|  |                position="after"> | ||||
|  |                   <button class="wallet-recharge-button" | ||||
|  |                           t-on-mousedown.prevent="() => this.wallet(props.partner)">WALLET RECHARGE</button> | ||||
|  |         </xpath> | ||||
|  |     </t> | ||||
|  | </templates> | ||||
| @ -0,0 +1,70 @@ | |||||
|  | <?xml version="1.0" encoding="UTF-8"?> | ||||
|  | <!--Create wallet recharge screen--> | ||||
|  | <templates id="template" xml:space="preserve"> | ||||
|  |     <t t-name="RechargeScreen" owl="1"> | ||||
|  |         <div class="screen-content"> | ||||
|  |             <section class="full-content"> | ||||
|  |                 <div class="client-window"> | ||||
|  |                     <div class="modal-dialog"> | ||||
|  |                         <div class="popup widget order-scroller touch scrollable" | ||||
|  |                              style="width:500px;height:515px;font-size: 13px;"> | ||||
|  |                             <div style="margin-top:30px;"> | ||||
|  |                                 <header>WALLET RECHARGE</header> | ||||
|  |                             </div> | ||||
|  |                             <br/> | ||||
|  |                             <br/> | ||||
|  |                             <label style="margin-right: 333px;">PARTNER NAME</label><br/><br/> | ||||
|  |                              <div> | ||||
|  |                                  <input class='form-control booking_field' readonly="True" name="customer" type='text' | ||||
|  |                                         style="height:34px;border-radius:5px;" | ||||
|  |                                                t-att-value="props.partner.name"/> | ||||
|  |                              </div> | ||||
|  |                             <br/> | ||||
|  |                             <br/> | ||||
|  |                              <label style="margin-right: 333px;">BALANCE AMOUNT</label><br/><br/> | ||||
|  |                              <div> | ||||
|  |                                         <input class='form-control booking_field' readonly="True" name="balance" type='text' | ||||
|  |                                                style="height:34px;border-radius:5px;" | ||||
|  |                                                t-att-value="props.partner.wallet_balance"/> | ||||
|  |                              </div> | ||||
|  |                             <br/><br/> | ||||
|  |                             <label style="margin-right: 333px;">PAYMENT JOURNAL</label> | ||||
|  |                             <br/><br/> | ||||
|  |                             <div> | ||||
|  |                               <select class="form-control journal_field" | ||||
|  |                                       name="item_id" | ||||
|  |                                       t-ref="journalInput" | ||||
|  |                                       style="height:34px;width: 400px;border-radius:5px;"> | ||||
|  |                                   <t t-foreach="props.result" t-as="item" | ||||
|  |                                      t-key="item.id"> | ||||
|  |                                       <option t-att-value="item.id"> | ||||
|  |                                           <t t-esc="item.name"/> | ||||
|  |                                       </option> | ||||
|  |                                   </t> | ||||
|  |                               </select> | ||||
|  |                             </div> | ||||
|  |                             <br/> | ||||
|  |                             <br/> | ||||
|  |                             <label style="margin-right: 308px;">RECHARGE AMOUNT</label><br/><br/> | ||||
|  |                             <div> | ||||
|  |                                 <input class='form-control amount_field' | ||||
|  |                                        name="amount" type='number' | ||||
|  |                                        t-ref="amountInput" | ||||
|  |                                        step="0.01" style="height:34px;width: 400px;border-radius:5px;"/> | ||||
|  |                             </div> | ||||
|  |                             <div class="button cancel" t-on-click="cancel" | ||||
|  |                                  style="background-color: #FFFFFF;color: black;"> | ||||
|  |                                        CANCEL | ||||
|  |                             </div> | ||||
|  |                             <div class="button confirm" | ||||
|  |                                  t-on-mousedown.prevent="() => this.confirm(props.partner)" | ||||
|  |                                  style="background-color: #FFFFFF;color: black;"> | ||||
|  |                                        ADD | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |             </section> | ||||
|  |         </div> | ||||
|  |     </t> | ||||
|  | </templates> | ||||
| @ -0,0 +1,16 @@ | |||||
|  | <?xml version="1.0" encoding="utf-8"?> | ||||
|  | <odoo> | ||||
|  |     <!--    Account journal form view--> | ||||
|  |     <record id="view_account_journal_form" model="ir.ui.view"> | ||||
|  |         <field name="name"> | ||||
|  |             account.journal.view.form.inherit.pos.customer.wallet.management | ||||
|  |         </field> | ||||
|  |         <field name="model">account.journal</field> | ||||
|  |         <field name="inherit_id" ref="account.view_account_journal_form"/> | ||||
|  |         <field name="arch" type="xml"> | ||||
|  |             <xpath expr="//field[@name='type']" position="after"> | ||||
|  |                 <field name="wallet_journal"/> | ||||
|  |             </xpath> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  | </odoo> | ||||
| @ -0,0 +1,18 @@ | |||||
|  | <?xml version="1.0" encoding="utf-8"?> | ||||
|  | <odoo> | ||||
|  |     <!--    POS payment method form view--> | ||||
|  |     <record id="pos_payment_method_view_form" model="ir.ui.view"> | ||||
|  |         <field name="name"> | ||||
|  |             pos.payment.method.view.form.inherit.pos.customer.wallet.management | ||||
|  |         </field> | ||||
|  |         <field name="model">pos.payment.method</field> | ||||
|  |         <field name="inherit_id" | ||||
|  |                ref="point_of_sale.pos_payment_method_view_form"/> | ||||
|  |         <field name="arch" type="xml"> | ||||
|  |             <xpath expr="//field[@name='journal_id']" position="after"> | ||||
|  |                 <field name="wallet_journal" | ||||
|  |                        attrs="{'invisible':[('wallet_journal','!=',True)]}"/> | ||||
|  |             </xpath> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  | </odoo> | ||||
| @ -0,0 +1,29 @@ | |||||
|  | <?xml version="1.0" encoding="utf-8"?> | ||||
|  | <odoo> | ||||
|  |     <!--    Res partner form view--> | ||||
|  |     <record id="view_partner_form" model="ir.ui.view"> | ||||
|  |         <field name="name"> | ||||
|  |             res.partner.view.form.inherit.pos.customer.wallet.management | ||||
|  |         </field> | ||||
|  |         <field name="model">res.partner</field> | ||||
|  |         <field name="inherit_id" ref="base.view_partner_form"/> | ||||
|  |         <field name="arch" type="xml"> | ||||
|  |             <div name="button_box" position="inside"> | ||||
|  |                 <button class="oe_stat_button" type="object" | ||||
|  |                         name="action_number_of_wallet"> | ||||
|  |                     <field string="Wallet" name="wallet_count" | ||||
|  |                            widget="statinfo"/> | ||||
|  |                 </button> | ||||
|  |             </div> | ||||
|  |             <xpath expr="//group[@name='misc']" position="before"> | ||||
|  |                 <group string="Wallet Balance" name="wallet balance"> | ||||
|  |                     <field name="wallet_balance" readonly="True"/> | ||||
|  |                     <div> | ||||
|  |                         <button name="action_recharge" string="Wallet Recharge" | ||||
|  |                                 type="object" class="btn btn-secondary"/> | ||||
|  |                     </div> | ||||
|  |                 </group> | ||||
|  |             </xpath> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  | </odoo> | ||||
| @ -0,0 +1,71 @@ | |||||
|  | <?xml version="1.0" encoding="utf-8"?> | ||||
|  | <odoo> | ||||
|  |     <!--    Wallet transaction model view--> | ||||
|  |     <record id="wallet_transaction_view_tree" model="ir.ui.view"> | ||||
|  |         <field name="name"> | ||||
|  |             wallet.transaction.view.tree.pos.customer.wallet.management | ||||
|  |         </field> | ||||
|  |         <field name="model">wallet.transaction</field> | ||||
|  |         <field name="arch" type="xml"> | ||||
|  |             <tree string="wallet transaction" create="0" delete="0"> | ||||
|  |                 <field name="name"/> | ||||
|  |                 <field name="type"/> | ||||
|  |                 <field name="customer"/> | ||||
|  |                 <field name="pos_order"/> | ||||
|  |                 <field name="amount"/> | ||||
|  |                 <field name="currency"/> | ||||
|  |             </tree> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  |     <record id="wallet_transaction_view_form" model="ir.ui.view"> | ||||
|  |         <field name="name"> | ||||
|  |             wallet.transaction.view.form.pos.customer.wallet.management | ||||
|  |         </field> | ||||
|  |         <field name="model">wallet.transaction</field> | ||||
|  |         <field name="arch" type="xml"> | ||||
|  |             <form string="wallet transaction"> | ||||
|  |                 <sheet> | ||||
|  |                     <group> | ||||
|  |                         <field name="name" readonly="True"/> | ||||
|  |                         <field name="type" readonly="True"/> | ||||
|  |                         <field name="customer" readonly="True"/> | ||||
|  |                         <field name="pos_order" readonly="True"/> | ||||
|  |                         <field name="amount" readonly="True"/> | ||||
|  |                         <field name="currency" readonly="True"/> | ||||
|  |                     </group> | ||||
|  |                 </sheet> | ||||
|  |             </form> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  |     <record id="wallet_transaction_view_search" model="ir.ui.view"> | ||||
|  |         <field name="name">wallet.transaction.view.search</field> | ||||
|  |         <field name="model">wallet.transaction</field> | ||||
|  |         <field name="arch" type="xml"> | ||||
|  |             <search string="Search Transaction"> | ||||
|  |                 <field name="type"/> | ||||
|  |                 <field name="customer"/> | ||||
|  |                 <filter string="Credit" name="type" | ||||
|  |                         domain="[('type', '=', 'Credit')]"/> | ||||
|  |                 <filter string="Debit" name="type" | ||||
|  |                         domain="[('type', '=', 'Debit')]"/> | ||||
|  |                 <group string="Group By"> | ||||
|  |                     <filter string="Wallet Type Wise" name="group_by_type" | ||||
|  |                             context="{'group_by': 'type'}"/> | ||||
|  |                     <filter string="Customer Wise" name="group_by_customer" | ||||
|  |                             context="{'group_by': 'customer'}"/> | ||||
|  |                 </group> | ||||
|  |             </search> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  |     <record id="wallet_transaction_action" | ||||
|  |             model="ir.actions.act_window"> | ||||
|  |         <field name="name">Wallet Transaction</field> | ||||
|  |         <field name="res_model">wallet.transaction</field> | ||||
|  |         <field name="view_mode">tree,form</field> | ||||
|  |     </record> | ||||
|  |     <menuitem id="wallet_transaction_menu" name="Wallet Management" | ||||
|  |               parent="point_of_sale.menu_point_root"> | ||||
|  |         <menuitem id="wallet_transaction_menu_action" | ||||
|  |                   action="wallet_transaction_action"/> | ||||
|  |     </menuitem> | ||||
|  | </odoo> | ||||
| @ -0,0 +1,22 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################# | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Sruthi Pavithran (odoo@cybrosys.com) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU LESSER | ||||
|  | #    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | ||||
|  | # | ||||
|  | #    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 | ||||
|  | #    (LGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################# | ||||
|  | from . import recharge_wallet | ||||
| @ -0,0 +1,71 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################# | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Sruthi Pavithran (odoo@cybrosys.com) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU LESSER | ||||
|  | #    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | ||||
|  | # | ||||
|  | #    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 | ||||
|  | #    (LGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################# | ||||
|  | from odoo import api, fields, models | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | class RechargeWallet(models.TransientModel): | ||||
|  |     """Wallet recharge fields""" | ||||
|  |     _name = "recharge.wallet" | ||||
|  |     _description = "Create Wallet Recharge Of Each Customer" | ||||
|  | 
 | ||||
|  |     journal_id = fields.Many2one("account.journal", string="Payment Journal", | ||||
|  |                                  help="Select journal type") | ||||
|  |     recharge_amount = fields.Float(string="Recharge Amount", | ||||
|  |                                    help="Recharge amount in wallet") | ||||
|  | 
 | ||||
|  |     def action_submit(self): | ||||
|  |         """Create wallet recharge and wallet transaction""" | ||||
|  |         partner = self.env['res.partner'].browse( | ||||
|  |             self.env.context.get('active_id')) | ||||
|  |         partner.write({ | ||||
|  |             'wallet_balance': partner.wallet_balance + self.recharge_amount}) | ||||
|  |         self.env['wallet.transaction'].create({ | ||||
|  |             'type': "Credit", | ||||
|  |             'customer': partner.name, | ||||
|  |             'amount': self.recharge_amount, | ||||
|  |             'currency': partner.currency_id.name | ||||
|  |         }) | ||||
|  |         self.env['account.payment'].create({ | ||||
|  |             'amount': self.recharge_amount, | ||||
|  |             'ref': "Wallet Recharge", | ||||
|  |             'payment_type': "inbound", | ||||
|  |             'partner_id': partner.id | ||||
|  |         }) | ||||
|  | 
 | ||||
|  |     @api.model | ||||
|  |     def frontend_recharge(self, partner, amount_input, currency): | ||||
|  |         """Create functions for frontend wallet recharge""" | ||||
|  |         self.env['wallet.transaction'].create({ | ||||
|  |             'type': "Credit", | ||||
|  |             'customer': partner['name'], | ||||
|  |             'amount': amount_input, | ||||
|  |             'currency': currency | ||||
|  |         }) | ||||
|  |         self.env['account.payment'].create({ | ||||
|  |             'amount': amount_input, | ||||
|  |             'ref': "Wallet Recharge", | ||||
|  |             'payment_type': "inbound", | ||||
|  |             'partner_id': partner['id'] | ||||
|  |         }) | ||||
|  |         self.env['res.partner'].browse(partner['id']).write({ | ||||
|  |             'wallet_balance': partner['wallet_balance'] + int(amount_input) | ||||
|  |         }) | ||||
| @ -0,0 +1,32 @@ | |||||
|  | <?xml version="1.0" encoding="utf-8"?> | ||||
|  | <odoo> | ||||
|  |     <!--Wizard view for wallet recharge--> | ||||
|  |     <record id="recharge_wallet_view_form" model="ir.ui.view"> | ||||
|  |         <field name="name">recharge.wallet.view.form</field> | ||||
|  |         <field name="model">recharge.wallet</field> | ||||
|  |         <field name="arch" type="xml"> | ||||
|  |             <form string="wizard_view"> | ||||
|  |                 <group> | ||||
|  |                     <group> | ||||
|  |                         <field name="journal_id"/> | ||||
|  |                         <field name="recharge_amount"/> | ||||
|  |                     </group> | ||||
|  |                 </group> | ||||
|  |                 <footer> | ||||
|  |                     <button name="action_submit" string="SUBMIT" type="object" | ||||
|  |                             class="oe_highlight"/> | ||||
|  |                     <button string="CANCEL" class="btn-secondary" | ||||
|  |                             special="cancel"/> | ||||
|  |                 </footer> | ||||
|  |             </form> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  |     <record id="recharge_wallet_action" model="ir.actions.act_window"> | ||||
|  |         <field name="name">Wallet Recharge</field> | ||||
|  |         <field name="type">ir.actions.act_window</field> | ||||
|  |         <field name="res_model">recharge.wallet</field> | ||||
|  |         <field name="view_mode">form</field> | ||||
|  |         <field name="view_id" ref="recharge_wallet_view_form"/> | ||||
|  |         <field name="target">new</field> | ||||
|  |     </record> | ||||
|  | </odoo> | ||||