mirror of
https://github.com/inventree/inventree-app.git
synced 2025-10-29 12:37:37 +00:00
SalesOrderShipment (#697)
* Add detail widget for SalesOrderShipment * Support editing of shipment details * Rearrange SalesOrderDetail page * Add support for attachments against shipment model * refactoring * Add shipment details page * Add user actions for shipments: - Check / uncheck - Take photo * Placeholder action to send shipment * Send shipment from app * Display pending shipments on the home screen * Improve rending for shipments list * Add class definition for SalesOrderAllocation * Display list of items allocated against SalesOrderShipment * Bump release notse * Click through to stock item * Bump version number * dart format * cleanup * Remove unused imports
This commit is contained in:
@@ -586,6 +586,8 @@ class APIFormField {
|
||||
return InvenTreeSupplierPart().defaultListFilters();
|
||||
case InvenTreeStockItem.MODEL_TYPE:
|
||||
return InvenTreeStockItem().defaultListFilters();
|
||||
case InvenTreeSalesOrder.MODEL_TYPE:
|
||||
return InvenTreeSalesOrder().defaultListFilters();
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -727,7 +729,7 @@ class APIFormField {
|
||||
return ListTile(
|
||||
title: Text(shipment.reference),
|
||||
subtitle: Text(shipment.tracking_number),
|
||||
trailing: shipment.shipped ? Text(shipment.shipment_date!) : null,
|
||||
trailing: shipment.isShipped ? Text(shipment.shipment_date!) : null,
|
||||
);
|
||||
case "owner":
|
||||
String name = (data["name"] ?? "") as String;
|
||||
@@ -754,6 +756,15 @@ class APIFormField {
|
||||
subtitle: Text(project_code.description),
|
||||
leading: Icon(TablerIcons.list),
|
||||
);
|
||||
case InvenTreeSalesOrder.MODEL_TYPE:
|
||||
var so = InvenTreeSalesOrder.fromJson(data);
|
||||
return ListTile(
|
||||
title: Text(so.reference),
|
||||
subtitle: Text(so.description),
|
||||
leading: InvenTreeAPI().getThumbnail(
|
||||
so.customer?.thumbnail ?? so.customer?.image ?? "",
|
||||
),
|
||||
);
|
||||
default:
|
||||
return ListTile(
|
||||
title: Text(
|
||||
|
||||
Reference in New Issue
Block a user