Skip to content
This repository has been archived by the owner on Jul 29, 2020. It is now read-only.

Commit

Permalink
v1.10 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed May 29, 2018
1 parent e73ccac commit 195b0e9
Show file tree
Hide file tree
Showing 160 changed files with 181 additions and 173 deletions.
2 changes: 1 addition & 1 deletion debian/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "PHP Based Library for easy interaction with czech accounting system Flexibee.",
"homepage": "https://github.com/Spoje-NET/FlexiPeeHP",
"license": "GPL-2.0+",
"version": "1.9.7",
"version": "1.10",
"type": "library",
"authors": [
{
Expand Down
23 changes: 15 additions & 8 deletions src/FlexiPeeHP/FakturaVydana.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,15 @@ public function addArrayToBranch($data, $relationPath = 'polozkyDokladu')
* @param $doklad Banka|PokladniPohyb|InterniDoklad S jakým dokladem spárovat ?
* @param $zbytek string ne|zauctovat|ignorovat|castecnaUhrada|castecnaUhradaNeboZauctovat|castecnaUhradaNeboIgnorovat
*
* @return Banka|PokladniPohyb|InterniDoklad Matched document
* @return boolean success
*/
public function sparujPlatbu($doklad, $zbytek = 'ignorovat')
{
$sparovani = ['uhrazovanaFak' => $this];
$sparovani['uhrazovanaFak@type'] = $this->evidence;
$sparovani['zbytek'] = $zbytek;
return $doklad->insertToFlexiBee(['id' => $doklad, 'sparovani' => $sparovani]);
$doklad->insertToFlexiBee(['id' => $doklad, 'sparovani' => $sparovani]);
return $doklad->lastResponseCode == 201;
}

/**
Expand All @@ -87,7 +88,8 @@ public function sparujPlatbu($doklad, $zbytek = 'ignorovat')
* string 'rada' dokladová řada pro vytvářený pokladní doklad.
* Např.:code:POKLADNA+
* string 'datumUhrady' sql formát. Výchozí: dnes
* @return array výsledek pokusu o provedení úhrady
*
* @return boolean výsledek pokusu o provedení úhrady
*/
public function hotovostniUhrada($value, $uhrada = [])
{
Expand All @@ -110,7 +112,8 @@ public function hotovostniUhrada($value, $uhrada = [])
$uhrada['castka'] = $value;

$this->setDataValue('hotovostni-uhrada', $uhrada);
return $this->insertToFlexiBee();
$this->insertToFlexiBee();
return $this->lastResponseCode == 201;
}

/**
Expand All @@ -119,7 +122,8 @@ public function hotovostniUhrada($value, $uhrada = [])
* @link https://demo.flexibee.eu/devdoc/odpocet-zaloh Odpočet záloh a ZDD
* @param FakturaVydana $invoice zálohová faktura
* @param array $odpocet Vlastnosti odpočtu
* @return array
*
* @return boolean success
*/
public function odpocetZalohy($invoice, $odpocet = [])
{
Expand All @@ -129,7 +133,8 @@ public function odpocetZalohy($invoice, $odpocet = [])
$odpocet['doklad'] = $invoice;

$this->setDataValue('odpocty-zaloh', ['odpocet' => $odpocet]);
return $this->insertToFlexiBee();
$this->insertToFlexiBee();
return $this->lastResponseCode == 201;
}

/**
Expand All @@ -138,7 +143,8 @@ public function odpocetZalohy($invoice, $odpocet = [])
* @link https://demo.flexibee.eu/devdoc/odpocet-zaloh Odpočet záloh a ZDD
* @param FakturaVydana $invoice zálohová faktura
* @param array $odpocet Vlastnosti odpočtu
* @return array
*
* @return boolean success
*/
public function odpocetZDD($invoice, $odpocet = [])
{
Expand All @@ -160,7 +166,8 @@ public function odpocetZDD($invoice, $odpocet = [])
$odpocet['doklad'] = $invoice;

$this->setDataValue('odpocty-zaloh', ['odpocet' => $odpocet]);
return $this->insertToFlexiBee();
$this->insertToFlexiBee();
return $this->lastResponseCode == 201;
}

/**
Expand Down
15 changes: 8 additions & 7 deletions src/FlexiPeeHP/FlexiBeeRO.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class FlexiBeeRO extends \Ease\Sand
*
* @var string
*/
public static $libVersion = '1.9.2.1';
public static $libVersion = '1.10';

/**
* Základní namespace pro komunikaci s FlexiBee.
Expand Down Expand Up @@ -824,17 +824,18 @@ public function updateApiURL()
}
$this->apiURL .= '.'.$this->format;
}

/**;
/* * ;
* Add Default Url params to given url if not overrided
*
* @param string $urlRaw
*
* @return string url with default params added
*/

public function addDefaultUrlParams($urlRaw)
{
return \Ease\Shared::addUrlParams($urlRaw, $this->defaultUrlParams, false);
return \Ease\Shared::addUrlParams($urlRaw, $this->defaultUrlParams,
false);
}

/**
Expand Down Expand Up @@ -2003,10 +2004,10 @@ public function getEvidenceInfo($evidence = null)
}
if (isset(EvidenceList::$evidences[$evidence])) {
$evidencesInfo = EvidenceList::$evidences[$evidence];
$propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence));
if(isset(Formats::$$propsName)){
$propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence));
if (isset(Formats::$$propsName)) {
$evidencesInfo['formats'] = Formats::$$propsName;
}
}
}
return $evidencesInfo;
}
Expand Down
2 changes: 1 addition & 1 deletion static/Actions.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/EvidenceFullList.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/EvidenceList.json

Large diffs are not rendered by default.

Loading

0 comments on commit 195b0e9

Please sign in to comment.