1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43:
<?php
/**
* FlexiPeeHP - Contract Class.
* Objekt Smlouvy.
*
* @author Vítězslav Dvořák <vitex@arachne.cz>
* @copyright (C) 2018 Spoje.Net
*/
namespace FlexiPeeHP;
/**
* Smlouva
*
* @link https://demo.flexibee.eu/c/demo/smlouva/properties Vlastnosti evidence
*/
class Smlouva extends FlexiBeeRW
{
use Stitky;
use Firma;
/**
* Evidence užitá objektem.
*
* @var string
*/
public $evidence = 'smlouva';
/**
* Generuje faktury ze smluv. Pokud je nastaven sloupec <strong>id</strong> generují se pouze z této smlouvy.
*
* @link https://www.flexibee.eu/api/dokumentace/ref/generovani-faktur/ Interní dokumentace
*
* @return boolean
*/
public function generovaniFaktur()
{
$this->performRequest(($this->getMyKey() ? $this->getMyKey().'/' : '' ).'generovani-faktur',
'PUT');
return $this->lastResponseCode == 200;
}
}