mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 00:34:35 -04:00
Fixes for payment tests
This commit is contained in:
parent
d919134bb9
commit
8bddb49e6c
@ -83,7 +83,6 @@ class PaymentAppliedValidAmount implements Rule
|
|||||||
$invoice_amounts += $invoice['amount'];
|
$invoice_amounts += $invoice['amount'];
|
||||||
|
|
||||||
$inv = $inv_collection->firstWhere('id', $invoice['invoice_id']);
|
$inv = $inv_collection->firstWhere('id', $invoice['invoice_id']);
|
||||||
nlog($inv);
|
|
||||||
|
|
||||||
if($inv->balance < $invoice['amount']) {
|
if($inv->balance < $invoice['amount']) {
|
||||||
|
|
||||||
|
@ -1392,8 +1392,6 @@ class PaymentTest extends TestCase
|
|||||||
|
|
||||||
$payment = Payment::find($this->decodePrimaryKey($payment_id));
|
$payment = Payment::find($this->decodePrimaryKey($payment_id));
|
||||||
|
|
||||||
// nlog($payment);
|
|
||||||
|
|
||||||
$this->assertNotNull($payment);
|
$this->assertNotNull($payment);
|
||||||
$this->assertNotNull($payment->invoices());
|
$this->assertNotNull($payment->invoices());
|
||||||
$this->assertEquals(1, $payment->invoices()->count());
|
$this->assertEquals(1, $payment->invoices()->count());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user