Skip to content
Snippets Groups Projects
Commit f583c6b3 authored by Demian Katz's avatar Demian Katz
Browse files

Add fine creation date to Demo driver.

parent c8bb087f
No related merge requests found
...@@ -772,9 +772,10 @@ class Demo extends AbstractBase ...@@ -772,9 +772,10 @@ class Demo extends AbstractBase
$fineList[] = [ $fineList[] = [
"amount" => $fine * 100, "amount" => $fine * 100,
"checkout" => $this->dateConverter->convertToDisplayDate( "checkout" => $this->dateConverter
'U', $checkout ->convertToDisplayDate('U', $checkout),
), 'createdate' => $this->dateConverter
->convertToDisplayDate('U', time()),
// After 20 days it becomes 'Long Overdue' // After 20 days it becomes 'Long Overdue'
"fine" => $day_overdue > 20 ? "Long Overdue" : "Overdue", "fine" => $day_overdue > 20 ? "Long Overdue" : "Overdue",
// 50% chance they've paid half of it // 50% chance they've paid half of it
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment