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
|
|
@ -1,12 +1,14 @@
|
|||
import "dart:async";
|
||||
|
||||
import "package:flutter/material.dart";
|
||||
import "package:inventree/api.dart";
|
||||
import "package:inventree/inventree/model.dart";
|
||||
import "package:inventree/inventree/purchase_order.dart";
|
||||
import "package:inventree/widget/company/company_detail.dart";
|
||||
|
||||
|
||||
/*
|
||||
* The InvenTreeCompany class repreents the Company model in the InvenTree database.
|
||||
* The InvenTreeCompany class represents the Company model in the InvenTree database.
|
||||
*/
|
||||
|
||||
class InvenTreeCompany extends InvenTreeModel {
|
||||
|
|
@ -20,6 +22,16 @@ class InvenTreeCompany extends InvenTreeModel {
|
|||
|
||||
static const String MODEL_TYPE = "company";
|
||||
|
||||
@override
|
||||
Future<Object?> goToDetailPage(BuildContext context) async {
|
||||
return Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => CompanyDetailWidget(this)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
List<String> get rolesRequired => ["purchase_order", "sales_order", "return_order"];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue