Manuais
PHC GO Funções SDK - SEPA
 

SEPA


 
 

 

Description

This function is used to generate a SEPA file, based on a list of record stamps from various entities.

Return Function

PHC Result

Parameters


Name Description Type
documents Dictionary that stores the record stamps for the supported entities (expenses, olbb, pd, fc, po). Dictionary(Of String, List(Of String))
accountStamp Selected bank stamp. String
groupBySupplier Merges SEPA payment lines whoose target IBAN is the same. Boolean
recordToAttachTo Record to attach the file SEPA file to. GenericVO

Example



'List of documents to include in the SEPA file.

Dim SEPADocuments As New Dictionary(Of String, List(Of String))
Dim pdStringList As List(Of String) = New List(Of String)
Dim olbbStringList As List(Of String) = New List(Of String)
Dim expensesStringList As List(Of String) = New List(Of String)
Dim fcStringList As List(Of String) = New List(Of String)
Dim poStringList As List(Of String) = New List(Of String)

(...)

SEPADocuments.Add("expenses", expensesStringList)
SEPADocuments.Add("olbb", olbbStringList)
SEPADocuments.Add("pd", pdStringList)
SEPADocuments.Add("fc", fcStringList)
SEPADocuments.Add("po", poStringList)


'Selected bank account
Dim selectedBank = BlVO.blstamp

'Group SEPA payment lines based on suppliers' IBAN
Dim groupPaymentsByIBAN = true

'Record to attach the file.
Dim recordToAttachSEPAFile = itemVO

'Function call
SEPAResult = SDK.SEPA.CreateSepa(SEPADocuments, selectedBank, groupPaymentsByIBAN, recordToAttachSEPAFile)