Skip to main content

MGCLatticeVendorPaymentProposalService

Custom service for vendor payment journals before posting: generating a vendor payment proposal journal based on due date criteria, and generating the payments (checks) of an open vendor payment journal.

Methods​

new​

Initializes a new instance of the MGCLatticeVendorPaymentProposalService class.

  • Visibility: public
  • Returns: void

No parameters.

construct​

Creates a new instance of the MGCLatticeVendorPaymentProposalService class.

  • Visibility: public
  • Returns: MGCLatticeVendorPaymentProposalService A new MGCLatticeVendorPaymentProposalService instance.

No parameters.

generatePaymentProposal​

Creates a vendor payment journal and fills it with the standard vendor payment proposal: the open, approved vendor transactions due from FromDueDate through ToDueDate (default today), optionally only those with MethodOfPayment, are proposed (CustVendCreatePaymJournal_Vend) and transferred to the journal as payment lines (CustVendPaymProposalTransferToJournal). The journal is not posted.

  • Visibility: public
  • Returns: MGCLatticeOrderOperationResponseContract An MGCLatticeOrderOperationResponseContract: the DocumentId and PostedDocumentId are the payment journal and the message gives the number of payment lines and proposed open transactions; when nothing matched no journal is kept, the DocumentId is empty and the message says so.
NameTypeOptionalDescription
_requestMGCLatticeVendorPaymentProposalRequestContractNoThe request containing JournalNameId (a vendor payment journal name), FromDueDate, ToDueDate, MethodOfPayment, and standard header fields.

generatePaymentProposalBatch​

Generates multiple vendor payment proposals in a single bulk operation.

  • Visibility: public
  • Returns: MGCLatticeBulkOperationResponseContract An MGCLatticeBulkOperationResponseContract containing per-item results.
NameTypeOptionalDescription
_requestsListNoList of MGCLatticeVendorPaymentProposalRequestContract.

generateVendorPayments​

Generates the payments of an open vendor payment journal with the standard Generate payments of the journal lines page (VendSumForPaym, run without its dialogs by MGCLatticeVendPaymGenerator): for each method of payment and bank account of the journal's vendor lines with payment status None or Rejected (the lines with MethodOfPayment, or without it the lines whose method needs generation before posting; optionally only the lines that pay from BankAccountId), the method's check format draws the next check numbers of the bank account's check layout; each line gets its check number as payment reference and payment status Sent, and the check is recorded in the bank account's checks with status Payment. With PostAfterGenerate the journal is then posted (LedgerJournalCheckPost), in the same transaction.

  • Visibility: public
  • Returns: MGCLatticeOrderOperationResponseContract An MGCLatticeOrderOperationResponseContract: DocumentId is the journal; PostedDocumentId is the first payment voucher when the journal was posted, otherwise the first check number. The message lists every check number; the informational messages give one line per check (number, vendor, amount, voucher, bank account).
NameTypeOptionalDescription
_requestMGCLatticeVendorPaymentGenerationRequestContractNoThe request: JournalNum (or JournalNumExternalKey with ExternalSystem), MethodOfPayment, BankAccountId, PostAfterGenerate and the standard header fields.

generateVendorPaymentsBatch​

Generates the payments of several vendor payment journals in a single bulk operation; each item runs as a single generateVendorPayments and gets its own result.

  • Visibility: public
  • Returns: MGCLatticeBulkOperationResponseContract An MGCLatticeBulkOperationResponseContract containing per-item results.
NameTypeOptionalDescription
_requestsListNoList of MGCLatticeVendorPaymentGenerationRequestContract.