Exemplo n.º 1
0
        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)));
        }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 private decimal?GetJointAmount(IReadOnlyCollection <PXResult <JointPayeePayment> > jointPayeePayments)
 {
     return(IsCheckSingleOrJoint(jointPayeePayments)
         ? LienWaiverAmountCalculationService.GetJointAmountToPay(jointPayeePayments)
         : null);
 }