Merge branch 'master' into develop

This commit is contained in:
Nabin Hait 2016-11-01 17:44:43 +05:30
commit df01b5770b
7 changed files with 43 additions and 4 deletions

View File

@ -2,7 +2,7 @@
from __future__ import unicode_literals from __future__ import unicode_literals
import frappe import frappe
__version__ = '7.1.4' __version__ = '7.1.5'
def get_default_company(user=None): def get_default_company(user=None):
'''Get default company for user''' '''Get default company for user'''

View File

@ -131,7 +131,8 @@ class RequestforQuotation(BuyingController):
def send_email(self, data, sender, subject, message, attachments): def send_email(self, data, sender, subject, message, attachments):
make(subject = subject, content=message,recipients=data.email_id, make(subject = subject, content=message,recipients=data.email_id,
sender=sender,attachments = attachments, send_email=True)["name"] sender=sender,attachments = attachments, send_email=True,
doctype=self.doctype, name=self.name)["name"]
frappe.msgprint(_("Email sent to supplier {0}").format(data.supplier)) frappe.msgprint(_("Email sent to supplier {0}").format(data.supplier))

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 716 KiB

View File

@ -0,0 +1,37 @@
#Adjust Withhold Amount in the Payment Entry
###Question
Let's assume that outstanding against a Sales Invoice is 20,000. When client makes payment, they will only pay 19,600. Rest 400 will be booked under Withhold account. How to manage this scenario in the Payment Entry.
###Answer
In the Payment Entry, you can mention Withhold Account in the Deductions or Loss table. Detailed steps below.
####Step 1: Setup Withhold Account
Create a Withhold Account in your Chart of Accounts master.
`Accounts > Chart of Accounts'
####Step 2: Payment Entry
To create Payment Entry, go to unpaid Sales Invoice and create click on Make Payment button.
#####Step 2.1: Enter Payment Amount
Enter Payment Amount as 19,600.
<img alt="Sales Invoice Payment Amount" class="screenshot" src="{{docs_base_url}}/assets/img/articles/withhold-1.png">
#####Step 2.2: Allocate Against Sales Invoice
Against Sales Invoice, allocate 20,000 (explained in GIF below).
#####Step 2.3: Add Deduction/Loss Account
You can notice that there is a difference of 400 in the Payment Amount and the Amount Allocated against Sales Invoice. You can book this difference account under Withhold Account.
<img alt="Deduction/Loss Account" class="screenshot" src="{{docs_base_url}}/assets/img/articles/withhold-2.gif">
Following same steps, you can also manage difference availed due to Currency Exchange Gain/Loss.

View File

@ -11,4 +11,5 @@ post-dated-cheque-entry
update-stock-option-in-sales-invoice update-stock-option-in-sales-invoice
what-is-the-differences-of-total-and-valuation-in-tax-and-charges what-is-the-differences-of-total-and-valuation-in-tax-and-charges
withdrawing-salary-from-owners-equity-account withdrawing-salary-from-owners-equity-account
adjust-withhold-amount-payment-entry
c-form c-form

View File

@ -31,7 +31,7 @@ class StockEntry(StockController):
item.update(get_bin_details(item.item_code, item.s_warehouse)) item.update(get_bin_details(item.item_code, item.s_warehouse))
def validate(self): def validate(self):
self.pro_doc = None self.pro_doc = frappe._dict()
if self.production_order: if self.production_order:
self.pro_doc = frappe.get_doc('Production Order', self.production_order) self.pro_doc = frappe.get_doc('Production Order', self.production_order)
@ -582,7 +582,7 @@ class StockEntry(StockController):
def set_production_order_details(self): def set_production_order_details(self):
if not getattr(self, "pro_doc", None): if not getattr(self, "pro_doc", None):
self.pro_doc = None self.pro_doc = frappe._dict()
if self.production_order: if self.production_order:
# common validations # common validations