Merge branch 'master' into develop

This commit is contained in:
Anand Doshi
2016-04-27 15:44:11 +05:30
6 changed files with 41 additions and 34 deletions

View File

@@ -1,2 +1,2 @@
from __future__ import unicode_literals from __future__ import unicode_literals
__version__ = '6.27.11' __version__ = '6.27.12'

View File

@@ -42,6 +42,11 @@ class FiscalYear(Document):
def on_update(self): def on_update(self):
check_duplicate_fiscal_year(self) check_duplicate_fiscal_year(self)
def on_trash(self):
global_defaults = frappe.get_doc("Global Defaults")
if global_defaults.current_fiscal_year == self.name:
frappe.throw(_("You cannot delete Fiscal Year {0}. Fiscal Year {0} is set as default in Global Settings").format(self.name))
def validate_overlap(self): def validate_overlap(self):
existing_fiscal_years = frappe.db.sql("""select name from `tabFiscal Year` existing_fiscal_years = frappe.db.sql("""select name from `tabFiscal Year`
where ( where (

View File

@@ -7,7 +7,7 @@ app_publisher = "Frappe Technologies Pvt. Ltd."
app_description = """ERP made simple""" app_description = """ERP made simple"""
app_icon = "icon-th" app_icon = "icon-th"
app_color = "#e74c3c" app_color = "#e74c3c"
app_version = "6.27.11" app_version = "6.27.12"
app_email = "info@erpnext.com" app_email = "info@erpnext.com"
app_license = "GNU General Public License (v3)" app_license = "GNU General Public License (v3)"
source_link = "https://github.com/frappe/erpnext" source_link = "https://github.com/frappe/erpnext"

View File

@@ -206,3 +206,5 @@ def get_month_details(year, month):
'month_end_date': med, 'month_end_date': med,
'month_days': month_days 'month_days': month_days
}) })
else:
frappe.throw(_("Fiscal Year {0} not found").format(year))

View File

@@ -512,8 +512,8 @@ apps/erpnext/erpnext/projects/doctype/time_log/time_log.py +211,Production Order
apps/erpnext/erpnext/setup/setup_wizard/install_fixtures.py +139,Proposal Writing,الكتابة الاقتراح apps/erpnext/erpnext/setup/setup_wizard/install_fixtures.py +139,Proposal Writing,الكتابة الاقتراح
apps/erpnext/erpnext/setup/doctype/sales_person/sales_person.py +35,Another Sales Person {0} exists with the same Employee id,شخص آخر مبيعات {0} موجود مع نفس الرقم الوظيفي apps/erpnext/erpnext/setup/doctype/sales_person/sales_person.py +35,Another Sales Person {0} exists with the same Employee id,شخص آخر مبيعات {0} موجود مع نفس الرقم الوظيفي
apps/erpnext/erpnext/config/accounts.py +70,Masters,الماجستير apps/erpnext/erpnext/config/accounts.py +70,Masters,الماجستير
apps/erpnext/erpnext/config/accounts.py +135,Update Bank Transaction Dates,تواريخ عملية البنك التحديث apps/erpnext/erpnext/config/accounts.py +127,Update Bank Transaction Dates,تواريخ عملية البنك التحديث
apps/erpnext/erpnext/stock/stock_ledger.py +337,Negative Stock Error ({6}) for Item {0} in Warehouse {1} on {2} {3} in {4} {5},خطأ الأسهم السلبية ( { } 6 ) القطعة ل {0} في {1} في معرض النماذج ثلاثية على {2} {3} {4} في {5} apps/erpnext/erpnext/stock/stock_ledger.py +337,Negative Stock Error ({6}) for Item {0} in Warehouse {1} on {2} {3} in {4} {5},خطأ الأسهم السلبية ( {6} ) القطعة ل {0} في {1} في معرض النماذج ثلاثية على {2} {3} {4} في {5}
apps/erpnext/erpnext/config/projects.py +30,Time Tracking,تتبع الوقت apps/erpnext/erpnext/config/projects.py +30,Time Tracking,تتبع الوقت
DocType: Fiscal Year Company,Fiscal Year Company,الشركة السنة المالية DocType: Fiscal Year Company,Fiscal Year Company,الشركة السنة المالية
DocType: Packing Slip Item,DN Detail,DN التفاصيل DocType: Packing Slip Item,DN Detail,DN التفاصيل
1 DocType: Employee Salary Mode طريقة تحصيل الراتب
512 DocType: Packing Slip Item DN Detail DN التفاصيل
513 DocType: Time Log Billed توصف
514 DocType: Batch Batch Description دفعة الوصف
515 DocType: Delivery Note Time at which items were delivered from warehouse الوقت الذي تم تسليم العناصر من مستودع
516 DocType: Sales Invoice Sales Taxes and Charges الضرائب على المبيعات والرسوم
517 DocType: Employee Organization Profile الملف الشخصي المنظمة
518 DocType: Employee Reason for Resignation سبب الاستقالة
519 apps/erpnext/erpnext/config/hr.py +151 Template for performance appraisals. نموذج ل تقييم الأداء.

View File

@@ -1,7 +1,7 @@
from setuptools import setup, find_packages from setuptools import setup, find_packages
from pip.req import parse_requirements from pip.req import parse_requirements
version = "6.27.11" version = "6.27.12"
requirements = parse_requirements("requirements.txt", session="") requirements = parse_requirements("requirements.txt", session="")
setup( setup(