Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
miakh committed Dec 12, 2024
1 parent 6958865 commit f798618
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/dataModels/OccasionUserModel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class OccasionUserModel extends IPlutoRowModel {
Map<String, PlutoCell> serviceToOneColumnPlutoRow(Map<String, dynamic>? services, String serviceType) {
Map<String, PlutoCell> serviceCells = {};
for (var entry in services?[serviceType]?.entries ?? []) {
serviceCells[serviceType + entry.formKey] = PlutoCell(value: entry.value);
serviceCells[serviceType + entry.key] = PlutoCell(value: entry.value);
}
return serviceCells;
}
Expand All @@ -128,7 +128,7 @@ class OccasionUserModel extends IPlutoRowModel {
Map<String, PlutoCell> servicesToPlutoRow(Map<String, dynamic>? services, String serviceType) {
Map<String, PlutoCell> serviceCells = {};
for (var entry in services?[serviceType]?.entries ?? []) {
serviceCells[serviceType + entry.formKey] = PlutoCell(value: entry.value);
serviceCells[serviceType + entry.key] = PlutoCell(value: entry.value);
}
return serviceCells;
}
Expand Down
2 changes: 0 additions & 2 deletions lib/dataModelsEshop/OrderModel.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'dart:js_interop';

import 'package:flutter/cupertino.dart';
import 'package:fstapp/components/dataGrid/PlutoAbstract.dart';
import 'package:fstapp/dataModelsEshop/TbEshop.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/AdministrationOccasion/UserColumns.dart
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class UserColumns {
return columns;
},
ACCOMMODATION: (Map<String, dynamic> data) {
var select = data[DbOccasions.serviceTypeAccommodation]?.map((a)=>a.id).toList();
var select = data[DbOccasions.serviceTypeAccommodation]?.map((a)=>a.code).toList();
select ??= [];
select.add("");
return [
Expand Down

0 comments on commit f798618

Please sign in to comment.