Ejemplo n.º 1
0
 public JointChecksCreator(APInvoiceEntry graph, PXSelect <JointPayeePayment> jointPayeePayments)
 {
     InvoiceEntry               = graph;
     JointPayeePayments         = jointPayeePayments;
     ComplianceDocumentsService = new ComplianceDocumentsService(InvoiceEntry,
                                                                 JointPayeePayments.Select().FirstTableItems);
 }
 public void GenerateChecks(APInvoice invoice, IReadOnlyCollection <APAdjust> adjustments, PayBillsFilter filter)
 {
     using (var scope = new PXTransactionScope())
     {
         LineNumbers = adjustments.Select(adj => adj.AdjdLineNbr);
         GenerateVendorCheck(invoice, adjustments);
         GenerateJointChecks(adjustments, filter, invoice);
         ComplianceDocumentsService.ClearLinkToPaymentFlag(ComplianceDocuments);
         OpenPaymentCycleWorkflow();
         InvoiceEntry.Caches <ComplianceDocumentReference>().Persist(PXDBOperation.Delete);
         scope.Complete();
     }
 }
Ejemplo n.º 3
0
        public virtual APPayment CreateJointChecks(List <JointPayeePayment> jointPayeePayments)
        {
            APPayment apPayment;

            InvoiceJointPayeePayments = jointPayeePayments;
            using (var scope = new PXTransactionScope())
            {
                ComplianceDocumentsService = new ComplianceDocumentsService(InvoiceEntry, InvoiceJointPayeePayments);
                apPayment = GenerateMultipleChecks();
                OpenPaymentCycleWorkflow();
                InvoiceEntry.Caches <ComplianceDocumentReference>().Persist(PXDBOperation.Delete);
                scope.Complete();
            }
            return(apPayment);
        }
 private void InitializeComplianceDocuments()
 {
     ComplianceDocumentsService = new ComplianceDocumentsService(InvoiceEntry, InvoiceJointPayeePayments);
     ComplianceDocuments        = ComplianceDocumentsService.GetComplianceDocumentsToLink();
 }
Ejemplo n.º 5
0
 public override void Initialize()
 {
     jointPayeePaymentService   = new JointPayeePaymentService(Base);
     complianceDocumentsService = new ComplianceDocumentsService(Base);
 }