use of org.folio.rest.jaxrs.model.PoLine.PaymentStatus in project mod-orders by folio-org.
the class HelperUtils method isCancelledPoLine.
private static boolean isCancelledPoLine(PoLine line) {
PoLine.PaymentStatus paymentStatus = line.getPaymentStatus();
PoLine.ReceiptStatus receiptStatus = line.getReceiptStatus();
return paymentStatus == PaymentStatus.CANCELLED && receiptStatus == ReceiptStatus.CANCELLED;
}
use of org.folio.rest.jaxrs.model.PoLine.PaymentStatus in project mod-orders by folio-org.
the class HelperUtils method isCompletedPoLine.
private static boolean isCompletedPoLine(PoLine line) {
PoLine.PaymentStatus paymentStatus = line.getPaymentStatus();
PoLine.ReceiptStatus receiptStatus = line.getReceiptStatus();
return (paymentStatus == PAYMENT_NOT_REQUIRED || paymentStatus == FULLY_PAID || paymentStatus == PaymentStatus.CANCELLED) && (receiptStatus == FULLY_RECEIVED || receiptStatus == RECEIPT_NOT_REQUIRED || receiptStatus == ReceiptStatus.CANCELLED);
}
Aggregations