Skip to content

Commit

Permalink
Added support for reportBranchPerformance
Browse files Browse the repository at this point in the history
  • Loading branch information
freerk-mpluskassa authored Feb 7, 2020
1 parent 1998885 commit 3ef630f
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion Mplusqapiclient.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class MplusQAPIclient
{
const CLIENT_VERSION = '1.27.6';
const CLIENT_VERSION = '1.27.7';
const WSDL_TTL = 300;

var $MIN_API_VERSION_MAJOR = 0;
Expand Down Expand Up @@ -5849,6 +5849,14 @@ public function parseReportResult($method, $soapReportResult)
}
}
break;
case "reportBranchPerformance":
$data = array();
if (isset($soapReportResult->branchPerformanceList->branchPerformance)) {
foreach ($soapReportResult->branchPerformanceList->branchPerformance as $soapbranchPerformance) {
$data[] = $soapbranchPerformance;
}
}
break;
}
return $data;
} // END parseReportResult()
Expand Down Expand Up @@ -8136,6 +8144,14 @@ public function convertReportRequest($method, $arguments)
'branchNumbers', 'articleNumbers', 'perHour',
),
),
'reportBranchPerformance' => array(
'required' => array(
'fromFinancialDate', 'throughFinancialDate',
),
'optional' => array(
'branchNumbers',
),
),
);
$request = [];
if (array_key_exists($method, $fields)) {
Expand Down

0 comments on commit 3ef630f

Please sign in to comment.