Diamant3Opts
Diamant3Opts =
object
Properties
apiUrl
apiUrl:
string
username
username:
string
password
password:
string
bookingConfiguration
bookingConfiguration:
object
bookAsIncomingInvoice?
optionalbookAsIncomingInvoice:boolean
Description
If true, invoices will be created in the "Rechnungseingangsbuch" rather than booked directly.
useBookingPeriod
useBookingPeriod:
boolean
bookingPeriodFieldName?
optionalbookingPeriodFieldName:string
Description
The field name in ptpInvoice where the booking period is stored, required if useBookingPeriod is true.
getTransactionType()
getTransactionType: (
docFile) =>string
Parameters
docFile
Returns
string
the transaction type as string, which will be used for the invoice booking.
Description
Optional function to determine the transaction type based on the invoice data (docType).
Default
- will be "ER" for ROB and "EG" for GOB
getLocalCurrency()
getLocalCurrency: (
docFile) =>string
Function to determine the local currency based on the recipient for the current file.
Parameters
docFile
Returns
string
the local currency code (e.g. "EUR")
getErpInvoiceNumber()?
optionalgetErpInvoiceNumber: (docFile) =>string
Optional function to generate the ERP invoice number that will be assigned to the invoice in the ERP system.
Parameters
docFile
Returns
string
the ERP invoice number as string.
masterDataConfiguration
masterDataConfiguration:
object
useAllRecipients
useAllRecipients:
boolean
recipients?
optionalrecipients:string[]
Description
Optional list of recipients, only used if "useAllRecipients" is false
taskType
taskType:
"masterDataUpdateErpService"
tasks
tasks:
Diamant3MasterDataTask[]
waitForRunningTasksInMinutes?
optionalwaitForRunningTasksInMinutes:number
skipPrintingReport?
optionalskipPrintingReport:boolean
jiraReportConfig?
optionaljiraReportConfig:JiraReportConfig
skipSendingJiraReport?
optionalskipSendingJiraReport:boolean