Merge branch 'develop'

This commit is contained in:
Pratik Vyas 2014-12-23 19:11:08 +05:30
commit ea909ace01
7 changed files with 9 additions and 7 deletions

View File

@ -1 +1 @@
__version__ = '4.15.1'
__version__ = '4.15.2'

View File

@ -4,7 +4,7 @@ app_publisher = "Web Notes Technologies Pvt. Ltd. and Contributors"
app_description = "Open Source Enterprise Resource Planning for Small and Midsized Organizations"
app_icon = "icon-th"
app_color = "#e74c3c"
app_version = "4.15.1"
app_version = "4.15.2"
error_report_email = "support@erpnext.com"

View File

@ -6,6 +6,7 @@ import frappe
def execute():
reference_date = guess_reference_date()
frappe.reload_doc('accounts', 'doctype', 'journal_voucher_detail')
for name in frappe.db.sql_list("""select name from `tabJournal Voucher`
where date(creation)>=%s""", reference_date):
jv = frappe.get_doc("Journal Voucher", name)

View File

@ -5,6 +5,7 @@ from __future__ import unicode_literals
import frappe
def execute():
frappe.reload_doc('manufacturing', 'doctype', 'bom_operation')
for d in frappe.db.sql("""select bom.name from `tabBOM` bom where bom.docstatus < 2 and
exists(select bom_op.name from `tabBOM Operation` bom_op where
bom.name = bom_op.parent and bom_op.fixed_cycle_cost IS NOT NULL)""", as_dict=1):

View File

@ -180,7 +180,7 @@
"fieldtype": "Data",
"hidden": 0,
"label": "Customer's Purchase Order No",
"no_copy": 1,
"no_copy": 0,
"oldfieldname": "po_no",
"oldfieldtype": "Data",
"permlevel": 0,
@ -1013,7 +1013,7 @@
"idx": 1,
"in_create": 0,
"is_submittable": 1,
"modified": "2014-12-16 10:37:08.934881",
"modified": "2014-12-22 14:58:19.575566",
"modified_by": "Administrator",
"module": "Stock",
"name": "Delivery Note",

View File

@ -39,8 +39,8 @@ class StockLedgerEntry(Document):
(self.warehouse, self.item_code, self.batch_no))[0][0])
if batch_bal_after_transaction < 0:
frappe.throw(_("Negative balance in Batch {0} for Item {1} at Warehouse {2} on {3} {4}").format(\
batch_bal_after_transaction - self.actual_qty, self.item_code, self.warehouse,
frappe.throw(_("Negative balance {0} in Batch {1} for Item {2} at Warehouse {3} on {4} {5}")
.format(batch_bal_after_transaction - self.actual_qty, self.batch_no, self.item_code, self.warehouse,
formatdate(self.posting_date), self.posting_time))
def validate_mandatory(self):

View File

@ -1,7 +1,7 @@
from setuptools import setup, find_packages
import os
version = "4.15.1"
version = "4.15.2"
with open("requirements.txt", "r") as f:
install_requires = f.readlines()