Merge pull request #18737 from Mangesh-Khairnar/fix-payment-order

fix: restrict the payment order to non received type payment entries
This commit is contained in:
Mangesh-Khairnar 2019-08-20 00:13:32 +05:30 committed by GitHub
commit becb89213f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,6 +66,7 @@ frappe.ui.form.on('Payment Order', {
get_query_filters: {
bank: frm.doc.bank,
docstatus: 1,
payment_type: ("!=", "Receive"),
bank_account: frm.doc.company_bank_account,
paid_from: frm.doc.account,
payment_order_status: ["=", "Initiated"],