fix: remarks field in payment reconciliation
(cherry picked from commit 2d5b079949)
# Conflicts:
# erpnext/accounts/doctype/payment_reconciliation_payment/payment_reconciliation_payment.json
# erpnext/accounts/doctype/payment_reconciliation_payment/payment_reconciliation_payment.py
This commit is contained in:
@@ -256,6 +256,7 @@ class PaymentReconciliation(Document):
|
|||||||
"posting_date": inv.posting_date,
|
"posting_date": inv.posting_date,
|
||||||
"currency": inv.currency,
|
"currency": inv.currency,
|
||||||
"cost_center": inv.cost_center,
|
"cost_center": inv.cost_center,
|
||||||
|
"remarks": inv.remarks,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
"amount",
|
"amount",
|
||||||
"difference_amount",
|
"difference_amount",
|
||||||
"sec_break1",
|
"sec_break1",
|
||||||
"remark",
|
"remarks",
|
||||||
"currency",
|
"currency",
|
||||||
"exchange_rate",
|
"exchange_rate",
|
||||||
"cost_center"
|
"cost_center"
|
||||||
@@ -74,12 +74,6 @@
|
|||||||
"fieldname": "sec_break1",
|
"fieldname": "sec_break1",
|
||||||
"fieldtype": "Section Break"
|
"fieldtype": "Section Break"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"fieldname": "remark",
|
|
||||||
"fieldtype": "Small Text",
|
|
||||||
"label": "Remark",
|
|
||||||
"read_only": 1
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"fieldname": "currency",
|
"fieldname": "currency",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
@@ -105,12 +99,22 @@
|
|||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"label": "Cost Center",
|
"label": "Cost Center",
|
||||||
"options": "Cost Center"
|
"options": "Cost Center"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "remarks",
|
||||||
|
"fieldtype": "Small Text",
|
||||||
|
"label": "Remarks",
|
||||||
|
"read_only": 1
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"is_virtual": 1,
|
"is_virtual": 1,
|
||||||
"istable": 1,
|
"istable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
|
<<<<<<< HEAD
|
||||||
"modified": "2023-11-17 17:33:34.818530",
|
"modified": "2023-11-17 17:33:34.818530",
|
||||||
|
=======
|
||||||
|
"modified": "2024-10-29 16:24:43.021230",
|
||||||
|
>>>>>>> 2d5b079949 (fix: remarks field in payment reconciliation)
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"name": "Payment Reconciliation Payment",
|
"name": "Payment Reconciliation Payment",
|
||||||
|
|||||||
@@ -6,6 +6,33 @@ from frappe.model.document import Document
|
|||||||
|
|
||||||
|
|
||||||
class PaymentReconciliationPayment(Document):
|
class PaymentReconciliationPayment(Document):
|
||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
|
# begin: auto-generated types
|
||||||
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from frappe.types import DF
|
||||||
|
|
||||||
|
amount: DF.Currency
|
||||||
|
cost_center: DF.Link | None
|
||||||
|
currency: DF.Link | None
|
||||||
|
difference_amount: DF.Currency
|
||||||
|
exchange_rate: DF.Float
|
||||||
|
is_advance: DF.Data | None
|
||||||
|
parent: DF.Data
|
||||||
|
parentfield: DF.Data
|
||||||
|
parenttype: DF.Data
|
||||||
|
posting_date: DF.Date | None
|
||||||
|
reference_name: DF.DynamicLink | None
|
||||||
|
reference_row: DF.Data | None
|
||||||
|
reference_type: DF.Link | None
|
||||||
|
remarks: DF.SmallText | None
|
||||||
|
# end: auto-generated types
|
||||||
|
|
||||||
|
>>>>>>> 2d5b079949 (fix: remarks field in payment reconciliation)
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_list(args):
|
def get_list(args):
|
||||||
pass
|
pass
|
||||||
|
|||||||
@@ -1930,6 +1930,7 @@ class QueryPaymentLedger:
|
|||||||
ple.cost_center.as_("cost_center"),
|
ple.cost_center.as_("cost_center"),
|
||||||
Sum(ple.amount).as_("amount"),
|
Sum(ple.amount).as_("amount"),
|
||||||
Sum(ple.amount_in_account_currency).as_("amount_in_account_currency"),
|
Sum(ple.amount_in_account_currency).as_("amount_in_account_currency"),
|
||||||
|
ple.remarks,
|
||||||
)
|
)
|
||||||
.where(ple.delinked == 0)
|
.where(ple.delinked == 0)
|
||||||
.where(Criterion.all(filter_on_voucher_no))
|
.where(Criterion.all(filter_on_voucher_no))
|
||||||
@@ -1992,6 +1993,7 @@ class QueryPaymentLedger:
|
|||||||
Table("vouchers").due_date,
|
Table("vouchers").due_date,
|
||||||
Table("vouchers").currency,
|
Table("vouchers").currency,
|
||||||
Table("vouchers").cost_center.as_("cost_center"),
|
Table("vouchers").cost_center.as_("cost_center"),
|
||||||
|
Table("vouchers").remarks,
|
||||||
)
|
)
|
||||||
.where(Criterion.all(filter_on_outstanding_amount))
|
.where(Criterion.all(filter_on_outstanding_amount))
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user