Fix for test data client balances

This commit is contained in:
Hillel Coren 2017-04-09 16:03:10 +03:00
parent 77a1ad6e04
commit ce98843cf9
2 changed files with 2 additions and 2 deletions

View File

@ -125,6 +125,7 @@ class CreateTestData extends Command
{
for ($i = 0; $i < $this->count; $i++) {
$data = [
'is_public' => true,
'client_id' => $client->id,
'invoice_date_sql' => date_create()->modify(rand(-100, 100) . ' days')->format('Y-m-d'),
'due_date_sql' => date_create()->modify(rand(-100, 100) . ' days')->format('Y-m-d'),

View File

@ -29,7 +29,7 @@ class BaseIntent
$this->state = $state;
$this->data = $data;
// If they're viewing a client set it as the current state
if (! $this->hasField('Filter', 'all')) {
$url = url()->previous();
@ -237,7 +237,6 @@ class BaseIntent
foreach ($compositeEntity->children as $child) {
if ($child->type == 'Field') {
$field = $child->value;
;
} elseif ($child->type == 'Value') {
$value = $child->value;
}