mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 06:29:20 +00:00
moved directory structure
This commit is contained in:
11
patches/mar_2012/so_rv_mapper_fix.py
Normal file
11
patches/mar_2012/so_rv_mapper_fix.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from __future__ import unicode_literals
|
||||
def execute():
|
||||
import webnotes
|
||||
count = webnotes.conn.sql("""SELECT COUNT(*) FROM `tabTable Mapper Detail`
|
||||
WHERE parent='Sales Order-Sales Invoice'
|
||||
AND from_table='Sales Order Item'""")
|
||||
if count and count[0][0]==2:
|
||||
webnotes.conn.sql("""DELETE FROM `tabTable Mapper Detail`
|
||||
WHERE parent='Sales Order-Sales Invoice'
|
||||
AND from_table='Sales Order Item'
|
||||
AND validation_logic='docstatus = 1'""")
|
||||
Reference in New Issue
Block a user