1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Hiveage Import doesn't correctly import the Amount (paid total) #1710

This commit is contained in:
Hillel Coren 2017-10-16 22:36:10 +03:00
parent 4366bc28ed
commit 8b2c5d91d7

View File

@ -524,7 +524,6 @@ class ImportService
if ($resource = $paymentTransformer->transform($row)) {
$data = $this->fractal->createData($resource)->toArray();
$data['amount'] = min($data['amount'], Utils::parseFloat($row->amount));
$data['invoice_id'] = $invoicePublicId;
if (Payment::validate($data) === true) {
$data['invoice_id'] = $invoiceId;