Skip to content

Commit

Permalink
fix: UUID on payment and invoice with Payment Allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinBetanc0urt committed Dec 24, 2024
1 parent 30aca8d commit a29f1a3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/main/java/org/spin/grpc/service/form/PaymentAllocation.java
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ private ListPaymentsResponse.Builder listPayments(ListPaymentsRequest request) {
);
sql.append(" AND p.IsReceipt= '" + isReceipt +"'" );
}
sql.append(" ORDER BY p.DateTrx,p.DocumentNo");
sql.append(" ORDER BY p.DateTrx, p.DocumentNo");

// role security
sql = new StringBuffer(
Expand Down Expand Up @@ -624,11 +624,11 @@ private ListPaymentsResponse.Builder listPayments(ListPaymentsRequest request) {
int paymentId = rs.getInt(I_C_Payment.COLUMNNAME_C_Payment_ID);
Payment.Builder paymentBuilder = Payment.newBuilder()
.setId(paymentId)
.setUuid(
StringManager.getValidString(
rs.getString(I_C_Payment.COLUMNNAME_UUID)
)
)
// .setUuid(
// StringManager.getValidString(
// rs.getString(I_C_Payment.COLUMNNAME_UUID)
// )
// )
.setDocumentNo(
StringManager.getValidString(
rs.getString(I_C_Payment.COLUMNNAME_DocumentNo)
Expand Down Expand Up @@ -804,11 +804,11 @@ private ListInvoicesResponse.Builder listInvoices(ListInvoicesRequest request) {
int invoiceId = rs.getInt(I_C_Invoice.COLUMNNAME_C_Invoice_ID);
Invoice.Builder invoiceBuilder = Invoice.newBuilder()
.setId(invoiceId)
.setUuid(
StringManager.getValidString(
rs.getString(I_C_Invoice.COLUMNNAME_UUID)
)
)
// .setUuid(
// StringManager.getValidString(
// rs.getString(I_C_Invoice.COLUMNNAME_UUID)
// )
// )
.setDocumentNo(
StringManager.getValidString(
rs.getString(I_C_Invoice.COLUMNNAME_DocumentNo)
Expand Down

0 comments on commit a29f1a3

Please sign in to comment.