Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav Naik committed Oct 4, 2016
2 parents 603b2fa + e2d5662 commit f7de366
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion awfis_erpnext/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from __future__ import unicode_literals

__version__ = '1.0.19'
__version__ = '1.0.20'
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ def get_conditions(filters):
return conditions

#get all details
# def get_stock_ledger_entries(filters):
# conditions = get_conditions(filters)
# return frappe.db.sql("""select A.item_code, A.batch_no, warehouse,
# posting_date, actual_qty
# from `tabStock Ledger Entry` A inner join `tabBatch` ON A.batch_no = B.batch_no
# where A.docstatus < 2 and ifnull(batch_no, '') != '' %s order by A.item_code, warehouse""" %
# conditions, as_dict=1)

def get_stock_ledger_entries(filters):
conditions = get_conditions(filters)
return frappe.db.sql("""select item_code, batch_no, warehouse,
Expand Down
2 changes: 1 addition & 1 deletion awfis_erpnext/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"validate": "awfis_erpnext.awfis_erpnext.awf.validate_stock_entry"
},
"Purchase Receipt": {
"validate": "awfis_erpnext.awfis_erpnext.awf.validate_stock_entry"
"on_submit": "awfis_erpnext.awfis_erpnext.awf.validate_stock_entry"
}
}

Expand Down

0 comments on commit f7de366

Please sign in to comment.