Add functions to use with "email" data column.
Please use with:
faktura-prijata prodejka doklad-k-uhrade objednavka-vydana vzajemny-zapocet banka pokladni-pohyb faktura-vydana skladovy-pohyb pohledavka zavazek nabidka-prijata poptavka-vydana nabidka-vydana poptavka-prijata interni-doklad objednavka-prijata
Tags
Table of Contents
- docTypeToPurpose() : string
- Document type To Purpose.
- getEmail() : string
- Get recipient for documnet.
- getRecipients() : string
- Get recipients for documnet.
Methods
docTypeToPurpose()
Document type To Purpose.
public
static docTypeToPurpose(RO $document) : string
Parameters
- $document : RO
Return values
string —Contact role Fak|Obj|Nab|Ppt|Skl|Pok or ''
getEmail()
Get recipient for documnet.
public
getEmail() : string
- try Document's "kontaktEmail" field
- try Document's company email
- try Document's primary contact mail
- try Document's any contact mail
Return values
string —getRecipients()
Get recipients for documnet.
public
getRecipients([string $purpose = '' ]) : string
- try Document's "kontaktEmail" field
- try Document's company email
- try Document's primary contact mail
- try Document's any contact mail
- try Document's contacts mail for given purpose
Parameters
- $purpose : string = ''
-
Purpose of Mail - one of Fak|Obj|Nab|Ppt|Skl|Pok or empty for autodetection
Return values
string —column divided list of email addresses