mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 13:24:47 +00:00
fix(sales_invoice): switch parent and child doctype
Switch the parent and child doctype in sales_invoice.py
This commit is contained in:
@@ -3154,8 +3154,8 @@ def get_mode_of_payment_info(mode_of_payment, company):
|
|||||||
ModeOfPayment = frappe.qb.DocType("Mode of Payment")
|
ModeOfPayment = frappe.qb.DocType("Mode of Payment")
|
||||||
|
|
||||||
query = (
|
query = (
|
||||||
frappe.qb.from_(ModeOfPaymentAccount)
|
frappe.qb.from_(ModeOfPayment)
|
||||||
.join(ModeOfPayment)
|
.join(ModeOfPaymentAccount)
|
||||||
.on(ModeOfPaymentAccount.parent == ModeOfPayment.name)
|
.on(ModeOfPaymentAccount.parent == ModeOfPayment.name)
|
||||||
.select(
|
.select(
|
||||||
ModeOfPaymentAccount.default_account, ModeOfPaymentAccount.parent, ModeOfPayment.type.as_("type")
|
ModeOfPaymentAccount.default_account, ModeOfPaymentAccount.parent, ModeOfPayment.type.as_("type")
|
||||||
|
|||||||
Reference in New Issue
Block a user