-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #465 from udsm-dhis2-lab/feature/gepg_requestmodif…
…ication merge contains view of request and control number also payments if made
- Loading branch information
Showing
26 changed files
with
1,298 additions
and
868 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
sh docker/build-local.sh | ||
version=$(cat version) | ||
branch=$(git branch | grep \* | cut -d ' ' -f2) | ||
docker push udsmdhis2/icare-core:$branch-$version | ||
docker push udsmdhis2/icare-core:local | ||
# docker push udsmdhis2/icare-core:$branch-$version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
458 changes: 387 additions & 71 deletions
458
omods/core/api/src/main/java/org/openmrs/module/icare/billing/BillingServiceImpl.java
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
omods/core/api/src/main/java/org/openmrs/module/icare/billing/Utils/PaymentStatus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package org.openmrs.module.icare.billing.Utils; | ||
|
||
public enum PaymentStatus { | ||
PAID, FAILED, UNPAID, REQUESTED | ||
PAID, FAILED, UNPAID, REQUESTED, PENDING | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
112 changes: 112 additions & 0 deletions
112
omods/core/api/src/main/java/org/openmrs/module/icare/billing/models/PaymentRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
package org.openmrs.module.icare.billing.models; | ||
|
||
import java.util.Date; | ||
import java.util.UUID; | ||
|
||
public class PaymentRequest { | ||
|
||
private Integer paymentId; // Payment ID | ||
|
||
private UUID uuid; // Unique identifier for the payment | ||
|
||
private String invoiceId; // ID of the associated invoice | ||
|
||
private String referenceNumber; // Reference number for the payment | ||
|
||
private String receivedBy; // User or entity that received the payment | ||
|
||
private Integer paymentTypeId; // ID of the payment type | ||
|
||
private Date dateCreated; // Date the payment was created | ||
|
||
private String status; // Current status of the payment | ||
|
||
// Default constructor | ||
public void Payment() { | ||
} | ||
|
||
// Constructor with parameters | ||
public void Payment(Integer paymentId, UUID uuid, String invoiceId, String referenceNumber, String receivedBy, | ||
Integer paymentTypeId, Date dateCreated, String status) { | ||
this.paymentId = paymentId; | ||
this.uuid = uuid; | ||
this.invoiceId = invoiceId; | ||
this.referenceNumber = referenceNumber; | ||
this.receivedBy = receivedBy; | ||
this.paymentTypeId = paymentTypeId; | ||
this.dateCreated = dateCreated; | ||
this.status = status; | ||
} | ||
|
||
// Getter and Setter for paymentId | ||
public Integer getPaymentId() { | ||
return paymentId; | ||
} | ||
|
||
public void setPaymentId(Integer paymentId) { | ||
this.paymentId = paymentId; | ||
} | ||
|
||
// Getter and Setter for uuid | ||
public UUID getUuid() { | ||
return uuid; | ||
} | ||
|
||
public void setUuid(UUID uuid) { | ||
this.uuid = uuid; | ||
} | ||
|
||
// Getter and Setter for invoiceId | ||
public String getInvoiceId() { | ||
return invoiceId; | ||
} | ||
|
||
public void setInvoiceId(String invoiceId) { | ||
this.invoiceId = invoiceId; | ||
} | ||
|
||
// Getter and Setter for referenceNumber | ||
public String getReferenceNumber() { | ||
return referenceNumber; | ||
} | ||
|
||
public void setReferenceNumber(String referenceNumber) { | ||
this.referenceNumber = referenceNumber; | ||
} | ||
|
||
// Getter and Setter for receivedBy | ||
public String getReceivedBy() { | ||
return receivedBy; | ||
} | ||
|
||
public void setReceivedBy(String receivedBy) { | ||
this.receivedBy = receivedBy; | ||
} | ||
|
||
// Getter and Setter for paymentTypeId | ||
public Integer getPaymentTypeId() { | ||
return paymentTypeId; | ||
} | ||
|
||
public void setPaymentTypeId(Integer paymentTypeId) { | ||
this.paymentTypeId = paymentTypeId; | ||
} | ||
|
||
// Getter and Setter for dateCreated | ||
public Date getDateCreated() { | ||
return dateCreated; | ||
} | ||
|
||
public void setDateCreated(Date dateCreated) { | ||
this.dateCreated = dateCreated; | ||
} | ||
|
||
// Getter and Setter for status | ||
public String getStatus() { | ||
return status; | ||
} | ||
|
||
public void setStatus(String status) { | ||
this.status = status; | ||
} | ||
} |
Oops, something went wrong.