Order extra lines (#632)

* Define classes for extra line item

* Display PO extra line items

- Also, some refactoring

* Support extra line items for sales order

* linting fixes

* Update release notes
This commit is contained in:
Oliver 2025-04-15 20:49:05 +10:00 committed by GitHub
parent 25d7ac9189
commit 72a78291b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 642 additions and 193 deletions

View file

@ -48,6 +48,12 @@ class InvenTreeModel {
// Construct an InvenTreeModel from a JSON data object
InvenTreeModel.fromJson(this.jsondata);
// Navigate to a detail page for this item
Future<Object?> goToDetailPage(BuildContext context) async {
// Default implementation does not do anything...
return null;
}
// Update whenever the model is loaded from the server
DateTime? lastReload;
@ -311,6 +317,8 @@ class InvenTreeModel {
InvenTreeAPI get api => InvenTreeAPI();
int get pk => getInt("pk");
String get pkString => pk.toString();
// Some common accessors
String get name => getString("name");