mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 15:39:20 +00:00
Merge branch '1310' of github.com:webnotes/erpnext
Conflicts: accounts/doctype/account/account.py controllers/accounts_controller.py patches/patch_list.py selling/doctype/sales_common/sales_common.py stock/doctype/purchase_receipt/purchase_receipt.py
This commit is contained in:
13
patches/1311/p01_make_gl_entries_for_si.py
Normal file
13
patches/1311/p01_make_gl_entries_for_si.py
Normal file
@@ -0,0 +1,13 @@
|
||||
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
|
||||
# License: GNU General Public License v3. See license.txt
|
||||
|
||||
import webnotes
|
||||
|
||||
def execute():
|
||||
si_no_gle = webnotes.conn.sql("""select si.name from `tabSales Invoice` si
|
||||
where docstatus=1 and not exists(select name from `tabGL Entry`
|
||||
where voucher_type='Sales Invoice' and voucher_no=si.name)
|
||||
and modified >= '2013-08-01'""")
|
||||
|
||||
for si in si_no_gle:
|
||||
webnotes.get_obj("Sales Invoice", si[0]).make_gl_entries()
|
||||
@@ -245,4 +245,5 @@ patch_list = [
|
||||
"execute:webnotes.reload_doc('core', 'doctype', 'defaultvalue') #2013-11-15",
|
||||
"execute:webnotes.reload_doc('core', 'doctype', 'comment') #2013-11-15",
|
||||
"patches.1311.p02_index_singles",
|
||||
"patches.1311.p01_make_gl_entries_for_si",
|
||||
]
|
||||
Reference in New Issue
Block a user