Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
commit
633ef45de8
@ -385,7 +385,7 @@ class DocType:
|
||||
get_obj(dt='GL Control').make_gl_entries(self.doc, self.doclist, cancel=1)
|
||||
|
||||
def check_tds_payment_voucher(self):
|
||||
tdsp = sql("select parent from `tabTDS Payment Detail` where voucher_no = '%s' and docstatus = 1 and parent not like 'old%'")
|
||||
tdsp = sql("select parent from `tabTDS Payment Detail` where voucher_no = %s and docstatus = 1 and parent not like 'old%'", self.doc.name)
|
||||
if tdsp:
|
||||
msgprint("TDS Payment voucher '%s' has been made against this voucher. Please cancel the payment voucher to proceed." % (tdsp and tdsp[0][0] or ''))
|
||||
raise Exception
|
@ -635,4 +635,8 @@ patch_list = [
|
||||
'patch_module': 'patches.october_2012',
|
||||
'patch_file': 'remove_old_trial_bal',
|
||||
},
|
||||
{
|
||||
'patch_module': 'patches.october_2012',
|
||||
'patch_file': 'fix_cancelled_gl_entries',
|
||||
},
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user