Add safety seal support to orders and related logic for wash certificates
- Introduced `safety_seal` column in the `orders` table. - Updated order creation and completion logic to handle safety seal values. - Enhanced order and booking classes to manage safety seal attachment and retrieval. - Added tests to validate safety seal functionality in order processing.
This commit is contained in:
@@ -272,6 +272,12 @@ class moduleStripeRoute
|
||||
$department = (new departments_o())->select((int)self::fromRequest('id'));
|
||||
$department->requireSelected();
|
||||
(new logs_o())->add('modules_stripe', 'global', 1, 0, 'MODULES_STRIPE', 'User accessed the department terminal readers');
|
||||
if (!$department->isStripeTerminalLocationSet()) {
|
||||
$response->error([
|
||||
'message' => 'Card payments are not ready for this department. Open Stripe setup and choose a terminal location.',
|
||||
'code' => 'stripe_terminal_setup_required',
|
||||
], 409);
|
||||
}
|
||||
// Get the department terminal readers
|
||||
$readers = $department->getStripeTerminalReaders();
|
||||
// Return the result
|
||||
@@ -287,4 +293,4 @@ class moduleStripeRoute
|
||||
]
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user