2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-16 12:15:31 +00:00

Fix display of sales order completion status (#460)

This commit is contained in:
Oliver
2023-11-21 08:23:09 +11:00
committed by GitHub
parent 711034f402
commit eb1be30df4
2 changed files with 7 additions and 12 deletions

View File

@ -26,6 +26,10 @@ class InvenTreeOrder extends InvenTreeModel {
int get lineItemCount => getInt("line_items", backup: 0);
int get completedLineItemCount => getInt("completed_lines", backup: 0);
bool get complete => completedLineItemCount >= lineItemCount;
bool get overdue => getBool("overdue");
String get reference => getString("reference");