diff --git a/src/main/java/org/spin/grpc/service/form/PaymentAllocation.java b/src/main/java/org/spin/grpc/service/form/PaymentAllocation.java index aedfdae5..ca2bac69 100644 --- a/src/main/java/org/spin/grpc/service/form/PaymentAllocation.java +++ b/src/main/java/org/spin/grpc/service/form/PaymentAllocation.java @@ -604,7 +604,7 @@ private ListPaymentsResponse.Builder listPayments(ListPaymentsRequest request) { recordCount++; DocumentType.Builder documentTypeBuilder = convertDocumentType( - rs.getInt(I_C_Invoice.COLUMNNAME_C_DocTypeTarget_ID) + rs.getInt(I_C_Payment.COLUMNNAME_C_DocType_ID) ); Organization.Builder organizationBuilder = convertOrganization( rs.getInt(I_AD_Org.COLUMNNAME_AD_Org_ID)