Skip to content

Commit 3ef630f

Browse files
Added support for reportBranchPerformance
1 parent 1998885 commit 3ef630f

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

Mplusqapiclient.php

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
class MplusQAPIclient
44
{
5-
const CLIENT_VERSION = '1.27.6';
5+
const CLIENT_VERSION = '1.27.7';
66
const WSDL_TTL = 300;
77

88
var $MIN_API_VERSION_MAJOR = 0;
@@ -5849,6 +5849,14 @@ public function parseReportResult($method, $soapReportResult)
58495849
}
58505850
}
58515851
break;
5852+
case "reportBranchPerformance":
5853+
$data = array();
5854+
if (isset($soapReportResult->branchPerformanceList->branchPerformance)) {
5855+
foreach ($soapReportResult->branchPerformanceList->branchPerformance as $soapbranchPerformance) {
5856+
$data[] = $soapbranchPerformance;
5857+
}
5858+
}
5859+
break;
58525860
}
58535861
return $data;
58545862
} // END parseReportResult()
@@ -8136,6 +8144,14 @@ public function convertReportRequest($method, $arguments)
81368144
'branchNumbers', 'articleNumbers', 'perHour',
81378145
),
81388146
),
8147+
'reportBranchPerformance' => array(
8148+
'required' => array(
8149+
'fromFinancialDate', 'throughFinancialDate',
8150+
),
8151+
'optional' => array(
8152+
'branchNumbers',
8153+
),
8154+
),
81398155
);
81408156
$request = [];
81418157
if (array_key_exists($method, $fields)) {

0 commit comments

Comments
 (0)