diff --git a/pos_category_wise_receipt/README.rst b/pos_category_wise_receipt/README.rst new file mode 100644 index 000000000..6e933259c --- /dev/null +++ b/pos_category_wise_receipt/README.rst @@ -0,0 +1,26 @@ +============================ +POS Category wise receipt v11 +============================ + +This module aims to print category wise receipt for point of sale. + +Features +======== + +* The receipt shows category wiseproduct and Subtotal of each category. + +Installation +============ + +Just select it from available modules to install it, there is no need to extra installations. + +Configuration +============= + +Nothing to configure. + + +Credits +======= +Developer: Anusha @ cybrosys V9 + Akshay Babu V11 odoo@cybrosys.com diff --git a/pos_category_wise_receipt/__init__.py b/pos_category_wise_receipt/__init__.py new file mode 100644 index 000000000..06839078f --- /dev/null +++ b/pos_category_wise_receipt/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2009-TODAY Cybrosys Technologies(). +# Author: Nilmar Shereef() +# you can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## + diff --git a/pos_category_wise_receipt/__manifest__.py b/pos_category_wise_receipt/__manifest__.py new file mode 100644 index 000000000..195418725 --- /dev/null +++ b/pos_category_wise_receipt/__manifest__.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2009-TODAY Cybrosys Technologies(). +# Author: Nilmar Shereef() +# you can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +{ + 'name': 'POS Category wise receipt', + 'version': '11.0.1.0.0', + 'summary': 'Category wise receipt for the Point of Sale ', + 'author': 'Cybrosys Techno Solutions', + 'website': "http://www.cybrosys.com", + 'company': 'Cybrosys Techno Solutions', + 'category': 'Point of Sale', + 'depends': ['point_of_sale'], + 'data': [ + 'views/pos_ticket_view.xml', + ], + 'qweb': [ + 'static/src/xml/pos_ticket.xml', + ], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, +} diff --git a/pos_category_wise_receipt/static/description/banner.jpg b/pos_category_wise_receipt/static/description/banner.jpg new file mode 100644 index 000000000..ddca2948c Binary files /dev/null and b/pos_category_wise_receipt/static/description/banner.jpg differ diff --git a/pos_category_wise_receipt/static/description/category-wise-receipt-cybrosys-1.jpg b/pos_category_wise_receipt/static/description/category-wise-receipt-cybrosys-1.jpg new file mode 100644 index 000000000..cab9252a2 Binary files /dev/null and b/pos_category_wise_receipt/static/description/category-wise-receipt-cybrosys-1.jpg differ diff --git a/pos_category_wise_receipt/static/description/category-wise-receipt-cybrosys-2.jpg b/pos_category_wise_receipt/static/description/category-wise-receipt-cybrosys-2.jpg new file mode 100644 index 000000000..0053fc074 Binary files /dev/null and b/pos_category_wise_receipt/static/description/category-wise-receipt-cybrosys-2.jpg differ diff --git a/pos_category_wise_receipt/static/description/cybro_logo.png b/pos_category_wise_receipt/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/pos_category_wise_receipt/static/description/cybro_logo.png differ diff --git a/pos_category_wise_receipt/static/description/icon.png b/pos_category_wise_receipt/static/description/icon.png new file mode 100644 index 000000000..0ba76ffdc Binary files /dev/null and b/pos_category_wise_receipt/static/description/icon.png differ diff --git a/pos_category_wise_receipt/static/description/index.html b/pos_category_wise_receipt/static/description/index.html new file mode 100644 index 000000000..4f133e3df --- /dev/null +++ b/pos_category_wise_receipt/static/description/index.html @@ -0,0 +1,332 @@ +
+
+

+ POS Category wise receipt +

+

+ Print Category wise receipt +

+
+ Cybrosys Technologies +
+ +
+ cybrosys technologies +
+
+
+
+
+
+

+ Overview +

+

+ This module that can be used to generate category wise bill. +

+
+
+
+
+

+ Features +

+

+ + Category wise bill +

+
+
+ + + + +
+
+

+ Screenshots +

+

+ + Choose your product randomly +

+
+ +
+

+ + Product category wise receipt +

+
+ +
+
+
+ + +
+
+ cybrosys technologies +
+
+
+
+

+ Our Services +

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

+ + Odoo Support +

+ +
+ +
+
+
+
+
+

+ Our Industries +

+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Trading + +

+

+ Easily procure and sell your products. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Manufacturing +

+

+ Plan, track and schedule your operations. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Restaurant +

+

+ Run your bar or restaurant methodical. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + POS +

+

+ Easy configuring and convivial selling. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + E-commerce & Website +

+

+ Mobile friendly, awe-inspiring product pages. +

+
+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Hotel Management +

+

+ An all-inclusive hotel management application. +

+
+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Education +

+

+ A Collaborative platform for educational management. +

+
+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Service Management +

+

+ Keep track of services and invoice accordingly. +

+
+
+
+
+
+
+ +
+ diff --git a/pos_category_wise_receipt/static/src/js/pos_ticket.js b/pos_category_wise_receipt/static/src/js/pos_ticket.js new file mode 100644 index 000000000..4c8eb267a --- /dev/null +++ b/pos_category_wise_receipt/static/src/js/pos_ticket.js @@ -0,0 +1,66 @@ +odoo.define('pos_category_wise_receipt.receipt', function (require) { +"use strict"; +var models = require('point_of_sale.models'); +var orderline_id = 1; + + +var order = models.Orderline.extend({ + + initialize: function(attr,options){ + + this.pos = options.pos; + this.order = options.order; + if (options.json) { + this.init_from_JSON(options.json); + return; + } + this.product = options.product; + this.price = options.product.price; + this.set_quantity(1); + this.discount = 0; + this.discountStr = '0'; + this.type = 'unit'; + this.selected = false; + this.count = true; + this.category_selected = true; + this.select = false; + this.id = orderline_id++; + }, + get_category : function(){ + var product = this.product.pos_categ_id[1]; + return (product ? this.product.pos_categ_id[1] : undefined) || 'UnCategorised Product'; +// return this.product.pos_categ_id[1]; + }, + get_category_id: function(){ + return this.product.pos_categ_id[0]; + }, + set_selected_product: function(count){ + this.count = count; + this.trigger('change',this); + }, + set_selected_category: function(selected){ + + this.category_selected = selected; + this.trigger('change',this); + }, + is_selected_product: function(){ + return this.count; + }, + set_select: function(selected){ + this.select = selected; + this.trigger('change',this); + }, + is_select: function(){ + return this.select; + + }, + is_selected_category: function(){ + + return this.category_selected; + }, + + +}); + models.Orderline = order; + return order; +}); \ No newline at end of file diff --git a/pos_category_wise_receipt/static/src/xml/pos_ticket.xml b/pos_category_wise_receipt/static/src/xml/pos_ticket.xml new file mode 100644 index 000000000..0a1b2a31b --- /dev/null +++ b/pos_category_wise_receipt/static/src/xml/pos_ticket.xml @@ -0,0 +1,124 @@ + + + +
+
+
+
+ Phone:
+ User:
+ Shop:
+
+ +
+ +
+
+
+ + + + + + + + +

+ +

+ +
+

+ + + + + + + + + + + + +
+ + +
+ With a % discount +
+
+
+ + + +
+
+ + + + + +
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + +
Subtotal: + +
+ +
Discount: + +
Total: + +
+
+ + + + + + + +
+ + + +
+
+ + +
Change: + +
+ +
+
+ +
+
+
+
+
+
diff --git a/pos_category_wise_receipt/views/pos_ticket_view.xml b/pos_category_wise_receipt/views/pos_ticket_view.xml new file mode 100644 index 000000000..2663f3cc4 --- /dev/null +++ b/pos_category_wise_receipt/views/pos_ticket_view.xml @@ -0,0 +1,9 @@ + + +