mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for test data client balances
This commit is contained in:
parent
77a1ad6e04
commit
ce98843cf9
@ -125,6 +125,7 @@ class CreateTestData extends Command
|
|||||||
{
|
{
|
||||||
for ($i = 0; $i < $this->count; $i++) {
|
for ($i = 0; $i < $this->count; $i++) {
|
||||||
$data = [
|
$data = [
|
||||||
|
'is_public' => true,
|
||||||
'client_id' => $client->id,
|
'client_id' => $client->id,
|
||||||
'invoice_date_sql' => date_create()->modify(rand(-100, 100) . ' days')->format('Y-m-d'),
|
'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'),
|
'due_date_sql' => date_create()->modify(rand(-100, 100) . ' days')->format('Y-m-d'),
|
||||||
|
@ -237,7 +237,6 @@ class BaseIntent
|
|||||||
foreach ($compositeEntity->children as $child) {
|
foreach ($compositeEntity->children as $child) {
|
||||||
if ($child->type == 'Field') {
|
if ($child->type == 'Field') {
|
||||||
$field = $child->value;
|
$field = $child->value;
|
||||||
;
|
|
||||||
} elseif ($child->type == 'Value') {
|
} elseif ($child->type == 'Value') {
|
||||||
$value = $child->value;
|
$value = $child->value;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user