Documentation

email

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
author

Vítězslav Dvořák info@vitexsoftware.cz

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
  1. try Document's "kontaktEmail" field
  2. try Document's company email
  3. try Document's primary contact mail
  4. try Document's any contact mail
Return values
string

getRecipients()

Get recipients for documnet.

public getRecipients([string $purpose = '' ]) : string
  1. try Document's "kontaktEmail" field
  2. try Document's company email
  3. try Document's primary contact mail
  4. try Document's any contact mail
  5. 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

Search results