private decimal?GetLienWaiverAmount(IEnumerable <APTran> transactions, string documentTypeOption) { var insertedAdjustments = Graph.Caches <APAdjust>().Inserted.RowCast <APAdjust>(); return(documentTypeOption == Constants.LienWaiverDocumentTypeValues.ConditionalFinal ? LienWaiverAmountCalculationService.GetBillAmount(transactions) : LienWaiverAmountCalculationService.GetAmountPaid(Graph.Adjustments.SelectMain() .Concat(insertedAdjustments))); }
private decimal?GetJointLienWaiverAmount(IReadOnlyCollection <PXResult <JointPayeePayment> > jointPayeePayments, string documentTypeOption) { if (IsCheckSingleOrJoint(jointPayeePayments)) { return(documentTypeOption == Constants.LienWaiverDocumentTypeValues.ConditionalFinal ? LienWaiverAmountCalculationService.GetJointAmountOwed(jointPayeePayments) : LienWaiverAmountCalculationService.GetJointAmountToPay(jointPayeePayments)); } return(null); }
private decimal?GetJointAmount(IReadOnlyCollection <PXResult <JointPayeePayment> > jointPayeePayments) { return(IsCheckSingleOrJoint(jointPayeePayments) ? LienWaiverAmountCalculationService.GetJointAmountToPay(jointPayeePayments) : null); }