mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-14 03:56:24 +00:00
bug fix: PO Lines (#685)
* bug fix: PO Lines - Correctly display part images for purchase order line items * Refactor * Code formatting
This commit is contained in:
parent
28701359da
commit
7d32bd6d88
5 changed files with 14 additions and 4 deletions
|
|
@ -114,7 +114,15 @@ class InvenTreeOrderLine extends InvenTreeModel {
|
|||
|
||||
String get partName => getString("name", subKey: "part_detail");
|
||||
|
||||
String get partImage => getString("thumbnail", subKey: "part_detail");
|
||||
String get partImage {
|
||||
String img = getString("thumbnail", subKey: "part_detail");
|
||||
|
||||
if (img.isEmpty) {
|
||||
img = getString("image", subKey: "part_detail");
|
||||
}
|
||||
|
||||
return img;
|
||||
}
|
||||
|
||||
String get targetDate => getDateString("target_date");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue