mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 22:22:32 +01:00
Fixes for tests
This commit is contained in:
parent
35f7e125fb
commit
bf2670635f
@ -52,7 +52,6 @@ class AddGatewayFee extends AbstractService
|
|||||||
$invoice_items = collect($invoice_items)->filter(function ($item) {
|
$invoice_items = collect($invoice_items)->filter(function ($item) {
|
||||||
return $item->type_id != '3';
|
return $item->type_id != '3';
|
||||||
});
|
});
|
||||||
// })->toArray();
|
|
||||||
|
|
||||||
$this->invoice->line_items = $invoice_items;
|
$this->invoice->line_items = $invoice_items;
|
||||||
|
|
||||||
|
@ -414,10 +414,9 @@ class InvoiceService
|
|||||||
})->toArray();
|
})->toArray();
|
||||||
|
|
||||||
$this->invoice->line_items = array_values($items);
|
$this->invoice->line_items = array_values($items);
|
||||||
|
|
||||||
$this->invoice = $this->invoice->calc()->getInvoice();
|
$this->invoice = $this->invoice->calc()->getInvoice();
|
||||||
// $this->deletePdf();
|
$this->deleteEInvoice(); //@deprecated
|
||||||
$this->deleteEInvoice();
|
|
||||||
|
|
||||||
/* 24-03-2022 */
|
/* 24-03-2022 */
|
||||||
$new_balance = $this->invoice->balance;
|
$new_balance = $this->invoice->balance;
|
||||||
|
@ -38,7 +38,9 @@
|
|||||||
@endcomponent
|
@endcomponent
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@include('portal.ninja2020.gateways.includes.pay_now')
|
@if (count($tokens) > 0)
|
||||||
|
@include('portal.ninja2020.gateways.includes.pay_now')
|
||||||
|
@endif
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@push('footer')
|
@push('footer')
|
||||||
|
@ -177,7 +177,6 @@ class LateFeeTest extends TestCase
|
|||||||
});
|
});
|
||||||
|
|
||||||
$invoices = Invoice::whereIn('id', $ids)->cursor()->map(function ($invoice){
|
$invoices = Invoice::whereIn('id', $ids)->cursor()->map(function ($invoice){
|
||||||
nlog("line item count = ".count($invoice->line_items));
|
|
||||||
$this->assertGreaterThan(0, count($invoice->line_items));
|
$this->assertGreaterThan(0, count($invoice->line_items));
|
||||||
|
|
||||||
$invoice->service()->removeUnpaidGatewayFees();
|
$invoice->service()->removeUnpaidGatewayFees();
|
||||||
@ -188,7 +187,6 @@ class LateFeeTest extends TestCase
|
|||||||
});
|
});
|
||||||
|
|
||||||
$invoices->each(function ($invoice) {
|
$invoices->each(function ($invoice) {
|
||||||
nlog($invoice->line_items);
|
|
||||||
$this->assertGreaterThan(0, count($invoice->line_items));
|
$this->assertGreaterThan(0, count($invoice->line_items));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user