1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Minor fixes for imports

This commit is contained in:
David Bomba 2023-08-31 08:33:20 +10:00
parent abae112fba
commit 7536cefc84

View File

@ -1097,6 +1097,9 @@ class Import implements ShouldQueue
$modified['user_id'] = $this->processUserId($resource);
$modified['company_id'] = $this->company->id;
$modified['line_items'] = $this->cleanItems($modified['line_items']);
//31/08-2023 set correct paid to date here:
$modified['paid_to_date'] = $modified['amount'] - $modified['balance'] ?? 0;
unset($modified['id']);