mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +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:
parent
6b67cc9e50
commit
624655ec6b
22 changed files with 858 additions and 79 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue