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

Commit 195b0e9

Browse files
committed
v1.10 release
1 parent e73ccac commit 195b0e9

160 files changed

Lines changed: 181 additions & 173 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

debian/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "PHP Based Library for easy interaction with czech accounting system Flexibee.",
44
"homepage": "https://github.com/Spoje-NET/FlexiPeeHP",
55
"license": "GPL-2.0+",
6-
"version": "1.9.7",
6+
"version": "1.10",
77
"type": "library",
88
"authors": [
99
{

src/FlexiPeeHP/FakturaVydana.php

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,15 @@ public function addArrayToBranch($data, $relationPath = 'polozkyDokladu')
6161
* @param $doklad Banka|PokladniPohyb|InterniDoklad S jakým dokladem spárovat ?
6262
* @param $zbytek string ne|zauctovat|ignorovat|castecnaUhrada|castecnaUhradaNeboZauctovat|castecnaUhradaNeboIgnorovat
6363
*
64-
* @return Banka|PokladniPohyb|InterniDoklad Matched document
64+
* @return boolean success
6565
*/
6666
public function sparujPlatbu($doklad, $zbytek = 'ignorovat')
6767
{
6868
$sparovani = ['uhrazovanaFak' => $this];
6969
$sparovani['uhrazovanaFak@type'] = $this->evidence;
7070
$sparovani['zbytek'] = $zbytek;
71-
return $doklad->insertToFlexiBee(['id' => $doklad, 'sparovani' => $sparovani]);
71+
$doklad->insertToFlexiBee(['id' => $doklad, 'sparovani' => $sparovani]);
72+
return $doklad->lastResponseCode == 201;
7273
}
7374

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

112114
$this->setDataValue('hotovostni-uhrada', $uhrada);
113-
return $this->insertToFlexiBee();
115+
$this->insertToFlexiBee();
116+
return $this->lastResponseCode == 201;
114117
}
115118

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

131135
$this->setDataValue('odpocty-zaloh', ['odpocet' => $odpocet]);
132-
return $this->insertToFlexiBee();
136+
$this->insertToFlexiBee();
137+
return $this->lastResponseCode == 201;
133138
}
134139

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

162168
$this->setDataValue('odpocty-zaloh', ['odpocet' => $odpocet]);
163-
return $this->insertToFlexiBee();
169+
$this->insertToFlexiBee();
170+
return $this->lastResponseCode == 201;
164171
}
165172

166173
/**

src/FlexiPeeHP/FlexiBeeRO.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class FlexiBeeRO extends \Ease\Sand
2626
*
2727
* @var string
2828
*/
29-
public static $libVersion = '1.9.2.1';
29+
public static $libVersion = '1.10';
3030

3131
/**
3232
* Základní namespace pro komunikaci s FlexiBee.
@@ -824,17 +824,18 @@ public function updateApiURL()
824824
}
825825
$this->apiURL .= '.'.$this->format;
826826
}
827-
828-
/**;
827+
/* * ;
829828
* Add Default Url params to given url if not overrided
830829
*
831830
* @param string $urlRaw
832831
*
833832
* @return string url with default params added
834833
*/
834+
835835
public function addDefaultUrlParams($urlRaw)
836836
{
837-
return \Ease\Shared::addUrlParams($urlRaw, $this->defaultUrlParams, false);
837+
return \Ease\Shared::addUrlParams($urlRaw, $this->defaultUrlParams,
838+
false);
838839
}
839840

840841
/**
@@ -2003,10 +2004,10 @@ public function getEvidenceInfo($evidence = null)
20032004
}
20042005
if (isset(EvidenceList::$evidences[$evidence])) {
20052006
$evidencesInfo = EvidenceList::$evidences[$evidence];
2006-
$propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence));
2007-
if(isset(Formats::$$propsName)){
2007+
$propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence));
2008+
if (isset(Formats::$$propsName)) {
20082009
$evidencesInfo['formats'] = Formats::$$propsName;
2009-
}
2010+
}
20102011
}
20112012
return $evidencesInfo;
20122013
}

static/Actions.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

static/EvidenceFullList.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

static/EvidenceList.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)