mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
add overdue
This commit is contained in:
@ -37,15 +37,6 @@ class InvoiceFactory extends Factory
|
||||
});
|
||||
}
|
||||
|
||||
public function overdue()
|
||||
{
|
||||
return $this->state(function (array $attributes) {
|
||||
return [
|
||||
'status' => Invoice::STATUS_OVERDUE,
|
||||
];
|
||||
});
|
||||
}
|
||||
|
||||
public function completed()
|
||||
{
|
||||
return $this->state(function (array $attributes) {
|
||||
@ -55,15 +46,6 @@ class InvoiceFactory extends Factory
|
||||
});
|
||||
}
|
||||
|
||||
public function due()
|
||||
{
|
||||
return $this->state(function (array $attributes) {
|
||||
return [
|
||||
'status' => Invoice::STATUS_DUE,
|
||||
];
|
||||
});
|
||||
}
|
||||
|
||||
public function unpaid()
|
||||
{
|
||||
return $this->state(function (array $attributes) {
|
||||
|
||||
Reference in New Issue
Block a user