Search Confirmation
Problem Statement
This setting isn't yet available, and the code is hard-coded to round down the current quantity in stock for both grid and table display:
Grid display, line 451:
{{ Math.floor(item.actual_qty ?? item.stock_qty ?? 0) }}
Table display, line 852
{{ Math.floor(item.actual_qty ?? item.stock_qty ?? 0) }}
The reason for this is, at present if the qty in stock is less than the whole number 1, it displays as 0 in the stock available.
Proposed Solution
Either show the fractional quantity remaining based on the UOM setting for allowing fractional Qty, or have a further setting option to enable the display of fractional Qty.
Alternative round up using the Math.Ceil function to always show stock availability even if 0.1 of the stock is available.
UI Mockups / Screenshots
No response
Alternatives Considered
No response
Feature Area
Inventory / Stock, User Interface / UX
Business Priority
Medium - Would improve efficiency
Current POS Next Version
pos_next: 1.17.0 (version-15)
Additional Context
No response
Contribution
Search Confirmation
Problem Statement
This setting isn't yet available, and the code is hard-coded to round down the current quantity in stock for both grid and table display:
Grid display, line 451:
{{ Math.floor(item.actual_qty ?? item.stock_qty ?? 0) }}Table display, line 852
{{ Math.floor(item.actual_qty ?? item.stock_qty ?? 0) }}The reason for this is, at present if the qty in stock is less than the whole number 1, it displays as 0 in the stock available.
Proposed Solution
Either show the fractional quantity remaining based on the UOM setting for allowing fractional Qty, or have a further setting option to enable the display of fractional Qty.
Alternative round up using the Math.Ceil function to always show stock availability even if 0.1 of the stock is available.
UI Mockups / Screenshots
No response
Alternatives Considered
No response
Feature Area
Inventory / Stock, User Interface / UX
Business Priority
Medium - Would improve efficiency
Current POS Next Version
pos_next: 1.17.0 (version-15)
Additional Context
No response
Contribution