mapper fix in DN_RV
This commit is contained in:
parent
5b00addaf7
commit
e6340f26c2
@ -153,17 +153,6 @@
|
|||||||
'validation_logic': 'docstatus=1'
|
'validation_logic': 'docstatus=1'
|
||||||
},
|
},
|
||||||
|
|
||||||
# Table Mapper Detail
|
|
||||||
{
|
|
||||||
'doctype': 'Table Mapper Detail',
|
|
||||||
'from_field': 'delivery_note_details',
|
|
||||||
'from_table': 'Delivery Note Detail',
|
|
||||||
'match_id': 1,
|
|
||||||
'to_field': 'entries',
|
|
||||||
'to_table': 'RV Detail',
|
|
||||||
'validation_logic': 'amount > ifnull(billed_amt, 0) and docstatus = 1'
|
|
||||||
},
|
|
||||||
|
|
||||||
# Table Mapper Detail
|
# Table Mapper Detail
|
||||||
{
|
{
|
||||||
'doctype': 'Table Mapper Detail',
|
'doctype': 'Table Mapper Detail',
|
||||||
|
3
erpnext/patches/jan_mar_2012/mapper_fix.py
Normal file
3
erpnext/patches/jan_mar_2012/mapper_fix.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
def execute():
|
||||||
|
import webnotes
|
||||||
|
webnotes.conn.sql("delete from `tabTable Mapper Detail` where to_table = 'RV Detail' and parent = 'Delivery Note-Receivable Voucher' and validation_logic = 'amount > ifnull(billed_amt, 0) and docstatus = 1'")
|
@ -212,5 +212,10 @@ patch_list = [
|
|||||||
'patch_file': 'reload_mapper',
|
'patch_file': 'reload_mapper',
|
||||||
'description': 'SO-DN, SO-Rv, DN-RV'
|
'description': 'SO-DN, SO-Rv, DN-RV'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'patch_module': 'patches.jan_mar_2012',
|
||||||
|
'patch_file': 'mapper_fix',
|
||||||
|
'description': 'DN-RV duplicate table entry'
|
||||||
|
},
|
||||||
|
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user