private bool DoesAnyOutstandingComplianceExistForJointPayees(APRegister payment, List <int?> projectIds) { var jointPayeePayments = JointPayeePaymentDataProvider.GetJointPayeePayments(graph, payment) .Where(jpp => jpp.JointAmountToPay > 0); var jointPayees = JointPayeeDataProvider.GetJointPayees(graph, jointPayeePayments); return(jointPayees.Any(jp => DoesAnyOutstandingComplianceExistForJointVendor(jp, projectIds))); }
private static decimal?GetJointAmountsToPaySum(PXGraph graph, APRegister payment) { var jointPayeePayments = JointPayeePaymentDataProvider.GetJointPayeePayments(graph, payment); return(jointPayeePayments.Sum(jpp => jpp.JointAmountToPay)); }