Skip to content

Commit 66f7030

Browse files
committed
fix: changed Item Visibility from select field to check field
1 parent 5a8fe5f commit 66f7030

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

models/baseModels/InvoiceItem/InvoiceItem.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -662,11 +662,9 @@ export abstract class InvoiceItem extends Doc {
662662

663663
const invItemVisibility = inventorySettings?.itemVisibility;
664664

665-
if (invItemVisibility === 'Inventory Items') {
665+
if (invItemVisibility) {
666666
return { ...baseFilter, trackItem: true };
667-
}
668-
669-
if (invItemVisibility === 'Non-Inventory Items') {
667+
} else {
670668
return { ...baseFilter, trackItem: false };
671669
}
672670

schemas/app/inventory/InventorySettings.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,8 @@
1515
{
1616
"fieldname": "itemVisibility",
1717
"label": "Item Visibility",
18-
"fieldtype": "Select",
19-
"options": [
20-
{
21-
"value": "Inventory Items",
22-
"label": "Inventory Items"
23-
},
24-
{
25-
"value": "Non-Inventory Items",
26-
"label": "Non-Inventory Items"
27-
}
28-
],
29-
"default": "Non-Inventory Items",
18+
"fieldtype": "Check",
19+
"default": false,
3020
"required": true,
3121
"section": "Default"
3222
},

0 commit comments

Comments
 (0)