[fix] added validation to match account currency with existing gle and test case

This commit is contained in:
Anand Doshi
2015-09-30 16:41:15 +05:30
parent 248c867a2c
commit 4945b94950
10 changed files with 122 additions and 59 deletions

7
erpnext/exceptions.py Normal file
View File

@@ -0,0 +1,7 @@
from __future__ import unicode_literals
import frappe
# accounts
class CustomerFrozen(frappe.ValidationError): pass
class InvalidAccountCurrency(frappe.ValidationError): pass
class InvalidCurrency(frappe.ValidationError): pass