Skip to main content

MGCLatticeVendorPaymentProposalService.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.

  • HTTP method: POST
  • Route: /api/services/MGCLatticeAccountsPayableServiceGroup/MGCLatticeVendorPaymentProposalService/generateVendorPayments
  • Service class: MGCLatticeVendorPaymentProposalService

Parameters​

NameTypeOptionalDescription
_requestMGCLatticeVendorPaymentGenerationRequestContractNoThe request: JournalNum (or JournalNumExternalKey with ExternalSystem), MethodOfPayment, BankAccountId, PostAfterGenerate and the standard header fields.

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).

Security​

  • Requires privilege MGCLatticeAccountsPayableServiceMaintain