Merge pull request #17681 from rohitwaghchaure/expense_claim_reconciliation_issue

fix: payment reconciliation not update the status of the expense claim
This commit is contained in:
rohitwaghchaure
2019-05-20 22:41:48 +05:30
committed by GitHub
2 changed files with 16 additions and 0 deletions

View File

@@ -333,6 +333,9 @@ def reconcile_against_document(args):
doc = frappe.get_doc(d.voucher_type, d.voucher_no)
doc.make_gl_entries(cancel = 0, adv_adj =1)
if d.voucher_type == 'Payment Entry':
doc.update_expense_claim()
def check_if_advance_entry_modified(args):
"""
check if there is already a voucher reference

View File

@@ -0,0 +1,13 @@
from __future__ import unicode_literals
from frappe import _
def get_data():
return {
'fieldname': 'reference_name',
'transactions': [
{
'label': _('Payment'),
'items': ['Payment Entry']
},
]
}