Skip to content

Commit da8fc4a

Browse files
committed
prepare for 2.20 release
1 parent eb2d9df commit da8fc4a

File tree

4 files changed

+7
-27
lines changed

4 files changed

+7
-27
lines changed

debian/changelog

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
php-spojenet-abraflexi (2.17) UNRELEASED; urgency=medium
1+
php-spojenet-abraflexi (2.18) UNRELEASED; urgency=medium
22

33
[ Vítězslav Dvořák ]
44
* ease-core based
@@ -38,8 +38,9 @@ php-spojenet-abraflexi (2.17) UNRELEASED; urgency=medium
3838
* Relation class introduced
3939
* Relations recovered
4040
* body stripper added
41+
* banka can use subevidence
4142

42-
-- vitex <[email protected]> Tue, 19 Oct 2021 20:00:03 +0200
43+
-- vitex <[email protected]> Fri, 29 Oct 2021 00:32:13 +0200
4344

4445
flexipeehp (1.12) experimental; urgency=medium
4546

debian/composer.json

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

src/AbraFlexi/Date.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ public function __construct(string $flexidate = 'NOW') {
3838
$format = RO::$DateFormat . 'Z';
3939
} elseif (!empty($flexidate) && ($flexidate != 'NOW')) {
4040
$format = RO::$DateFormat;
41+
if(strstr($flexidate, ':')){
42+
$format.='-i:s';
43+
}
4144
}
4245
parent::__construct(empty($format) ? null : \DateTime::createFromFormat($format, $flexidate)->setTime(0, 0)->format(\DateTimeInterface::ATOM));
4346
}

testing/src/AbraFlexi/ROTest.php

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -800,30 +800,6 @@ public function testGetKod() {
800800
$this->assertEquals('code:NOTSET', $this->object->getKod(['kod' => '']));
801801
}
802802

803-
/**
804-
* @covers AbraFlexi\AbraFlexiRO::logResult
805-
*/
806-
public function testLogResult() {
807-
// $this->object->cleanMessages();
808-
$success = json_decode('{"winstrom":{"@version":"1.0","success":"true",'
809-
. '"stats":{"created":"0","updated":"1","deleted":"0","skipped":"0"'
810-
. ',"failed":"0"},"results":[{"id":"1","request-id":"ext:SōkoMan.item'
811-
. ':5271","ref":"/c/spoje_net_s_r_o_1/skladovy-pohyb/1.json"}]}}');
812-
$this->object->logResult(current($this->object->object2array($success)),
813-
'http://test');
814-
815-
$this->assertArrayHasKey('info', $this->object->getStatusMessages(true));
816-
817-
$error = json_decode('{"winstrom":{"@version":"1.0","success":"false",'
818-
. '"stats":{"created":"0","updated":"0","deleted":"0","skipped":"0"'
819-
. ',"failed":"0"},"results":[{"errors":[{"message":"cz.winstrom.'
820-
. 'service.WSBusinessException: Zadaný kód není unikátní.\nZadaný'
821-
. ' kód není unikátní."}]}]}}');
822-
$this->object->lastResponseCode = 500;
823-
$this->object->logResult(current($this->object->object2array($error)));
824-
$this->assertArrayHasKey('error', $this->object->getStatusMessages(true));
825-
}
826-
827803
/**
828804
* @covers AbraFlexi\AbraFlexiRO::flexiUrl
829805
*/

0 commit comments

Comments
 (0)