mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
chore: resolve conflicts
This commit is contained in:
@@ -254,7 +254,7 @@ erpnext.accounts.PaymentReconciliationController = class PaymentReconciliationCo
|
|||||||
this.data = [];
|
this.data = [];
|
||||||
const dialog = new frappe.ui.Dialog({
|
const dialog = new frappe.ui.Dialog({
|
||||||
title: __("Select Difference Account"),
|
title: __("Select Difference Account"),
|
||||||
size: 'extra-large',
|
size: "extra-large",
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
fieldname: "allocation",
|
fieldname: "allocation",
|
||||||
@@ -266,7 +266,6 @@ erpnext.accounts.PaymentReconciliationController = class PaymentReconciliationCo
|
|||||||
get_data: () => {
|
get_data: () => {
|
||||||
return this.data;
|
return this.data;
|
||||||
},
|
},
|
||||||
<<<<<<< HEAD
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
fieldtype: "Data",
|
fieldtype: "Data",
|
||||||
@@ -281,6 +280,13 @@ erpnext.accounts.PaymentReconciliationController = class PaymentReconciliationCo
|
|||||||
in_list_view: 1,
|
in_list_view: 1,
|
||||||
read_only: 1,
|
read_only: 1,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
fieldtype: "Date",
|
||||||
|
fieldname: "gain_loss_posting_date",
|
||||||
|
label: __("Posting Date"),
|
||||||
|
in_list_view: 1,
|
||||||
|
reqd: 1,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
fieldtype: "Link",
|
fieldtype: "Link",
|
||||||
options: "Account",
|
options: "Account",
|
||||||
@@ -305,48 +311,6 @@ erpnext.accounts.PaymentReconciliationController = class PaymentReconciliationCo
|
|||||||
read_only: 1,
|
read_only: 1,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
=======
|
|
||||||
fields: [{
|
|
||||||
fieldtype:'Data',
|
|
||||||
fieldname:"docname",
|
|
||||||
in_list_view: 1,
|
|
||||||
hidden: 1
|
|
||||||
}, {
|
|
||||||
fieldtype:'Data',
|
|
||||||
fieldname:"reference_name",
|
|
||||||
label: __("Voucher No"),
|
|
||||||
in_list_view: 1,
|
|
||||||
read_only: 1
|
|
||||||
}, {
|
|
||||||
fieldtype:'Date',
|
|
||||||
fieldname:"gain_loss_posting_date",
|
|
||||||
label: __("Posting Date"),
|
|
||||||
in_list_view: 1,
|
|
||||||
reqd: 1,
|
|
||||||
}, {
|
|
||||||
|
|
||||||
fieldtype:'Link',
|
|
||||||
options: 'Account',
|
|
||||||
in_list_view: 1,
|
|
||||||
label: __("Difference Account"),
|
|
||||||
fieldname: 'difference_account',
|
|
||||||
reqd: 1,
|
|
||||||
get_query: () => {
|
|
||||||
return {
|
|
||||||
filters: {
|
|
||||||
company: this.frm.doc.company,
|
|
||||||
is_group: 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}, {
|
|
||||||
fieldtype:'Currency',
|
|
||||||
in_list_view: 1,
|
|
||||||
label: __("Difference Amount"),
|
|
||||||
fieldname: 'difference_amount',
|
|
||||||
read_only: 1
|
|
||||||
}]
|
|
||||||
>>>>>>> 5323bb7bee (refactor: introduce fields in popup)
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldtype: "HTML",
|
fieldtype: "HTML",
|
||||||
@@ -356,7 +320,6 @@ erpnext.accounts.PaymentReconciliationController = class PaymentReconciliationCo
|
|||||||
primary_action: () => {
|
primary_action: () => {
|
||||||
const args = dialog.get_values()["allocation"];
|
const args = dialog.get_values()["allocation"];
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
args.forEach((d) => {
|
args.forEach((d) => {
|
||||||
frappe.model.set_value(
|
frappe.model.set_value(
|
||||||
"Payment Reconciliation Allocation",
|
"Payment Reconciliation Allocation",
|
||||||
@@ -364,14 +327,12 @@ erpnext.accounts.PaymentReconciliationController = class PaymentReconciliationCo
|
|||||||
"difference_account",
|
"difference_account",
|
||||||
d.difference_account
|
d.difference_account
|
||||||
);
|
);
|
||||||
=======
|
frappe.model.set_value(
|
||||||
args.forEach(d => {
|
"Payment Reconciliation Allocation",
|
||||||
frappe.model.set_value("Payment Reconciliation Allocation", d.docname,
|
d.docname,
|
||||||
"difference_account", d.difference_account);
|
"gain_loss_posting_date",
|
||||||
frappe.model.set_value("Payment Reconciliation Allocation", d.docname,
|
d.gain_loss_posting_date
|
||||||
"gain_loss_posting_date", d.gain_loss_posting_date);
|
);
|
||||||
|
|
||||||
>>>>>>> 5323bb7bee (refactor: introduce fields in popup)
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.reconcile_payment_entries();
|
this.reconcile_payment_entries();
|
||||||
@@ -383,18 +344,11 @@ erpnext.accounts.PaymentReconciliationController = class PaymentReconciliationCo
|
|||||||
this.frm.doc.allocation.forEach((d) => {
|
this.frm.doc.allocation.forEach((d) => {
|
||||||
if (d.difference_amount) {
|
if (d.difference_amount) {
|
||||||
dialog.fields_dict.allocation.df.data.push({
|
dialog.fields_dict.allocation.df.data.push({
|
||||||
<<<<<<< HEAD
|
|
||||||
docname: d.name,
|
docname: d.name,
|
||||||
reference_name: d.reference_name,
|
reference_name: d.reference_name,
|
||||||
difference_amount: d.difference_amount,
|
difference_amount: d.difference_amount,
|
||||||
difference_account: d.difference_account,
|
difference_account: d.difference_account,
|
||||||
=======
|
gain_loss_posting_date: d.gain_loss_posting_date,
|
||||||
'docname': d.name,
|
|
||||||
'reference_name': d.reference_name,
|
|
||||||
'difference_amount': d.difference_amount,
|
|
||||||
'difference_account': d.difference_account,
|
|
||||||
'gain_loss_posting_date': d.gain_loss_posting_date
|
|
||||||
>>>>>>> 5323bb7bee (refactor: introduce fields in popup)
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -159,7 +159,6 @@
|
|||||||
"fieldname": "gain_loss_posting_date",
|
"fieldname": "gain_loss_posting_date",
|
||||||
"fieldtype": "Date",
|
"fieldtype": "Date",
|
||||||
"label": "Difference Posting Date"
|
"label": "Difference Posting Date"
|
||||||
<<<<<<< HEAD
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "accounting_dimensions_section",
|
"fieldname": "accounting_dimensions_section",
|
||||||
@@ -169,18 +168,12 @@
|
|||||||
{
|
{
|
||||||
"fieldname": "dimension_col_break",
|
"fieldname": "dimension_col_break",
|
||||||
"fieldtype": "Column Break"
|
"fieldtype": "Column Break"
|
||||||
=======
|
|
||||||
>>>>>>> 55dbcee36a (refactor: gain_loss posting date fields in the allocation table)
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"is_virtual": 1,
|
"is_virtual": 1,
|
||||||
"istable": 1,
|
"istable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
<<<<<<< HEAD
|
|
||||||
"modified": "2023-12-14 13:38:26.104150",
|
"modified": "2023-12-14 13:38:26.104150",
|
||||||
=======
|
|
||||||
"modified": "2023-10-23 10:44:56.066303",
|
|
||||||
>>>>>>> 55dbcee36a (refactor: gain_loss posting date fields in the allocation table)
|
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"name": "Payment Reconciliation Allocation",
|
"name": "Payment Reconciliation Allocation",
|
||||||
|
|||||||
@@ -726,11 +726,7 @@ def update_reference_in_payment_entry(
|
|||||||
payment_entry.set_missing_ref_details(ref_exchange_rate=d.exchange_rate or None)
|
payment_entry.set_missing_ref_details(ref_exchange_rate=d.exchange_rate or None)
|
||||||
payment_entry.set_amounts()
|
payment_entry.set_amounts()
|
||||||
payment_entry.make_exchange_gain_loss_journal(
|
payment_entry.make_exchange_gain_loss_journal(
|
||||||
<<<<<<< HEAD
|
|
||||||
frappe._dict({"difference_posting_date": d.difference_posting_date}), dimensions_dict
|
frappe._dict({"difference_posting_date": d.difference_posting_date}), dimensions_dict
|
||||||
=======
|
|
||||||
frappe._dict({"difference_posting_date": d.difference_posting_date})
|
|
||||||
>>>>>>> 7e600a6494 (refactor: pass gain loss posting date to controller)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if not do_not_save:
|
if not do_not_save:
|
||||||
|
|||||||
Reference in New Issue
Block a user