public bool DoesAnyOutstandingComplianceExist(APRegister payment)
        {
            var adjustments = AdjustmentDataProvider.GetPaymentAdjustments(graph, payment.RefNbr, payment.DocType);
            var projectIds  = LienWaiverProjectDataProvider.GetProjectIds(graph, adjustments).ToList();

            return(DoesAnyOutstandingComplianceExistForPrimaryVendor(payment.VendorID, projectIds) ||
                   PaymentDataProvider.DoesCheckContainPaymentForJointVendors(graph, payment) &&
                   DoesAnyOutstandingComplianceExistForJointPayees(payment, projectIds));
        }
 private static bool IsJointPayeePaymentReleased(PXGraph graph, JointPayeePayment jointPayeePayment)
 {
     return(AdjustmentDataProvider.GetAdjustment(graph, jointPayeePayment)?.Released == true);
 }