fix: rendre un animal adopté indisponible
This commit is contained in:
parent
d35434c522
commit
b8abaa8440
7 changed files with 42 additions and 9 deletions
|
|
@ -99,6 +99,9 @@ class AdoptionService
|
|||
UPDATE animals
|
||||
SET
|
||||
status = 'adopte',
|
||||
adoption_availability = 'not_available',
|
||||
adoption_available_from = NULL,
|
||||
adoption_unavailability_reason = 'Animal adopté',
|
||||
refuge_room = NULL,
|
||||
care_box_key = NULL,
|
||||
updated_at = CURRENT_TIMESTAMP,
|
||||
|
|
@ -162,6 +165,7 @@ class AdoptionService
|
|||
$stmt = $db->prepare("
|
||||
INSERT INTO animal_history (
|
||||
animal_id,
|
||||
action,
|
||||
type,
|
||||
label,
|
||||
details,
|
||||
|
|
@ -170,6 +174,7 @@ class AdoptionService
|
|||
) VALUES (
|
||||
:animal_id,
|
||||
'adoption',
|
||||
'adoption',
|
||||
'Adoption finalisée',
|
||||
:details,
|
||||
:user_id,
|
||||
|
|
|
|||
|
|
@ -31,10 +31,10 @@
|
|||
<div class="col-lg-6">
|
||||
<section class="card h-100">
|
||||
<div class="card-body">
|
||||
<span class="badge bg-blue-lt mb-2">1.0.0-rc.21</span>
|
||||
<h3>Température pendant les tournées</h3>
|
||||
<p class="text-muted">Température proposée à 38,5 °C pendant chaque contrôle et graphique médical
|
||||
commun pour suivre son évolution avec celle du poids.</p>
|
||||
<span class="badge bg-blue-lt mb-2">1.0.0-rc.22</span>
|
||||
<h3>Disponibilité après adoption</h3>
|
||||
<p class="text-muted">Une adoption finalisée rend automatiquement l’animal indisponible afin de
|
||||
conserver un état administratif cohérent.</p>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue