diff --git a/untaxed_saleorder_report/__init__.py b/untaxed_saleorder_report/__init__.py new file mode 100644 index 000000000..b2462eb50 --- /dev/null +++ b/untaxed_saleorder_report/__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 . +# +############################################################################## +import models diff --git a/untaxed_saleorder_report/__openerp__.py b/untaxed_saleorder_report/__openerp__.py new file mode 100644 index 000000000..9acc1528a --- /dev/null +++ b/untaxed_saleorder_report/__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': 'Tax Dissolved Sale Order Report', + 'version': '0.2', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': "http://www.cybrosys.com", + 'category': 'sale', + 'description': """ Module gives the Tax Dissolved (In Total Amount) SO/Customer Invoice Print""", + 'depends': ['sale', 'account'], + 'license': 'AGPL-3', + "data": [ + "views/without_tax_report_account_view.xml", + "views/without_tax_account_view.xml", + "views/without_tax_sale_view.xml", + "views/without_tax_report_sale_view.xml", + + ], + 'installable': True, + 'auto_install': False, +} + + diff --git a/untaxed_saleorder_report/models/__init__.py b/untaxed_saleorder_report/models/__init__.py new file mode 100644 index 000000000..6458c5b91 --- /dev/null +++ b/untaxed_saleorder_report/models/__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 . +# +############################################################################## +import without_tax_report diff --git a/untaxed_saleorder_report/models/without_tax_report.py b/untaxed_saleorder_report/models/without_tax_report.py new file mode 100644 index 000000000..d1c2b6fc3 --- /dev/null +++ b/untaxed_saleorder_report/models/without_tax_report.py @@ -0,0 +1,65 @@ +# -*- 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 . +# +############################################################################## +from openerp.report import report_sxw +from openerp.osv import osv + + +class WithoutTax(report_sxw.rml_parse): + + _inherit = 'account.tax' + + def __init__(self, cr, uid, name, context=None): + super(WithoutTax, self).__init__(cr, uid, name, context=context) + self.localcontext.update({ + 'get_details': self.get_details, + + + }) + self.context = context + + def get_details(self, tax, subtotal): + print tax + total_amount = 0 + tax_amount = [] + for i in tax: + tax_amount.append(i.amount) + print tax_amount + for j in range(0, len(tax)): + total_amount = (tax_amount[j] / 100 * subtotal) + total_amount + print total_amount + total = total_amount + subtotal + return total + + +class AccountReport(osv.AbstractModel): + _name = 'report.untaxed_saleorder_report.invoice_account_report' + _inherit = 'report.abstract_report' + _template = 'untaxed_saleorder_report.invoice_account_report' + _wrapped_report_class = WithoutTax + + +class SaleReport(osv.AbstractModel): + _name = 'report.untaxed_saleorder_report.invoice_sale_report' + _inherit = 'report.abstract_report' + _template = 'untaxed_saleorder_report.invoice_sale_report' + _wrapped_report_class = WithoutTax diff --git a/untaxed_saleorder_report/models/without_tax_report.py~ b/untaxed_saleorder_report/models/without_tax_report.py~ new file mode 100644 index 000000000..6cbeee3ad --- /dev/null +++ b/untaxed_saleorder_report/models/without_tax_report.py~ @@ -0,0 +1,39 @@ +from openerp.report import report_sxw +from openerp.osv import osv + + +class WithoutTax(report_sxw.rml_parse): + + _inherit = 'account.tax' + + def __init__(self, cr, uid, name, context=None): + super(WithoutTax, self).__init__(cr, uid, name, context=context) + self.localcontext.update({ + 'get_details': self.get_details, + + + }) + self.context = context + + def get_details(self, tax, subtotal): + print tax + total_amount = 0 + tax_amount = [] + for i in tax: + tax_amount.append(i.amount*100 ) + print tax_amount + for j in range(0, len(tax)): + total_amount = (tax_amount[j] / 100 * subtotal) + total_amount + print total_amount + total = total_amount + subtotal + return total + + +class PrintReport(osv.AbstractModel): + _name = 'report.untaxed_saleorder_report.invoice_report1' + _inherit = 'report.abstract_report' + _template = 'untaxed_saleorder_report.invoice_report1' + _wrapped_report_class = WithoutTax + + + diff --git a/untaxed_saleorder_report/static/description/banner.jpg b/untaxed_saleorder_report/static/description/banner.jpg new file mode 100644 index 000000000..2c4c06e36 Binary files /dev/null and b/untaxed_saleorder_report/static/description/banner.jpg differ diff --git a/untaxed_saleorder_report/static/description/icon.png b/untaxed_saleorder_report/static/description/icon.png new file mode 100644 index 000000000..cb8eb55e3 Binary files /dev/null and b/untaxed_saleorder_report/static/description/icon.png differ diff --git a/untaxed_saleorder_report/static/description/index.html b/untaxed_saleorder_report/static/description/index.html new file mode 100644 index 000000000..b8012b2e1 --- /dev/null +++ b/untaxed_saleorder_report/static/description/index.html @@ -0,0 +1,101 @@ +
+
+

Tax Dissolved Sale Order/Customer Invoice Report

+
+

+ We can easily print the Sale Order & Customer Invoice without tax. + Here actually we do not avoid the tax amount, But it dissolved with total amount. +

+
+
+
+
+
+ +
+
+

Tax Dissolved Sale Report

+
+

+ If you want to hide the tax information from the Sale Report without + effecting the total amount in the sale order report.
+ + You just click the PRINT button + then there we can see two option +

+

+ 1.Quotation/Sale Order
+ 2.Tax Dissolved Sale Order +

+
+
+
+ +
+
+
+

Print Button

+
+ +
+
+
+

Tax Dissolved Sale Order Print

+ +
+
+
+ +
+
+

Tax Dissolved Invoice Report

+
+

+ If you want to hide the tax information from the Invoice Report without + effecting the total amount in the customer invoice report.
+ + You just click the PRINT button + then there we can see two option +

+

+ 1.Invoice
+ 2.Tax Dissolved Invoice +

+
+
+
+ +
+
+
+

Print Button

+
+ +
+
+
+

Tax Dissolved Invoice Print

+ +
+
+
+ +
+

Need Any Help?

+ +
+ + + + + diff --git a/untaxed_saleorder_report/static/description/originalinvoice.png b/untaxed_saleorder_report/static/description/originalinvoice.png new file mode 100644 index 000000000..f6714daf6 Binary files /dev/null and b/untaxed_saleorder_report/static/description/originalinvoice.png differ diff --git a/untaxed_saleorder_report/static/description/taxdissolvedinvoice.png b/untaxed_saleorder_report/static/description/taxdissolvedinvoice.png new file mode 100644 index 000000000..d35950e03 Binary files /dev/null and b/untaxed_saleorder_report/static/description/taxdissolvedinvoice.png differ diff --git a/untaxed_saleorder_report/static/description/taxdissolvedmenu_sale.png b/untaxed_saleorder_report/static/description/taxdissolvedmenu_sale.png new file mode 100644 index 000000000..10e9ff6eb Binary files /dev/null and b/untaxed_saleorder_report/static/description/taxdissolvedmenu_sale.png differ diff --git a/untaxed_saleorder_report/static/description/taxdissolvedreportmenu.png b/untaxed_saleorder_report/static/description/taxdissolvedreportmenu.png new file mode 100644 index 000000000..8e3d8896a Binary files /dev/null and b/untaxed_saleorder_report/static/description/taxdissolvedreportmenu.png differ diff --git a/untaxed_saleorder_report/static/description/taxdissolvedsalereport.png b/untaxed_saleorder_report/static/description/taxdissolvedsalereport.png new file mode 100644 index 000000000..f6896b7cb Binary files /dev/null and b/untaxed_saleorder_report/static/description/taxdissolvedsalereport.png differ diff --git a/untaxed_saleorder_report/views/without_tax_account_view.xml b/untaxed_saleorder_report/views/without_tax_account_view.xml new file mode 100644 index 000000000..abdb4d213 --- /dev/null +++ b/untaxed_saleorder_report/views/without_tax_account_view.xml @@ -0,0 +1,114 @@ + + + + + + + + + diff --git a/untaxed_saleorder_report/views/without_tax_account_view.xml~ b/untaxed_saleorder_report/views/without_tax_account_view.xml~ new file mode 100644 index 000000000..e69de29bb diff --git a/untaxed_saleorder_report/views/without_tax_report_account_view.xml b/untaxed_saleorder_report/views/without_tax_report_account_view.xml new file mode 100644 index 000000000..276648ff9 --- /dev/null +++ b/untaxed_saleorder_report/views/without_tax_report_account_view.xml @@ -0,0 +1,13 @@ + + + + + + diff --git a/untaxed_saleorder_report/views/without_tax_report_account_view.xml~ b/untaxed_saleorder_report/views/without_tax_report_account_view.xml~ new file mode 100644 index 000000000..0329541ba --- /dev/null +++ b/untaxed_saleorder_report/views/without_tax_report_account_view.xml~ @@ -0,0 +1,13 @@ + + + + + + diff --git a/untaxed_saleorder_report/views/without_tax_report_sale_view.xml b/untaxed_saleorder_report/views/without_tax_report_sale_view.xml new file mode 100644 index 000000000..9de3eb2ea --- /dev/null +++ b/untaxed_saleorder_report/views/without_tax_report_sale_view.xml @@ -0,0 +1,13 @@ + + + + + + \ No newline at end of file diff --git a/untaxed_saleorder_report/views/without_tax_sale_view.xml b/untaxed_saleorder_report/views/without_tax_sale_view.xml new file mode 100644 index 000000000..f61b6d818 --- /dev/null +++ b/untaxed_saleorder_report/views/without_tax_sale_view.xml @@ -0,0 +1,133 @@ + + + + + + + + +