Search in sources :

Example 1 with ReceiptStatus

use of org.folio.rest.jaxrs.model.PoLine.ReceiptStatus 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;
}
Also used : PaymentStatus(org.folio.rest.jaxrs.model.PoLine.PaymentStatus) ReceiptStatus(org.folio.rest.jaxrs.model.PoLine.ReceiptStatus) PoLine(org.folio.rest.jaxrs.model.PoLine) CompositePoLine(org.folio.rest.jaxrs.model.CompositePoLine)

Example 2 with ReceiptStatus

use of org.folio.rest.jaxrs.model.PoLine.ReceiptStatus 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);
}
Also used : PaymentStatus(org.folio.rest.jaxrs.model.PoLine.PaymentStatus) ReceiptStatus(org.folio.rest.jaxrs.model.PoLine.ReceiptStatus) PoLine(org.folio.rest.jaxrs.model.PoLine) CompositePoLine(org.folio.rest.jaxrs.model.CompositePoLine)

Aggregations

CompositePoLine (org.folio.rest.jaxrs.model.CompositePoLine)2 PoLine (org.folio.rest.jaxrs.model.PoLine)2 PaymentStatus (org.folio.rest.jaxrs.model.PoLine.PaymentStatus)2 ReceiptStatus (org.folio.rest.jaxrs.model.PoLine.ReceiptStatus)2