diff --git a/pos_category_wise_receipt/README.rst b/pos_category_wise_receipt/README.rst new file mode 100644 index 000000000..f13b3c308 --- /dev/null +++ b/pos_category_wise_receipt/README.rst @@ -0,0 +1,26 @@ +============================ +POS Category wise receipt v9 +============================ + +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 +Guidance: Nilmar Shereef @ cybrosys, shereef@cybrosys.in 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/__openerp__.py b/pos_category_wise_receipt/__openerp__.py new file mode 100644 index 000000000..49cc6e794 --- /dev/null +++ b/pos_category_wise_receipt/__openerp__.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', + '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', + 'version': '0.2', + '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..b626430fa Binary files /dev/null and b/pos_category_wise_receipt/static/description/banner.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..fa35fef5e 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..068fddfe7 --- /dev/null +++ b/pos_category_wise_receipt/static/description/index.html @@ -0,0 +1,47 @@ +
+
+

POS Category wise receipt

+

Cybrosys Technologies , www.cybrosys.com

+
+
+ +
+
+

+ ☛ Choose your product randomly +

+
+
+ +
+
+
+
+ +
+
+

+ ☛Product category wise receipt +

+
+
+ +
+
+
+
+
+

Need Any Help?

+ + +
\ No newline at end of file diff --git a/pos_category_wise_receipt/static/description/pos_receipt.png b/pos_category_wise_receipt/static/description/pos_receipt.png new file mode 100644 index 000000000..25747d33a Binary files /dev/null and b/pos_category_wise_receipt/static/description/pos_receipt.png differ diff --git a/pos_category_wise_receipt/static/description/product_screen.png b/pos_category_wise_receipt/static/description/product_screen.png new file mode 100644 index 000000000..89d8fad49 Binary files /dev/null and b/pos_category_wise_receipt/static/description/product_screen.png differ diff --git a/pos_category_wise_receipt/static/src/css/pos_ticket.css b/pos_category_wise_receipt/static/src/css/pos_ticket.css new file mode 100644 index 000000000..184235706 --- /dev/null +++ b/pos_category_wise_receipt/static/src/css/pos_ticket.css @@ -0,0 +1,4 @@ +.pos_underline{ + + text-decoration: underline; +} 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..9bda43504 --- /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..663f7e21b --- /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..3d1da3ef9 --- /dev/null +++ b/pos_category_wise_receipt/views/pos_ticket_view.xml @@ -0,0 +1,10 @@ + + + + +