Skip to content

Commit

Permalink
chore: resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
vorasmit committed Sep 21, 2024
1 parent 397f893 commit f0b8a3c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
7 changes: 0 additions & 7 deletions erpnext/accounts/doctype/payment_entry/payment_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,8 @@ def on_submit(self):
self.make_gl_entries()
self.update_outstanding_amounts()
self.update_payment_schedule()
<<<<<<< HEAD
=======
self.update_payment_requests()
self.update_advance_paid() # advance_paid_status depends on the payment request amount
>>>>>>> 93f867570f (fix: multiple issues in Payment Request (#42427))
self.set_status()

def set_liability_account(self):
Expand Down Expand Up @@ -2634,11 +2631,7 @@ def get_payment_entry(
party_type=None,
payment_type=None,
reference_date=None,
<<<<<<< HEAD
=======
ignore_permissions=False,
created_from_payment_request=False,
>>>>>>> 93f867570f (fix: multiple issues in Payment Request (#42427))
):
doc = frappe.get_doc(dt, dn)
over_billing_allowance = frappe.db.get_single_value("Accounts Settings", "over_billing_allowance")
Expand Down
12 changes: 1 addition & 11 deletions erpnext/accounts/doctype/payment_request/payment_request.json
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,6 @@
"read_only": 1
},
{
<<<<<<< HEAD
=======
"fieldname": "failed_reason",
"fieldtype": "Data",
"hidden": 1,
Expand All @@ -421,14 +419,11 @@
"read_only": 1
},
{
>>>>>>> 93f867570f (fix: multiple issues in Payment Request (#42427))
"fieldname": "company",
"fieldtype": "Link",
"label": "Company",
"options": "Company",
"read_only": 1
<<<<<<< HEAD
=======
},
{
"fieldname": "column_break_pnyv",
Expand All @@ -440,7 +435,6 @@
"label": "Party Account Currency",
"options": "Currency",
"read_only": 1
>>>>>>> 93f867570f (fix: multiple issues in Payment Request (#42427))
}
],
"in_create": 1,
Expand Down Expand Up @@ -482,12 +476,8 @@
"write": 1
}
],
<<<<<<< HEAD
"sort_field": "modified",
=======
"show_preview_popup": 1,
"sort_field": "creation",
>>>>>>> 93f867570f (fix: multiple issues in Payment Request (#42427))
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}
3 changes: 0 additions & 3 deletions erpnext/controllers/accounts_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -1964,9 +1964,7 @@ def set_total_advance_paid(self):
).format(formatted_advance_paid, self.name, formatted_order_total)
)

<<<<<<< HEAD
frappe.db.set_value(self.doctype, self.name, "advance_paid", advance_paid)
=======
self.db_set("advance_paid", advance_paid)

self.set_advance_payment_status()
Expand Down Expand Up @@ -1999,7 +1997,6 @@ def set_advance_payment_status(self):
self.db_set("advance_payment_status", new_status, update_modified=False)
self.set_status(update=True)
self.notify_update()
>>>>>>> 93f867570f (fix: multiple issues in Payment Request (#42427))

@property
def company_abbr(self):
Expand Down

0 comments on commit f0b8a3c

Please sign in to comment.