From 5de019e0d58d82575804232f5eaaff1adbecde2a Mon Sep 17 00:00:00 2001 From: SuperFaktura Date: Thu, 29 Oct 2020 14:52:49 +0100 Subject: [PATCH] update resetData function --- SFAPIclient/SFAPIclient.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SFAPIclient/SFAPIclient.php b/SFAPIclient/SFAPIclient.php index dfe3ee5..e792c91 100755 --- a/SFAPIclient/SFAPIclient.php +++ b/SFAPIclient/SFAPIclient.php @@ -32,6 +32,7 @@ class SFAPIclient { 'Client' => array(), 'InvoiceItem' => array(), 'MyData' => array(), + 'ExpenseItem' => array(), ); const @@ -116,7 +117,7 @@ protected function exceptionHandling(Exception $e) public function resetData($options = array()) { if (empty($options)) { - $options = array('Invoice', 'InvoiceItem', 'Expense', 'Client'); + $options = array('Invoice', 'InvoiceItem', 'Expense', 'Client', 'ExpenseItem'); } foreach ($options as $option) { $this->data[$option] = array();