fix: fetch allocated amount for individual invoice (#19259)
diff --git a/erpnext/accounts/doctype/payment_entry/payment_entry.py b/erpnext/accounts/doctype/payment_entry/payment_entry.py
index 789bc8a..89aaffb 100644
--- a/erpnext/accounts/doctype/payment_entry/payment_entry.py
+++ b/erpnext/accounts/doctype/payment_entry/payment_entry.py
@@ -1045,7 +1045,7 @@
def update_item(source_doc, target_doc, source_parent):
target_doc.bank_account = source_parent.party_bank_account
- target_doc.amount = source_parent.base_paid_amount
+ target_doc.amount = source_doc.allocated_amount
target_doc.account = source_parent.paid_to
target_doc.payment_entry = source_parent.name
target_doc.supplier = source_parent.party