Browse Source

[ADD0] Initial Commit

pull/30/merge
SHEREEF PT 8 years ago
parent
commit
95adbc0e41
  1. 1
      customer_due_payment/__init__.py
  2. 37
      customer_due_payment/__manifest__.py
  3. 94
      customer_due_payment/report/customer_due_payment_report.xml
  4. BIN
      customer_due_payment/static/description/after_fix.png
  5. BIN
      customer_due_payment/static/description/banner.jpg
  6. BIN
      customer_due_payment/static/description/before_fix.png
  7. BIN
      customer_due_payment/static/description/cybro_logo.png
  8. BIN
      customer_due_payment/static/description/icon.png
  9. 105
      customer_due_payment/static/description/index.html
  10. BIN
      customer_due_payment/static/description/main.png

1
customer_due_payment/__init__.py

@ -0,0 +1 @@
# -*- coding: utf-8 -*-

37
customer_due_payment/__manifest__.py

@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Jesni Banu(<https://www.cybrosys.com>)
# you can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# 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 <https://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': "Customer Due Payment",
'version': '10.0.1.0',
'summary': """Modified Customer Due Payment for Partners""",
'description': """This module corrected the calculation of existing customer due payment report.""",
'author': "Cybrosys Techno Solutions",
'company': 'Cybrosys Techno Solutions',
'website': "https://www.Cybrosys.com",
'category': 'Accounting',
'depends': ['base', 'account'],
'data': [
'report/customer_due_payment_report.xml',
],
'images': ['static/description/banner.jpg'],
'license': 'LGPL-3',
'installable': True,
'application': False,
}

94
customer_due_payment/report/customer_due_payment_report.xml

@ -0,0 +1,94 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<template id="account.report_overdue_document">
<t t-call="report.external_layout">
<div class="page">
<div class="row">
<div class="col-xs-5 col-xs-offset-7">
<span t-field="o.name"/><br/>
<span t-raw="o.contact_address.replace('\n\n', '\n').replace('\n', '&lt;br&gt;')"/>
<span t-field="o.vat"/>
</div>
<p>
Document: Customer account statement<br/>
Date: <span t-esc="Date"/><br/>
<t t-if="o.ref">Customer ref: <span t-field="o.ref"/></t>
</p>
<t t-if="Lines[o.id]">
<span t-field="res_company.overdue_msg"/>
<table class="table table-condensed" t-foreach="Lines[o.id]" t-as="currency">
<thead>
<tr>
<th>Reference number</th>
<th class="text-center">Date</th>
<th class="text-center">Due Date</th>
<th>Communication</th>
<th class="text-right">Total</th>
<th class="text-right">Due</th>
<th class="text-right">Paid</th>
<th class="text-center">Litigation</th>
</tr>
</thead>
<t t-set="total_due" t-value="0"/>
<t t-set="total_paid" t-value="0"/>
<t t-set="total" t-value="0"/>
<tr t-foreach="Lines[o.id][currency]" t-as="line">
<t t-set="invoice" t-value="env['account.invoice'].search([('number','=',line['move_id'])])"/>
<td>
<span t-esc="line['move_id']"/>
</td>
<td>
<span t-esc="line['date']"/>
</td>
<td>
<span t-esc="line['date_maturity']"/>
</td>
<td>
<t t-if="line['name'] != '/'"><span t-esc="line['name']"/></t>
<span t-esc="line['ref']"/>
</td>
<td class="text-right">
<span t-esc="invoice.amount_total" t-options="{'widget': 'monetary', 'display_currency': currency}"/>
</td>
<td class="text-right">
<span t-esc="invoice.residual" t-options="{'widget': 'monetary', 'display_currency': currency}"/>
</td>
<td class="text-right">
<span t-esc="invoice.amount_total - invoice.residual" t-options="{'widget': 'monetary', 'display_currency': currency}"/>
</td>
<td class="text-center">
<span t-if="line['blocked']">x</span>
</td>
<t t-set="total_due" t-value="total_due + invoice.residual"/>
<t t-set="total_paid" t-value="total_paid + (invoice.amount_total - invoice.residual)"/>
<t t-set="total" t-value="total + invoice.amount_total"/>
</tr>
<tr>
<td colspan="3"></td>
<td><strong>Subtotal :</strong></td>
<td class="text-right"><span t-esc="total" t-options="{'widget': 'monetary', 'display_currency': currency}"/></td>
<td class="text-right"><span t-esc="total_due" t-options="{'widget': 'monetary', 'display_currency': currency}"/></td>
<td class="text-right"><span t-esc="total_paid" t-options="{'widget': 'monetary', 'display_currency': currency}"/></td>
<td></td>
</tr>
<tr>
<td colspan="3"></td>
<td><strong>Balance :</strong></td>
<td></td>
<td class="text-right">
<span t-esc="total_due" t-options="{'widget': 'monetary', 'display_currency': currency}"/>
</td>
</tr>
</table>
</t>
<p t-if="not Lines[o.id]">
<strong>There is nothing due with this customer.</strong>
</p>
</div>
</div>
</t>
</template>
</data>
</odoo>

BIN
customer_due_payment/static/description/after_fix.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
customer_due_payment/static/description/banner.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

BIN
customer_due_payment/static/description/before_fix.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
customer_due_payment/static/description/cybro_logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
customer_due_payment/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

105
customer_due_payment/static/description/index.html

@ -0,0 +1,105 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan">Advanced Customer Due Payment</h2>
<h3 class="oe_slogan">This Module Modified The Existing Customer Due Payment</h3>
<h4 class="oe_slogan"><a href="https://www.cybrosys.com">Cybrosys Technologies</a> </h4>
</div>
<div class="oe_row oe_spaced" style="padding-left:65px;">
<h4>Features:</h4>
<div>
<span style="color:green;"> &#9745; </span> Corrected the calculation of due payment.<br/>
<span style="color:green;"> &#9745; </span> Added Total Invoice Amount in Report.<br/>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<div class="oe_picture">
<h3 class="oe_slogan">Overview</h3>
<p class="oe_mt32" style="text-align: center;">
In odoo we can take the printout of customer due payment. This is a default feature.
But in it, the calculated total due amount is wrong in the case of partially paid customer. For eg, a customer makes an invoice for an amount
2000. But he already made a partial payment of 1000 and when we take the customer due payment report,
it will show the due amount as 2000. It doesn't consider the partially paid amount.
So here we fixed the issue by correcting the calculation of the due amount.
</p>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<div style="text-align: center">
<p>
<h4>Customer -> Due Payments</h4>
<p>
</div>
<div style="text-align: center">
<a href="https://www.cybrosys.com">
<div class="oe_demo oe_picture oe_screenshot">
<img style="border:10px solid white;height: 400px;" src="main.png">
</div>
</a>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<div style="text-align: center">
<p>
<h4>Before Module Installation</h4>
</p>
</div>
<div class="" style="text-align: center">
<div class="oe_demo oe_picture oe_screenshot">
<img style="border:10px solid white;height: 400px;" src="before_fix.png">
</div>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<div style="text-align: center">
<p>
<h4>After Module Installation</h4>
</p>
</div>
<div class="" style="text-align: center">
<div class="oe_demo oe_picture oe_screenshot">
<img style="border:10px solid white;height: 400px;" src="after_fix.png">
</div>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2>
<div class="oe_slogan" style="margin-top:10px !important;">
<div>
<a class="btn btn-primary btn-lg mt8"
style="color: #FFFFFF !important;border-radius: 0;" href="https://www.cybrosys.com"><i
class="fa fa-envelope"></i> Email </a> <a
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;"
href="https://www.cybrosys.com/contact/"><i
class="fa fa-phone"></i> Contact Us </a> <a
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;"
href="https://www.cybrosys.com/odoo-customization-and-installation/"><i
class="fa fa-check-square"></i> Request Customization </a>
</div>
<br>
<img src="cybro_logo.png" style="width: 190px; margin-bottom: 20px;" class="center-block">
<div>
<a href="https://twitter.com/cybrosys" target="_blank"><i class="fa fa-2x fa-twitter" style="color:white;background: #00a0d1;width:35px;"></i></a></td>
<a href="https://www.linkedin.com/company/cybrosys-technologies-pvt-ltd" target="_blank"><i class="fa fa-2x fa-linkedin" style="color:white;background: #31a3d6;width:35px;padding-left: 3px;"></i></a></td>
<a href="https://www.facebook.com/cybrosystechnologies" target="_blank"><i class="fa fa-2x fa-facebook" style="color:white;background: #3b5998;width:35px;padding-left: 8px;"></i></a></td>
<a href="https://plus.google.com/106641282743045431892/about" target="_blank"><i class="fa fa-2x fa-google-plus" style="color:white;background: #c53c2c;width:35px;padding-left: 3px;"></i></a></td>
<a href="https://in.pinterest.com/cybrosys" target="_blank"><i class="fa fa-2x fa-pinterest" style="color:white;background: #ac0f18;width:35px;padding-left: 3px;"></i></a></td>
</div>
</div>
</section>

BIN
customer_due_payment/static/description/main.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Loading…
Cancel
Save