Skip to content

Commit c79c8da

Browse files
Harouna SowHarouna Sow
authored andcommitted
fix(payment entry): payment to shareholder
1 parent 60f1750 commit c79c8da

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

erpnext/accounts/doctype/payment_entry/payment_entry.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ def get_outstanding_reference_documents(args):
558558

559559
# Get negative outstanding sales /purchase invoices
560560
negative_outstanding_invoices = []
561-
if args.get("party_type") not in ["Student", "Employee"] and not args.get("voucher_no"):
561+
if args.get("party_type") not in ["Student", "Employee", "Shareholder"] and not args.get("voucher_no"):
562562
negative_outstanding_invoices = get_negative_outstanding_invoices(args.get("party_type"),
563563
args.get("party"), args.get("party_account"), party_account_currency, company_currency)
564564

@@ -603,6 +603,8 @@ def get_orders_to_be_billed(posting_date, party_type, party, party_account_curre
603603
voucher_type = 'Purchase Order'
604604
elif party_type == "Employee":
605605
voucher_type = None
606+
else:
607+
voucher_type = None
606608

607609
# Add cost center condition
608610
if voucher_type:

0 commit comments

Comments
 (0)