Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .fvmrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"flutter": "3.41.4",
"flutter": "3.41.8",
"flavors": {}
}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 3.8.8

- Fixed `casesMonitorConfig` type in `Workspace` model to be a list of nullable `CaseMonitorCard?` instead of non-nullable `CaseMonitorCard`.
- Added `AtsMdfe` model
- Added `mdfeId`, `mdfe` and `mdfes` values in `AtsOperation` model
- Added default values to `StockClosingInput` model
- Added `ATS_INVOICE_SWAP` value in `ReferenceCategory` enum

## 3.8.7

- Updated `openingBalance` to `openingBalance20` in `StockClosingTank` model
Expand Down
1 change: 1 addition & 0 deletions lib/src/ats/ats.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ part 'src/entries/entry_input.dart';
// ATS Operations Models
part 'src/operations/operation.dart';
part 'src/operations/status.dart';
part 'src/operations/ats_mdfe.dart';

// ATS Converters
part 'src/converters/order_status.dart';
Expand Down
531 changes: 444 additions & 87 deletions lib/src/ats/ats.freezed.dart

Large diffs are not rendered by default.

98 changes: 65 additions & 33 deletions lib/src/ats/ats.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions lib/src/ats/src/operations/ats_mdfe.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
part of '../../ats.dart';

/// A model class representing a ats mdfe entity.
@freezed
abstract class AtsMdfe with _$AtsMdfe {
/// Creates a new [AtsMdfe] instance.
factory AtsMdfe({
/// The [id] parameter is the id of the ats mdfe entity.
String? id,

/// The [manifestId] parameter is the manifestId of the ats mdfe entity.
String? manifestId,

/// The [createdAt] parameter is the createdAt of the ats mdfe entity.
@TimestampOrNullConverter() DateTime? createdAt,

/// The [updatedAt] parameter is the updatedAt of the ats mdfe entity.
@TimestampOrNullConverter() DateTime? updatedAt,

/// The [operation] parameter is the operation of the ats mdfe entity.
AtsOperation? operation,
}) = _AtsMdfe;

/// Creates a new [AtsMdfe] instance from a JSON map.
///
/// The [json] parameter is the JSON map to create the instance from.
factory AtsMdfe.fromJson(Map<String, dynamic> json) => _$AtsMdfeFromJson(json);
}
9 changes: 9 additions & 0 deletions lib/src/ats/src/operations/operation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,15 @@ abstract class AtsOperation with _$AtsOperation {

/// [terminalExitAt] is the timestamp of the terminal exit.
@TimestampOrNullConverter() DateTime? terminalExitAt,

/// [mdfeId] is the ID of the MDF-e linked to the operation.
String? mdfeId,

/// [mdfe] is the MDF-e linked to the operation.
AtsMdfe? mdfe,

/// [mdfes] is the list of MDF-e linked to the operation.
List<AtsMdfe>? mdfes,
}) = _AtsOperation;

factory AtsOperation.fromJson(Map<String, dynamic> json) => _$AtsOperationFromJson(json);
Expand Down
22 changes: 11 additions & 11 deletions lib/src/ats/src/stock_closing/input/stock_closing_input.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,37 +19,37 @@ abstract class StockClosingInput with _$StockClosingInput {
String? description,

/// The [totalVolume20] parameter is the totalVolume20 of the stock closing input.
double? totalVolume20,
@Default(0.0) double totalVolume20,

/// The [volume20Difference] parameter is the volume20Difference of the stock closing input.
double? volume20Difference,
@Default(0.0) double volume20Difference,

/// The [accountingVolumeDifference] parameter is the accountingVolumeDifference of the stock closing input.
double? accountingVolumeDifference,
@Default(0.0) double accountingVolumeDifference,

/// The [openingBalance20] parameter is the openingBalance20 of the stock closing input.
double? openingBalance20,
@Default(0.0) double openingBalance20,

/// The [totalEntries20] parameter is the totalEntries20 of the stock closing input.
double? totalEntries20,
@Default(0.0) double totalEntries20,

/// The [totalWithdrawals20] parameter is the totalWithdrawals20 of the stock closing input.
double? totalWithdrawals20,
@Default(0.0) double totalWithdrawals20,

/// The [closingBalance20] parameter is the closingBalance20 of the stock closing input.
double? closingBalance20,
@Default(0.0) double closingBalance20,

/// The [openingAccountingBalance] parameter is the openingAccountingBalance of the stock closing input.
double? openingAccountingBalance,
@Default(0.0) double openingAccountingBalance,

/// The [totalAccountingEntries] parameter is the totalAccountingEntries of the stock closing input.
double? totalAccountingEntries,
@Default(0.0) double totalAccountingEntries,

/// The [totalAccountingWithdrawals] parameter is the totalAccountingWithdrawals of the stock closing input.
double? totalAccountingWithdrawals,
@Default(0.0) double totalAccountingWithdrawals,

/// The [closingAccountingBalance] parameter is the closingAccountingBalance of the stock closing input.
double? closingAccountingBalance,
@Default(0.0) double closingAccountingBalance,

/// The [closingDetails] parameter is the closingDetails of the stock closing input.
@Default([]) List<StockClosingTankInput> closingDetails,
Expand Down
1 change: 1 addition & 0 deletions lib/src/references/references.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions lib/src/references/src/category.dart
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,12 @@ enum ReferenceCategory {
/// Layrz API Reference: ATS_STORAGE_RECEPTION_ACCESS
atsStorageReceptionAccess,

/// !ATS Reference
/// [AllTank Systems] Access to swap invoice in purchase order
/// Layrz API Reference: ATS_INVOICE_SWAP
@JsonValue('ATS_INVOICE_SWAP')
atsInvoiceSwap,

/// !Mappit Reference
/// Defines the access to the Mappit module as a operator or mappit employee
/// Layrz API Reference: MAPPIT_OPERATOR
Expand Down
2 changes: 1 addition & 1 deletion lib/src/workspace/src/model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ abstract class Workspace with _$Workspace {
@Default(false) bool casesEnabled,
@Default([]) List<Trigger> triggers,
@Default([]) List<String> triggersIds,
@Default([]) List<CaseMonitorCard> casesMonitorConfig,
@Default([]) List<CaseMonitorCard?> casesMonitorConfig,

/// Is the list of [checkpoints] and their ids [checkpointsIds]. And [checkpointsEnabled] indicates
/// if the checkpoints monitor is enabled
Expand Down
Loading
Loading