fix: align with 'Partly/Fully X' nomenclature in so & po
diff --git a/erpnext/buying/doctype/purchase_order/purchase_order.json b/erpnext/buying/doctype/purchase_order/purchase_order.json
index 97f2310..9da49a7 100644
--- a/erpnext/buying/doctype/purchase_order/purchase_order.json
+++ b/erpnext/buying/doctype/purchase_order/purchase_order.json
@@ -1280,7 +1280,7 @@
"no_copy": 1,
"oldfieldname": "status",
"oldfieldtype": "Select",
- "options": "Not Initiated\nInitiated\nPartially Paid\nPaid",
+ "options": "Not Initiated\nInitiated\nPartially Paid\nFully Paid",
"print_hide": 1
}
],
diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py
index 159e217..7cc4bfe 100644
--- a/erpnext/controllers/accounts_controller.py
+++ b/erpnext/controllers/accounts_controller.py
@@ -1806,7 +1806,7 @@
new_status = None
# if money is paid set the paid states
if advance_paid:
- new_status = "Partially Paid" if advance_paid < order_total else "Paid"
+ new_status = "Partially Paid" if advance_paid < order_total else "Fully Paid"
if not new_status:
prs = frappe.db.count(
diff --git a/erpnext/patches/v15_0/create_advance_payment_status.py b/erpnext/patches/v15_0/create_advance_payment_status.py
index ff5ba8f..18ab9fa 100644
--- a/erpnext/patches/v15_0/create_advance_payment_status.py
+++ b/erpnext/patches/v15_0/create_advance_payment_status.py
@@ -19,7 +19,7 @@
so.advance_paid < (so.rounded_total or so.grand_total)
).run()
- frappe.qb.update(so).set(so.advance_payment_status, "Paid").where(so.docstatus == 1).where(
+ frappe.qb.update(so).set(so.advance_payment_status, "Fully Paid").where(so.docstatus == 1).where(
so.advance_payment_status.isnull()
).where(so.advance_paid == (so.rounded_total or so.grand_total)).run()
@@ -42,7 +42,7 @@
po.advance_paid < (po.rounded_total or po.grand_total)
).run()
- frappe.qb.update(po).set(po.advance_payment_status, "Paid").where(po.docstatus == 1).where(
+ frappe.qb.update(po).set(po.advance_payment_status, "Fully Paid").where(po.docstatus == 1).where(
po.advance_payment_status.isnull()
).where(po.advance_paid == (po.rounded_total or po.grand_total)).run()
diff --git a/erpnext/selling/doctype/sales_order/sales_order.json b/erpnext/selling/doctype/sales_order/sales_order.json
index 5b80dfd..3c516d0 100644
--- a/erpnext/selling/doctype/sales_order/sales_order.json
+++ b/erpnext/selling/doctype/sales_order/sales_order.json
@@ -1649,7 +1649,7 @@
"in_standard_filter": 1,
"label": "Advance Payment Status",
"no_copy": 1,
- "options": "Not Requested\nRequested\nPartially Paid\nPaid",
+ "options": "Not Requested\nRequested\nPartially Paid\nFully Paid",
"print_hide": 1
}
],