Skip to content

Add invoiceId to AtsPurchaseOrder and enhance terminal fields#181

Merged
ManuelRomeroA merged 4 commits into
mainfrom
development
Apr 21, 2026
Merged

Add invoiceId to AtsPurchaseOrder and enhance terminal fields#181
ManuelRomeroA merged 4 commits into
mainfrom
development

Conversation

@ManuelRomeroA
Copy link
Copy Markdown
Contributor

This pull request introduces several schema and model enhancements, primarily focusing on the Asset and AtsPurchaseOrder models, along with some supporting enum and dependency updates. These changes improve data modeling for linked storage terminals and purchase orders, and expand the reference categories available in the system.

Asset Model Enhancements:

  • Added linkedStorageTerminals (list of Asset) and linkedStorageTerminalsIds (list of String) fields to the Asset model, enabling assets to reference related storage terminal assets. [1] [2] [3]
  • Updated the AssetInput model to include the linkedStorageTerminalsIds field, allowing input of related storage terminal asset IDs. [1] [2] [3]

AtsPurchaseOrder Model Enhancement:

  • Added an invoiceId field to the AtsPurchaseOrder model to store the invoice identifier (such as chNFe/chCTe), and updated all relevant methods and equality/hash implementations to support this field. [1] [2] [3] [4] [5]

Enum and Dependency Updates:

  • Added atsGetAllTerminals and atsStorageReceptionAccess values to the ReferenceCategory enum.
  • Bumped the json_annotation dependency to ^4.11.0 for improved JSON serialization support.

For more details, see the changelog entry for version 3.8.1.

ManuelRomeroA and others added 3 commits April 20, 2026 21:19
- Added invoiceId field to AtsPurchaseOrder class to store invoice identifier (chNFe/chCTe).
- Updated JSON serialization and deserialization methods to include invoiceId.
- Modified related classes and methods to accommodate the new field.
- Updated dependencies in pubspec.yaml for json_annotation to version 4.11.0.
- Added new reference categories for terminal access in references.
…categories

- Add linkedStorageTerminals and linkedStorageTerminalsIds to Asset and AssetInput
- Add invoiceId field to AtsPurchaseOrder
- Add atsGetAllTerminals and atsStorageReceptionAccess to ReferenceCategory enum
- Bump json_annotation to ^4.11.0
- Bump version to 3.8.1

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 21, 2026

📋 Changelog Summary

This PR includes the following changes:

✨ Features

  • add storage terminal fields, invoice ID, and new ATS reference categories (2bb8f8e by Manuel romero, Claude Sonnet 4.6)
  • add invoiceId to AtsPurchaseOrder model and update serialization (0159393 by Manuel romero)

🐛 Bug Fixes

  • revert json_annotation to ^4.9.0 to resolve dependency conflict (40acb09 by Manuel romero, Claude Sonnet 4.6)

🤖 Auto-generated by changelog workflow

json_annotation ^4.11.0 is incompatible with json_serializable ^6.11.0
and flutter_test from the Flutter SDK.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

📊 Test Coverage Report

🎯 Dart/Flutter

Metric Value
Coverage 10.6%
Lines covered 14826 / 448
Lines missing -14378

🤖 Generated by coverage workflow

@ManuelRomeroA ManuelRomeroA merged commit 23d9719 into main Apr 21, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant