Skip to content

Commit

Permalink
Merge pull request #4565 from hmislk/Issue#3864
Browse files Browse the repository at this point in the history
Closes #3864
  • Loading branch information
binuthi-nil authored Apr 10, 2024
2 parents d350443 + eca5ea1 commit d54503c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/main/java/com/divudi/bean/common/EnumController.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.divudi.data.SessionNumberType;
import com.divudi.data.Sex;
import com.divudi.data.MessageType;
import com.divudi.data.PaymentContext;
import com.divudi.data.RestAuthenticationType;
import com.divudi.data.SymanticType;
import com.divudi.data.Title;
Expand Down Expand Up @@ -534,6 +535,10 @@ public PaymentMethod[] getPaymentMethodsForPo() {
return p;
}

public List<PaymentMethod> getPaymentMethodsForPurchases() {
return PaymentMethod.getMethodsByContext(PaymentContext.PURCHASES);
}

public CreditDuration[] getCreditDuration() {
CreditDuration[] c = {CreditDuration.D30, CreditDuration.D60, CreditDuration.D90};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
for="cmbPs"></p:outputLabel>
<p:selectOneMenu class="w-100" id="cmbPs" value="#{purchaseOrderRequestController.currentBill.paymentMethod}">
<f:selectItem itemLabel="Select Payment method"/>
<f:selectItems value="#{enumController.paymentMethodsForPo}">
<f:selectItems value="#{enumController.paymentMethodsForPurchases}">
</f:selectItems>
<p:ajax process="@this" update="po" event="change"/>
<p:ajax process="@this" update="duration" event="itemSelect" />
Expand Down

0 comments on commit d54503c

Please sign in to comment.