Skip to content

Commit af444c0

Browse files
committed
Enhance VAT Rate Query and Clean Up Test Files
- Updated the SazbaDph class to include a filter for only active VAT rates in the query parameters. - Removed unnecessary blank lines at the end of multiple test files to maintain consistency and adhere to coding standards.
1 parent a1fea47 commit af444c0

18 files changed

+17674
-17872
lines changed

src/AbraFlexi/Actions.php

Lines changed: 9949 additions & 9709 deletions
Large diffs are not rendered by default.

src/AbraFlexi/DateTime.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,16 @@ class DateTime extends \DateTime
4444
public function __construct(string $flexidatetime = 'NOW')
4545
{
4646
$this->isNull = empty($flexidatetime);
47+
4748
if ($this->isNull) {
4849
parent::__construct();
4950
$this->isNull = true;
51+
5052
return;
5153
}
5254

5355
$format = '';
56+
5457
if (strstr($flexidatetime, '.')) { // NewFormat
5558
$format = self::$format;
5659
} elseif ($flexidatetime !== 'NOW') { // Old format
@@ -61,6 +64,7 @@ public function __construct(string $flexidatetime = 'NOW')
6164
parent::__construct($flexidatetime);
6265
} else {
6366
$sourceObject = \DateTime::createFromFormat($format, $flexidatetime);
67+
6468
if ($sourceObject) {
6569
// Use a format that preserves microseconds for the parent constructor
6670
parent::__construct($sourceObject->format('Y-m-d H:i:s.u'), $sourceObject->getTimezone());
@@ -133,4 +137,4 @@ public function toDateTime(): \DateTime
133137

134138
return $dateTime;
135139
}
136-
}
140+
}

src/AbraFlexi/EvidenceList.php

Lines changed: 3062 additions & 3063 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)