diff --git a/pos_category_wise_receipt/README.rst b/pos_category_wise_receipt/README.rst new file mode 100644 index 000000000..b4bbffa52 --- /dev/null +++ b/pos_category_wise_receipt/README.rst @@ -0,0 +1,22 @@ +============================ +POS Category wise receipt v8 +============================ +This module aims to print category wise receipt for point of sale. + +Features +======== +* The receipt shows category wise product 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..b8b509efd --- /dev/null +++ b/pos_category_wise_receipt/__init__.py @@ -0,0 +1,22 @@ +# -*- 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..aa76c1a18 --- /dev/null +++ b/pos_category_wise_receipt/__openerp__.py @@ -0,0 +1,44 @@ +# -*- 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': """This module print category wise POS receipt.""", + 'author': "Cybrosys Techno Solutions", + 'website': "http://www.cybrosys.com", + 'category': 'Point of Sale', + 'version': '0.2', + 'depends': [ + 'base', + 'point_of_sale', + ], + 'data': [ + 'views/pos_category_wise_receipt_view.xml', + ], + 'qweb': [ + 'static/src/xml/pos_category_wise_receipt.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..da66b5aff --- /dev/null +++ b/pos_category_wise_receipt/static/description/index.html @@ -0,0 +1,48 @@ +
+
+

POS Category wise receipt

+

Cybrosys Technologies , www.cybrosys.com

+
+
+ +
+
+

+ ☛ Choose your product randomly +

+
+
+ +
+
+
+
+ +
+
+

+ ☛Product category wise receipt +

+
+
+ +
+
+
+
+
+

Need Any Help?

+ + +
+ diff --git a/pos_category_wise_receipt/static/description/pic1.png b/pos_category_wise_receipt/static/description/pic1.png new file mode 100644 index 000000000..16a117150 Binary files /dev/null and b/pos_category_wise_receipt/static/description/pic1.png differ diff --git a/pos_category_wise_receipt/static/description/pic2.png b/pos_category_wise_receipt/static/description/pic2.png new file mode 100644 index 000000000..25747d33a Binary files /dev/null and b/pos_category_wise_receipt/static/description/pic2.png differ diff --git a/pos_category_wise_receipt/static/src/css/pos_category.css b/pos_category_wise_receipt/static/src/css/pos_category.css new file mode 100644 index 000000000..88c1704cf --- /dev/null +++ b/pos_category_wise_receipt/static/src/css/pos_category.css @@ -0,0 +1,5 @@ + + +.pos_underline { + text-decoration: underline; +} \ No newline at end of file diff --git a/pos_category_wise_receipt/static/src/js/pos_category_wise_receipt.js b/pos_category_wise_receipt/static/src/js/pos_category_wise_receipt.js new file mode 100644 index 000000000..106fba0b3 --- /dev/null +++ b/pos_category_wise_receipt/static/src/js/pos_category_wise_receipt.js @@ -0,0 +1,58 @@ +openerp.pos_category_wise_receipt = function(instance){ + + var module = instance.point_of_sale; + var OrderlineParent = module.Orderline; + var orderline_id = 1; + console.log("12"); + + module.Orderline = module.Orderline.extend({ + initialize: function(attr,options){ + this.pos = options.pos; + + this.order = options.order; + + 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.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'; + }, + get_category_id: function(){ + return this.product.pos_categ_id[0]; + }, + // selects or deselects this orderline + set_selected: function(selected){ + + this.selected = selected; + }, + set_selected_product: function(selected){ + this.count = selected; + this.trigger('change',this); + }, + set_selected_category: function(selected){ + this.category_selected = selected; + this.trigger('change',this); + }, + is_selected_product: function(){ + return this.count; + }, + is_selected_category: function(){ + return this.category_selected; + }, + + }); + +} + diff --git a/pos_category_wise_receipt/static/src/xml/pos_category_wise_receipt.xml b/pos_category_wise_receipt/static/src/xml/pos_category_wise_receipt.xml new file mode 100644 index 000000000..20738eff9 --- /dev/null +++ b/pos_category_wise_receipt/static/src/xml/pos_category_wise_receipt.xml @@ -0,0 +1,123 @@ + + + +
+
+
+
+ Phone:
+ User:
+ Shop:
+
+ +
+ +
+
+
+ + + + + + + + + +

+ +

+ +
+

+
+ + + + + + + + +
+ + +
+ With a % discount +
+
+
+ + + +
+
+
+ + + + + +
+ +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + +
Subtotal: + +
+ +
Discount: + +
Total: + +
+
+ + + + + +
+ + + +
+
+ + +
Change: + +
+ +
+
+ +
+
+
+
+
+
\ No newline at end of file diff --git a/pos_category_wise_receipt/views/pos_category_wise_receipt_view.xml b/pos_category_wise_receipt/views/pos_category_wise_receipt_view.xml new file mode 100644 index 000000000..53409bdfd --- /dev/null +++ b/pos_category_wise_receipt/views/pos_category_wise_receipt_view.xml @@ -0,0 +1,15 @@ + + + +