diff --git a/.env.example b/.env.example index 86c4f3d..06ee163 100644 --- a/.env.example +++ b/.env.example @@ -29,4 +29,6 @@ MAIL_ENCRYPTION=null MAIL_FROM_ADDRESS=noreply-sw@ldc.fr MAIL_FROM_NAME="${APP_NAME}" MAIL_LIST_SERVICEWEB=equipe.web@ldc.fr -MAIL_ADMIN=equipe.web@ldc.fr \ No newline at end of file +MAIL_ADMIN=equipe.web@ldc.fr + +LDC_STATUS_CHECKER_API_KEY= diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index aab0f39..9f113d6 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -251,7 +251,7 @@ class Invoice extends Model static::creating(function (self $model) { $model->ref = \sprintf( '%s_%s_%s', - Carbon::now()->isoFormat('YYYY'), + Carbon::now()->isoFormat('YYYY-MM'), Str::padLeft((Invoice::whereYear('created_at', Carbon::now()->isoFormat('YYYY')) ->whereMonth('created_at', Carbon::now()->isoFormat('MM')) ->count() + 1) ?: 1, 4, '0'), diff --git a/resources/ts/components/LabelSelectComponent.vue b/resources/ts/components/LabelSelectComponent.vue index 8a2a3cb..d0c2b14 100644 --- a/resources/ts/components/LabelSelectComponent.vue +++ b/resources/ts/components/LabelSelectComponent.vue @@ -7,12 +7,12 @@ label="label" :options="labels" > -