Simplify lab trial dispatch and fix per-jaw pricing
This commit is contained in:
@@ -112,7 +112,11 @@ class ClinicJobsRepository {
|
||||
}
|
||||
|
||||
Future<Job> approveAtClinic(String jobId, Job job, {String? note}) async {
|
||||
final nextStep = job.nextStep;
|
||||
if (job.status != JobStatus.inProgress ||
|
||||
job.location != JobLocation.atClinic) {
|
||||
throw StateError('Yalnızca klinikteki üretim işleri onaylanabilir.');
|
||||
}
|
||||
final nextStep = job.provaRequired ? job.currentStep : job.nextStep;
|
||||
if (nextStep == null) throw Exception('Bu aşamadan ileri gidilemez.');
|
||||
|
||||
final record = await _pb.collection('jobs').update(jobId, body: {
|
||||
|
||||
Reference in New Issue
Block a user