#!perl
-use Test::More tests => 127;
+use Test::More tests => 129;
diag("Test features of Conditional Negative Balances code.");
'Remaining balance of 0.00 after payment'
);
+ok(
+ $summary->xact_finish ne '',
+ 'xact_finish is set due to 0.00 balance'
+);
+
### check-in the lost copy
$item_req = $storage_ses->request('open-ils.storage.direct.asset.copy.retrieve', $item_id);
'Patron has a negative balance (credit) of 50.00 due to overpayment'
);
+ok(
+ !defined($summary->xact_finish),
+ 'xact_finish is not set due to non-zero balance'
+);
+
##############################
# 14. RERUN of Case 12. Test negative balance settings on fines