@ -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 |
|||
|
|||
: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>`__ |
|||
|
@ -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 |
|||
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 310 B After Width: | Height: | Size: 310 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 576 B After Width: | Height: | Size: 576 B |
Before Width: | Height: | Size: 733 B After Width: | Height: | Size: 733 B |
Before Width: | Height: | Size: 911 B After Width: | Height: | Size: 911 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 673 B After Width: | Height: | Size: 673 B |
Before Width: | Height: | Size: 878 B After Width: | Height: | Size: 878 B |
Before Width: | Height: | Size: 653 B After Width: | Height: | Size: 653 B |
Before Width: | Height: | Size: 905 B After Width: | Height: | Size: 905 B |
Before Width: | Height: | Size: 839 B After Width: | Height: | Size: 839 B |
Before Width: | Height: | Size: 427 B After Width: | Height: | Size: 427 B |
Before Width: | Height: | Size: 627 B After Width: | Height: | Size: 627 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 988 B After Width: | Height: | Size: 988 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 589 B After Width: | Height: | Size: 589 B |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 967 B After Width: | Height: | Size: 967 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 48 KiB |
After Width: | Height: | Size: 58 KiB |
After Width: | Height: | Size: 58 KiB |
After Width: | Height: | Size: 56 KiB |
After Width: | Height: | Size: 52 KiB |
After Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 87 KiB |
Before Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 115 KiB |
After Width: | Height: | Size: 400 KiB |
After Width: | Height: | Size: 153 KiB |
After Width: | Height: | Size: 126 KiB |
Before Width: | Height: | Size: 192 KiB |
Before Width: | Height: | Size: 672 KiB |
Before Width: | Height: | Size: 106 KiB |
Before Width: | Height: | Size: 673 KiB |
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 80 KiB |
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 24 KiB |
@ -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; |
|||
}); |
@ -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; |
|||
}); |
@ -1,9 +1,10 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<!-- Adding the js files into point of sale assets --> |
|||
<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"/> |
|||
</xpath> |
|||
</template> |
|||
<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/pos_receipt.js"/> |
|||
</xpath> |
|||
</template> |
|||
</data> |
|||
</odoo> |
|||
|