rinominati i campi in inglese per diminuire confusione
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -23,7 +23,7 @@ class OperationsRepository {
|
||||
staff_member(name),
|
||||
provider(name),
|
||||
model(name_with_brand),
|
||||
attachments(*)
|
||||
attachment(*)
|
||||
''')
|
||||
.eq('id', id)
|
||||
.single();
|
||||
@@ -52,7 +52,7 @@ class OperationsRepository {
|
||||
provider(name),
|
||||
model(name_with_brand),
|
||||
staff_member(name),
|
||||
attachments(*)
|
||||
attachment(*)
|
||||
''')
|
||||
.eq('company_id', companyId);
|
||||
|
||||
@@ -122,7 +122,7 @@ class OperationsRepository {
|
||||
provider(name),
|
||||
model(name_with_brand),
|
||||
customer(name),
|
||||
attachments(*)
|
||||
attachment(*)
|
||||
''')
|
||||
.eq('id', newId)
|
||||
.single();
|
||||
|
||||
@@ -1021,12 +1021,12 @@ class _OperationFormScreenState extends State<OperationFormScreen> {
|
||||
),
|
||||
),
|
||||
onTap: () {
|
||||
context.read<OperationsCubit>().updateOperationFields(
|
||||
modelId:
|
||||
'id_del_modello_$index', // deviceModel.id
|
||||
// Assicurati di avere questo campo in _updateOperationFields nel Cubit!
|
||||
// modelDisplayName: deviceModel.nameWithBrand,
|
||||
);
|
||||
context
|
||||
.read<OperationsCubit>()
|
||||
.updateOperationFields(
|
||||
modelId: deviceModel.id,
|
||||
modelDisplayName: deviceModel.nameWithBrand,
|
||||
);
|
||||
Navigator.pop(modalContext);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user