Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
update resetData function
Browse files Browse the repository at this point in the history
  • Loading branch information
superfaktura authored Oct 29, 2020
1 parent 886316e commit 5de019e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SFAPIclient/SFAPIclient.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class SFAPIclient {
'Client' => array(),
'InvoiceItem' => array(),
'MyData' => array(),
'ExpenseItem' => array(),
);

const
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 5de019e

Please sign in to comment.