Skip to content

Commit

Permalink
Check subtotal to disregard taxes
Browse files Browse the repository at this point in the history
  • Loading branch information
ELepolt committed Aug 20, 2024
1 parent b3573d7 commit f13484c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Test/InvoiceTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,8 @@ public void RefundPercentage()
adjustment.RefundPercentage = 10;
var refundInvoice = invoice.Refund(adjustment, new Invoice.RefundOptions());
Assert.NotEqual(invoice.Uuid, refundInvoice.Uuid);
Assert.Equal(-100, refundInvoice.TotalInCents);
Assert.Equal(-100, refundInvoice.SubtotalInCents);
Assert.Equal(1, refundInvoice.Adjustments.Count);
Assert.Equal(0, refundInvoice.Transactions.Count);
account.Close();
}

Expand Down

0 comments on commit f13484c

Please sign in to comment.