Browse Source

Apr 05: [UPDT] Module Updated 'pos_category_wise_receipt'

pull/164/merge
RisvanaCybro 1 year ago
parent
commit
7073e6d255
  1. 45
      pos_category_wise_receipt/README.rst
  2. 10
      pos_category_wise_receipt/__init__.py
  3. 24
      pos_category_wise_receipt/__manifest__.py
  4. 4
      pos_category_wise_receipt/doc/RELEASE_NOTES.md
  5. 0
      pos_category_wise_receipt/static/description/assets/icons/check.png
  6. 0
      pos_category_wise_receipt/static/description/assets/icons/chevron.png
  7. 0
      pos_category_wise_receipt/static/description/assets/icons/cogs.png
  8. 0
      pos_category_wise_receipt/static/description/assets/icons/consultation.png
  9. 0
      pos_category_wise_receipt/static/description/assets/icons/ecom-black.png
  10. 0
      pos_category_wise_receipt/static/description/assets/icons/education-black.png
  11. 0
      pos_category_wise_receipt/static/description/assets/icons/hotel-black.png
  12. 0
      pos_category_wise_receipt/static/description/assets/icons/license.png
  13. 0
      pos_category_wise_receipt/static/description/assets/icons/lifebuoy.png
  14. 0
      pos_category_wise_receipt/static/description/assets/icons/logo.png
  15. 0
      pos_category_wise_receipt/static/description/assets/icons/manufacturing-black.png
  16. 0
      pos_category_wise_receipt/static/description/assets/icons/pos-black.png
  17. 0
      pos_category_wise_receipt/static/description/assets/icons/puzzle.png
  18. 0
      pos_category_wise_receipt/static/description/assets/icons/restaurant-black.png
  19. 0
      pos_category_wise_receipt/static/description/assets/icons/service-black.png
  20. 0
      pos_category_wise_receipt/static/description/assets/icons/trading-black.png
  21. 0
      pos_category_wise_receipt/static/description/assets/icons/training.png
  22. 0
      pos_category_wise_receipt/static/description/assets/icons/update.png
  23. 0
      pos_category_wise_receipt/static/description/assets/icons/user.png
  24. 0
      pos_category_wise_receipt/static/description/assets/icons/wrench.png
  25. 0
      pos_category_wise_receipt/static/description/assets/misc/categories.png
  26. 0
      pos_category_wise_receipt/static/description/assets/misc/check-box.png
  27. 0
      pos_category_wise_receipt/static/description/assets/misc/compass.png
  28. 0
      pos_category_wise_receipt/static/description/assets/misc/corporate.png
  29. 0
      pos_category_wise_receipt/static/description/assets/misc/customer-support.png
  30. 0
      pos_category_wise_receipt/static/description/assets/misc/cybrosys-logo.png
  31. 0
      pos_category_wise_receipt/static/description/assets/misc/features.png
  32. 0
      pos_category_wise_receipt/static/description/assets/misc/logo.png
  33. 0
      pos_category_wise_receipt/static/description/assets/misc/pictures.png
  34. 0
      pos_category_wise_receipt/static/description/assets/misc/pie-chart.png
  35. 0
      pos_category_wise_receipt/static/description/assets/misc/right-arrow.png
  36. 0
      pos_category_wise_receipt/static/description/assets/misc/star.png
  37. 0
      pos_category_wise_receipt/static/description/assets/misc/support.png
  38. 0
      pos_category_wise_receipt/static/description/assets/misc/whatsapp.png
  39. BIN
      pos_category_wise_receipt/static/description/assets/modules/1.jpg
  40. BIN
      pos_category_wise_receipt/static/description/assets/modules/2.png
  41. BIN
      pos_category_wise_receipt/static/description/assets/modules/3.png
  42. BIN
      pos_category_wise_receipt/static/description/assets/modules/4.png
  43. BIN
      pos_category_wise_receipt/static/description/assets/modules/5.png
  44. BIN
      pos_category_wise_receipt/static/description/assets/modules/6.png
  45. BIN
      pos_category_wise_receipt/static/description/assets/modules/Custom-Receipts-For-POS.png
  46. BIN
      pos_category_wise_receipt/static/description/assets/modules/POS-Combo-Product.png
  47. BIN
      pos_category_wise_receipt/static/description/assets/modules/POS-Credit-Limit.png
  48. BIN
      pos_category_wise_receipt/static/description/assets/modules/POS-Dashboard.png
  49. BIN
      pos_category_wise_receipt/static/description/assets/modules/POS-Order-Types.png
  50. BIN
      pos_category_wise_receipt/static/description/assets/modules/Product-Add-ons-in-POS.png
  51. BIN
      pos_category_wise_receipt/static/description/assets/screenshots/1.png
  52. BIN
      pos_category_wise_receipt/static/description/assets/screenshots/2img.png
  53. BIN
      pos_category_wise_receipt/static/description/assets/screenshots/3img.png
  54. BIN
      pos_category_wise_receipt/static/description/assets/screenshots/hero.gif
  55. BIN
      pos_category_wise_receipt/static/description/assets/screenshots/hero.png
  56. BIN
      pos_category_wise_receipt/static/description/assets/screenshots/pos1.png
  57. BIN
      pos_category_wise_receipt/static/description/assets/screenshots/pos2.png
  58. BIN
      pos_category_wise_receipt/static/description/assets/screenshots/pos3.png
  59. BIN
      pos_category_wise_receipt/static/description/banner.png
  60. BIN
      pos_category_wise_receipt/static/description/icon.png
  61. 196
      pos_category_wise_receipt/static/description/index.html
  62. 25
      pos_category_wise_receipt/static/src/js/Screens/ReceiptScreen/OrderReceipt.js
  63. 25
      pos_category_wise_receipt/static/src/js/pos_receipt.js
  64. 30
      pos_category_wise_receipt/static/src/xml/pos_receipt.xml
  65. 7
      pos_category_wise_receipt/views/assets.xml

45
pos_category_wise_receipt/README.rst

@ -1,60 +1,45 @@
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg
.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg
:target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
=========================
POS Category Wise Receipt
=========================
This module aims to print category-wise receipts for products ordered from Point of Sale.
Features
========
* The receipt shows category-wise products and the subtotal of each category.
Installation
============
Just select it from available modules to install it, there is no need to extra installations.
This Module helps to print the pos receipt based on category wise products.
Configuration
=============
Nothing to configure.
License
-------
Lesser General Public License, Version 3 (LGPL v3).
(https://www.gnu.org/licenses/lgpl-3.0-standalone.html)
- www.odoo.com/documentation/14.0/setup/install.html
- Install our custom addon
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
Credits
=======
* Developers : (V9) Anusha,
(V12) Akshay Babu,
(V14) Aysha Shalin,
(V15) Aysha Shalin,
(V16) Vishnu KP
License
-------
AFFERO General Public License, Version 3 (LGPL v3).
(https://www.gnu.org/licenses/lgpl-3.0-standalone.html)
Contact: odoo@cybrosys.com
Credits
-------
Developer: (V14) Mohammed Dilshad Tk, Contact: odoo@cybrosys.com
Contacts
--------
* Mail Contact : odoo@cybrosys.com
* Website : https://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/>`__
For support and more information, please visit https://www.cybrosys.com
Further information
===================
-------------------
HTML Description: `<static/description/index.html>`__

10
pos_category_wise_receipt/__init__.py

@ -2,20 +2,18 @@
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Author: Aysha Shalin (odoo@cybrosys.com)
#
# Copyright (C) 2009-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Author: Mohammed Dilshad Tk (<http://www.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.
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

24
pos_category_wise_receipt/__manifest__.py

@ -2,20 +2,18 @@
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Author: Aysha Shalin (<http://www.cybrosys.com>)
#
# Copyright (C) 2009-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Author: Mohammed Dilshad Tk (<http://www.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.
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
@ -23,20 +21,16 @@
'name': 'POS Category Wise Receipt',
'version': '14.0.1.0.0',
'category': 'Point of Sale',
'summary': 'Category wise receipt for Point of Sale orders',
'description': """This module aims to print category-wise receipts for
products ordered from Point of Sale.""",
'summary': 'Category wise receipt in the Point of Sale',
'description': 'This Module helps to print the pos receipt based on '
'category wise products',
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': "http://www.cybrosys.com",
'depends': ['point_of_sale'],
'data': [
'views/assets.xml',
],
'qweb': [
'static/src/xml/Screens/ReceiptScreen/OrderReceipt.xml',
],
'data': ['views/assets.xml'],
'qweb': ['static/src/xml/pos_receipt.xml'],
'images': ['static/description/banner.png'],
'license': 'LGPL-3',
'installable': True,

4
pos_category_wise_receipt/doc/RELEASE_NOTES.md

@ -1,7 +1,7 @@
## Module <pos_category_wise_receipt>
#### 26.08.2023
#### 03.04.2024
#### Version 14.0.1.0.0
#### ADD
- Initial Commit for POS Category Wise Receipt
- Initial commit for POS Category Wise Receipt

0
pos_category_wise_receipt/static/description/assets/icons/check.png

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

0
pos_category_wise_receipt/static/description/assets/icons/chevron.png

Before

Width:  |  Height:  |  Size: 310 B

After

Width:  |  Height:  |  Size: 310 B

0
pos_category_wise_receipt/static/description/assets/icons/cogs.png

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

0
pos_category_wise_receipt/static/description/assets/icons/consultation.png

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

0
pos_category_wise_receipt/static/description/assets/icons/ecom-black.png

Before

Width:  |  Height:  |  Size: 576 B

After

Width:  |  Height:  |  Size: 576 B

0
pos_category_wise_receipt/static/description/assets/icons/education-black.png

Before

Width:  |  Height:  |  Size: 733 B

After

Width:  |  Height:  |  Size: 733 B

0
pos_category_wise_receipt/static/description/assets/icons/hotel-black.png

Before

Width:  |  Height:  |  Size: 911 B

After

Width:  |  Height:  |  Size: 911 B

0
pos_category_wise_receipt/static/description/assets/icons/license.png

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

0
pos_category_wise_receipt/static/description/assets/icons/lifebuoy.png

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

0
pos_category_wise_receipt/static/description/assets/icons/logo.png

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

0
pos_category_wise_receipt/static/description/assets/icons/manufacturing-black.png

Before

Width:  |  Height:  |  Size: 673 B

After

Width:  |  Height:  |  Size: 673 B

0
pos_category_wise_receipt/static/description/assets/icons/pos-black.png

Before

Width:  |  Height:  |  Size: 878 B

After

Width:  |  Height:  |  Size: 878 B

0
pos_category_wise_receipt/static/description/assets/icons/puzzle.png

Before

Width:  |  Height:  |  Size: 653 B

After

Width:  |  Height:  |  Size: 653 B

0
pos_category_wise_receipt/static/description/assets/icons/restaurant-black.png

Before

Width:  |  Height:  |  Size: 905 B

After

Width:  |  Height:  |  Size: 905 B

0
pos_category_wise_receipt/static/description/assets/icons/service-black.png

Before

Width:  |  Height:  |  Size: 839 B

After

Width:  |  Height:  |  Size: 839 B

0
pos_category_wise_receipt/static/description/assets/icons/trading-black.png

Before

Width:  |  Height:  |  Size: 427 B

After

Width:  |  Height:  |  Size: 427 B

0
pos_category_wise_receipt/static/description/assets/icons/training.png

Before

Width:  |  Height:  |  Size: 627 B

After

Width:  |  Height:  |  Size: 627 B

0
pos_category_wise_receipt/static/description/assets/icons/update.png

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

0
pos_category_wise_receipt/static/description/assets/icons/user.png

Before

Width:  |  Height:  |  Size: 988 B

After

Width:  |  Height:  |  Size: 988 B

0
pos_category_wise_receipt/static/description/assets/icons/wrench.png

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

0
pos_category_wise_receipt/static/description/assets/misc/categories.png

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

0
pos_category_wise_receipt/static/description/assets/misc/check-box.png

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

0
pos_category_wise_receipt/static/description/assets/misc/compass.png

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

0
pos_category_wise_receipt/static/description/assets/misc/corporate.png

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

0
pos_category_wise_receipt/static/description/assets/misc/customer-support.png

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

0
pos_category_wise_receipt/static/description/assets/misc/cybrosys-logo.png

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

0
pos_category_wise_receipt/static/description/assets/misc/features.png

Before

Width:  |  Height:  |  Size: 589 B

After

Width:  |  Height:  |  Size: 589 B

0
pos_category_wise_receipt/static/description/assets/misc/logo.png

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

0
pos_category_wise_receipt/static/description/assets/misc/pictures.png

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

0
pos_category_wise_receipt/static/description/assets/misc/pie-chart.png

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

0
pos_category_wise_receipt/static/description/assets/misc/right-arrow.png

Before

Width:  |  Height:  |  Size: 967 B

After

Width:  |  Height:  |  Size: 967 B

0
pos_category_wise_receipt/static/description/assets/misc/star.png

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

0
pos_category_wise_receipt/static/description/assets/misc/support.png

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

0
pos_category_wise_receipt/static/description/assets/misc/whatsapp.png

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
pos_category_wise_receipt/static/description/assets/modules/1.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

BIN
pos_category_wise_receipt/static/description/assets/modules/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
pos_category_wise_receipt/static/description/assets/modules/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
pos_category_wise_receipt/static/description/assets/modules/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
pos_category_wise_receipt/static/description/assets/modules/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

BIN
pos_category_wise_receipt/static/description/assets/modules/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
pos_category_wise_receipt/static/description/assets/modules/Custom-Receipts-For-POS.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

BIN
pos_category_wise_receipt/static/description/assets/modules/POS-Combo-Product.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

BIN
pos_category_wise_receipt/static/description/assets/modules/POS-Credit-Limit.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

BIN
pos_category_wise_receipt/static/description/assets/modules/POS-Dashboard.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

BIN
pos_category_wise_receipt/static/description/assets/modules/POS-Order-Types.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

BIN
pos_category_wise_receipt/static/description/assets/modules/Product-Add-ons-in-POS.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

BIN
pos_category_wise_receipt/static/description/assets/screenshots/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

BIN
pos_category_wise_receipt/static/description/assets/screenshots/2img.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 400 KiB

BIN
pos_category_wise_receipt/static/description/assets/screenshots/3img.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

BIN
pos_category_wise_receipt/static/description/assets/screenshots/hero.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

BIN
pos_category_wise_receipt/static/description/assets/screenshots/hero.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 KiB

BIN
pos_category_wise_receipt/static/description/assets/screenshots/pos1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 672 KiB

BIN
pos_category_wise_receipt/static/description/assets/screenshots/pos2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

BIN
pos_category_wise_receipt/static/description/assets/screenshots/pos3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 673 KiB

BIN
pos_category_wise_receipt/static/description/banner.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 80 KiB

BIN
pos_category_wise_receipt/static/description/icon.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 KiB

After

Width:  |  Height:  |  Size: 24 KiB

196
pos_category_wise_receipt/static/description/index.html

@ -1,10 +1,10 @@
<div class="container" style="background-color: #714B67; min-height: 600px; width: 100%; padding: 15px; position: relative;">
<div style="background-color: #714B67; min-height: 600px; width: 100%; padding: 15px; position: relative;">
<!-- TITLE BAR -->
<div class="row"
<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 class="my-3">
<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
@ -20,19 +20,21 @@
</div>
</div>
<!-- END OF TITLE BAR -->
<!-- APP HERO -->
<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 Category Wise Receipt</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">
Print Category Wise Receipt</p>
Category Wise Receipt In The Point Of Sale</p>
<!-- END OF APP HERO -->
<img src="./assets/screenshots/hero.png"
style="width: 75%; height: auto; position: absolute; margin-left: auto; margin-right: auto; top: 45%; left: 12%; right: auto;"/>
<img src="./assets/screenshots/hero.gif"
style="width: 75%; height: auto; position: absolute; margin-left: auto; margin-right: auto; top: 45%; left: 12%; right: auto;margin-top: 8%;"/>
</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;">
@ -42,17 +44,20 @@
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Explore This Module</h2>
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 class="my-3">
<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>
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>
@ -65,7 +70,9 @@
<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>
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>
@ -75,10 +82,12 @@
<a href="#screenshots">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div class="my-3">
<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>
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>
@ -102,7 +111,7 @@
<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 is used to generate category wise receipt
This module is helps to change the POS products receipt into section wise based on category of the products.
</div>
</div>
<!-- END OF OVERVIEW SECTION -->
@ -125,18 +134,17 @@
<div class="d-flex align-items-center"
style="margin-top: 40px; margin-bottom: 40px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Community &amp; Enterprise Support</span>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;
position:absolute; left: 58px; bottom: 71px;">
Available in Odoo 14.0 Community and Enterprise</p>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Community, Enterprise &amp; Sh Support</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 40px; margin-bottom: 40px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Users selected product can print category wise</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;">Category Wise Receipt</span>
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;
position:absolute; left: 58px; bottom: -4px;">
Category wise receipts of selected products by users.</p>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Category Wise Pos Receipt</span>
</div>
</div>
</div>
@ -157,34 +165,37 @@
</div>
<div class="row">
<div class="col-sm-12">
<div class="mt-3" style="display: block; margin: 30px auto;">
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Choose Products you want to buy</h3>
Choose products you want to buy</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
From here you can choose the products randomly as per your
needs.</p>
<img src="assets/screenshots/pos3.png" class="img-thumbnail">
<img src="assets/screenshots/1.png" class="img-thumbnail">
</div>
<div class="mt-3" style="display: block; margin: 30px auto;">
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Click on Payment Button goes here</h3>
click on payment button
goes here</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
After choosing the product click on the Payment button below,
further choose the payment method and click on the Validate
button.</p>
<img src="assets/screenshots/pos1.png" class="img-thumbnail">
After choosing the product click on the payment button below,
further choose the payment method and click on
the Validate button.</p>
<img src="assets/screenshots/2img.png" class="img-thumbnail">
</div>
<div class="mt-3" style="display: block; margin: 30px auto;">
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Category Wise Receipt goes here</h3>
Category Wise Receipt
goes here</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
On clicking on Validate button it leads to the receipt page,
here we can see category wise receipt.</p>
<img src="assets/screenshots/pos2.png" class="img-thumbnail">
here we can see Category Wise Receipt.</p>
<img src="assets/screenshots/3img.png" class="img-thumbnail">
</div>
</div>
</div>
<!-- END OF SCREENSHOTS SECTION -->
<!-- RELATED PRODUCTS -->
@ -197,7 +208,8 @@
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Related Products
Related
Products
</h2>
</div>
<div class="row">
@ -208,34 +220,34 @@
<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/14.0/combo_product_pos/"
<a href="https://apps.odoo.com/apps/modules/14.0/custom_receipts_for_pos/"
target="_blank">
<div class="img" style="border-radius:10px">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="./assets/modules/POS-Combo-Product.png">
src="./assets/modules/1.jpg">
</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/14.0/pos_credit_limit/"
<a href="https://apps.odoo.com/apps/modules/14.0/dashboard_pos/"
target="_blank">
<div class="img" style="border-radius:10px">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="./assets/modules/POS-Credit-Limit.png">
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/14.0/pos_order_types/"
<a href="https://apps.odoo.com/apps/modules/15.0/pos_report_generator/"
target="_blank">
<div class="img" style="border-radius:10px">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="./assets/modules/POS-Order-Types.png">
src="./assets/modules/3.png">
</div>
</a>
</div>
@ -244,34 +256,34 @@
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/14.0/pos_product_addons/"
<a href="https://apps.odoo.com/apps/modules/14.0/point_of_sale_logo/"
target="_blank">
<div class="img" style="border-radius:10px">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="./assets/modules/Product-Add-ons-in-POS.png">
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/14.0/custom_receipts_for_pos/"
<a href="https://apps.odoo.com/apps/modules/14.0/pos_add_product_webcam_barcode/"
target="_blank">
<div class="img" style="border-radius:10px">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="./assets/modules/Custom-Receipts-For-POS.png">
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/14.0/dashboard_pos/"
<a href="https://apps.odoo.com/apps/modules/14.0/multi_barcodes_pos/"
target="_blank">
<div class="img" style="border-radius:10px">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="./assets/modules/POS-Dashboard.png">
src="./assets/modules/6.png">
</div>
</a>
</div>
@ -295,7 +307,6 @@
<!-- END OF RELATED PRODUCTS -->
<!-- OUR SERVICES -->
<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"
@ -307,7 +318,6 @@
Our Services
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
@ -318,7 +328,8 @@
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo Customization</h6>
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"
@ -328,7 +339,8 @@
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo Implementation</h6>
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"
@ -338,7 +350,8 @@
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo Support</h6>
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"
@ -348,7 +361,9 @@
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Hire Odoo Developer</h6>
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"
@ -358,7 +373,8 @@
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo Integration</h6>
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"
@ -368,7 +384,8 @@
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo Migration</h6>
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"
@ -378,7 +395,8 @@
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo Consultancy</h6>
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"
@ -388,7 +406,8 @@
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo Implementation</h6>
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"
@ -398,15 +417,14 @@
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo Licensing Consultancy</h6>
Odoo
Licensing Consultancy</h6>
</div>
</div>
</div>
<!-- END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<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"
@ -415,7 +433,8 @@
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Our Industries
Our
Industries
</h2>
</div>
<div class="container my-5">
@ -429,7 +448,9 @@
Trading
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easily procure and sell your products</p>
Easily procure
and
sell your products</p>
</div>
</div>
<div class="col-lg-3">
@ -441,7 +462,9 @@
POS
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easy configuration and convivial experience</p>
Easy
configuration
and convivial experience</p>
</div>
</div>
<div class="col-lg-3">
@ -453,7 +476,8 @@
Education
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
A platform for educational management</p>
A platform for
educational management</p>
</div>
</div>
<div class="col-lg-3">
@ -466,7 +490,8 @@
Manufacturing
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Plan, track and schedule your operations</p>
Plan, track and
schedule your operations</p>
</div>
</div>
<div class="col-lg-3">
@ -478,7 +503,9 @@
E-commerce &amp; Website
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Mobile friendly, awe-inspiring product pages</p>
Mobile
friendly,
awe-inspiring product pages</p>
</div>
</div>
<div class="col-lg-3">
@ -490,7 +517,8 @@
Service Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Keep track of services and invoice</p>
Keep track of
services and invoice</p>
</div>
</div>
<div class="col-lg-3">
@ -502,7 +530,8 @@
Restaurant
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Run your bar or restaurant methodically</p>
Run your bar or
restaurant methodically</p>
</div>
</div>
<div class="col-lg-3">
@ -514,16 +543,16 @@
Hotel Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
An all-inclusive hotel management application</p>
An
all-inclusive
hotel management application</p>
</div>
</div>
</div>
</div>
<!-- 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"
@ -538,7 +567,7 @@
<div class="container mt-5">
<div class="row">
<div class="col-sm-12 col-md-6">
<div class="my-3" style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<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"
@ -556,7 +585,7 @@
</div>
</div>
<div class="col-sm-12 col-md-6">
<div class="my-3" style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<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"
@ -567,7 +596,8 @@
<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>
+91 86068
27707</p>
</a>
</div>
</div>

25
pos_category_wise_receipt/static/src/js/Screens/ReceiptScreen/OrderReceipt.js

@ -1,25 +0,0 @@
odoo.define('pos_category_wise_receipt.receipt', function(require) {
'use strict';
// Extending OrderReceipt for printing category wise receipt
const OrderReceipt =require('point_of_sale.OrderReceipt');
const Registries = require('point_of_sale.Registries');
const CategoryOrderReceipt = OrderReceipt =>
class extends OrderReceipt {
get orderlines() {
var order_lines = this.receiptEnv.orderlines;
var categ = {
'category': [],
'orderlines': order_lines
}
for (var i = 0; i <= order_lines.length - 1; i++){
if(!categ.category.includes(order_lines[i].product.pos_categ_id[1])){
categ.category.push(order_lines[i].product.pos_categ_id[1]);
}
}
return categ;
}
}
Registries.Component.extend(OrderReceipt, CategoryOrderReceipt);
return OrderReceipt;
});

25
pos_category_wise_receipt/static/src/js/pos_receipt.js

@ -0,0 +1,25 @@
odoo.define('pos_category_wise_receipt.CategoryReceipt', function(require) {
'use strict';
const OrderReceipt = require('point_of_sale.OrderReceipt');
const Registries = require('point_of_sale.Registries');
/** Extends OrderReceipt to make change in pos receipt **/
const CategoryOrderReceipt = OrderReceipt =>
class extends OrderReceipt {
/** Gets the order lines while enter validate button from the pos payment screen **/
get orderlines() {
var order_lines = this.receiptEnv.orderlines;
var category = {
'category': [],
'orderlines': order_lines
}
for(var i = 0; i <= order_lines.length - 1; i++) {
if(!category.category.includes(order_lines[i].product.pos_categ_id[1])) {
category.category.push(order_lines[i].product.pos_categ_id[1]);
}
}
return category;
}
}
Registries.Component.extend(OrderReceipt, CategoryOrderReceipt);
return OrderReceipt;
});

30
pos_category_wise_receipt/static/src/xml/Screens/ReceiptScreen/OrderReceipt.xml → pos_category_wise_receipt/static/src/xml/pos_receipt.xml

@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<templates id="template" xml:space="preserve">
<!-- Inheriting OrderReceipt template for printing category wise product and subtotal in the receipt -->
<t t-name="OrderReceipt" t-inherit="point_of_sale.OrderReceipt" t-inherit-mode="extension" owl="1">
<template id="template">
<!-- Inherits "point_of_sale.OrderReceipt" template to replace a <div> that shows products in receipt -->
<t t-name="OrderReceipt" t-inherit="point_of_sale.OrderReceipt"
t-inherit-mode="extension" owl="1">
<xpath expr="//div[hasclass('orderlines')]" position="replace">
<div class="orderlines">
<t t-foreach="orderlines.category" t-as="category" t-key="category">
@ -18,13 +19,16 @@
<t t-if="orderline.product.pos_categ_id[1] == category">
<td class="name" style="width:302px; display:flex; justify-content:space-between;">
<span class="pos-receipt-left-align" style="padding-bottom:2px;">
<span class="name" style="width:200px; display:flex; justify-content:space-between;">
<t t-esc="orderline.get_product().display_name"/></span>
<span class="name"
style="width:200px; display:flex; justify-content:space-between;">
<t t-esc="orderline.get_product().display_name"/>
</span>
<t t-set="sum"
t-value="sum + orderline.get_display_price()"/>
<t t-if="orderline.get_discount() > 0">
<div class="pos-disc-font">
With a <t
With a
<t
t-esc="orderline.get_discount()"/>
%
discount
@ -42,19 +46,19 @@
<t t-esc="env.pos.format_currency_no_symbol(orderline.get_display_price())"/>
</span>
</td>
</t>
</tr>
<tr class="pos-receipt-amount">
<td style="padding-top:10px;">
<span class="subtotal" style="padding-left:6.5rem;">Subtotal</span>
<span t-esc="env.pos.format_currency(sum)" class="pos-receipt-right-align subtotal"
style="padding-left:28px;"/>
</td>
</tr>
<br/>
<tr class="">
<td class="pos-receipt-right-align">
<t t-esc="env.pos.format_currency(sum)"/>
</td>
</tr>
</table>
</t>
</div>
</xpath>
</t>
</templates>
</template>

7
pos_category_wise_receipt/views/assets.xml

@ -1,9 +1,10 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Adding the js files into point of sale assets -->
<data>
<!-- Adding js file to point_of_sale.assets template-->
<template id="assets" inherit_id="point_of_sale.assets">
<xpath expr="//script[last()]" position="after">
<script type="text/javascript" src="/pos_category_wise_receipt/static/src/js/Screens/ReceiptScreen/OrderReceipt.js"/>
<script type="text/javascript" src="/pos_category_wise_receipt/static/src/js/pos_receipt.js"/>
</xpath>
</template>
</data>
</odoo>

Loading…
Cancel
Save