mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
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:
parent
25d7ac9189
commit
72a78291b2
34 changed files with 642 additions and 193 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue