diff --git a/applications/accounting/config/AccountingUiLabels.xml b/applications/accounting/config/AccountingUiLabels.xml
index 1816f80eef..9c0dfb694f 100644
--- a/applications/accounting/config/AccountingUiLabels.xml
+++ b/applications/accounting/config/AccountingUiLabels.xml
@@ -6490,6 +6490,9 @@
ส่งการชำระเงิน
已发送的支付
+
+ Payment Status
+
Payment status must be received or sent
diff --git a/applications/accounting/webapp/ar/WEB-INF/actions/BatchPayments.groovy b/applications/accounting/webapp/ar/WEB-INF/actions/BatchPayments.groovy
index bb1da16cbe..8137a0df94 100644
--- a/applications/accounting/webapp/ar/WEB-INF/actions/BatchPayments.groovy
+++ b/applications/accounting/webapp/ar/WEB-INF/actions/BatchPayments.groovy
@@ -23,7 +23,7 @@ import org.ofbiz.entity.condition.EntityCondition;
import org.ofbiz.entity.condition.EntityOperator;
List paymentCond = [];
-if (paymentMethodTypeId && finAccountId) {
+if (paymentMethodTypeId) {
paymentCond.add(EntityCondition.makeCondition("paymentMethodTypeId", EntityOperator.EQUALS, paymentMethodTypeId));
if (fromDate) {
paymentCond.add(EntityCondition.makeCondition("effectiveDate", EntityOperator.GREATER_THAN_EQUAL_TO, fromDate));
@@ -37,11 +37,12 @@ if (paymentMethodTypeId && finAccountId) {
if (organizationPartyId) {
paymentCond.add(EntityCondition.makeCondition("partyIdTo", EntityOperator.EQUALS, organizationPartyId));
}
-
- finAccountTransList = delegator.findList("FinAccountTrans", EntityCondition.makeCondition([finAccountId : finAccountId]), null, null, null, false);
- if (finAccountTransList) {
- finAccountTransIds = EntityUtil.getFieldListFromEntityList(finAccountTransList, "finAccountTransId", true);
- paymentCond.add(EntityCondition.makeCondition("finAccountTransId", EntityOperator.IN, finAccountTransIds));
+ if (finAccountId) {
+ finAccountTransList = delegator.findList("FinAccountTrans", EntityCondition.makeCondition([finAccountId : finAccountId]), null, null, null, false);
+ if (finAccountTransList) {
+ finAccountTransIds = EntityUtil.getFieldListFromEntityList(finAccountTransList, "finAccountTransId", true);
+ paymentCond.add(EntityCondition.makeCondition("finAccountTransId", EntityOperator.IN, finAccountTransIds));
+ }
}
payments = delegator.findList("Payment", EntityCondition.makeCondition(paymentCond, EntityOperator.AND), null, null, null, false);
paymentListWithCreditCard = [];
diff --git a/applications/accounting/widget/CommonScreens.xml b/applications/accounting/widget/CommonScreens.xml
index 98771f0821..2f56bdf40e 100644
--- a/applications/accounting/widget/CommonScreens.xml
+++ b/applications/accounting/widget/CommonScreens.xml
@@ -26,6 +26,7 @@ under the License.
+
diff --git a/applications/accounting/widget/Menus.xml b/applications/accounting/widget/Menus.xml
index 912607cfe3..636947d207 100644
--- a/applications/accounting/widget/Menus.xml
+++ b/applications/accounting/widget/Menus.xml
@@ -498,6 +498,7 @@ under the License.
+
diff --git a/applications/accounting/widget/PaymentGroupForms.xml b/applications/accounting/widget/PaymentGroupForms.xml
index dda43bd5fe..0cd9224c15 100644
--- a/applications/accounting/widget/PaymentGroupForms.xml
+++ b/applications/accounting/widget/PaymentGroupForms.xml
@@ -115,8 +115,8 @@ under the License.
-
-
+
+
diff --git a/applications/accounting/widget/ar/forms/ArPaymentForms.xml b/applications/accounting/widget/ar/forms/ArPaymentForms.xml
index d8b8473bd6..6b85c0dcf5 100644
--- a/applications/accounting/widget/ar/forms/ArPaymentForms.xml
+++ b/applications/accounting/widget/ar/forms/ArPaymentForms.xml
@@ -24,9 +24,10 @@ under the License.