Skip to content

Commit f35320a

Browse files
author
Mplus Software
committed
> Bugfix: getVatGroupList now returns 'vatGroup' instead of 'return'.
1 parent 3edb254 commit f35320a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Mplusqapiclient.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,6 @@ public function updateRelation($relation)
524524
try {
525525
$result = $this->client->updateRelation($this->parser->convertRelation($relation));
526526
return $this->parser->parseUpdateRelationResult($result);
527-
528527
} catch (SoapFault $e) {
529528
throw new MplusQAPIException("SoapFault occurred: ".$e->getMessage(), 0, $e);
530529
} catch (Exception $e) {
@@ -677,8 +676,8 @@ public function parseTerminalList($soapTerminalList) {
677676
//----------------------------------------------------------------------------
678677

679678
public function parseVatGroupList($soapVatGroupList) {
680-
if (isset($soapVatGroupList->return)) {
681-
$soapVatGroupList = $soapVatGroupList->return;
679+
if (isset($soapVatGroupList->vatGroup)) {
680+
$soapVatGroupList = $soapVatGroupList->vatGroup;
682681
}
683682
$vatGroups = array();
684683
foreach ($soapVatGroupList as $soapVatGroup) {

0 commit comments

Comments
 (0)