Skip to content

[Feature]: Add setting to allow display for fractional qty in POS terminal #331

Description

@mhm

Search Confirmation

  • I have searched existing issues and this feature has not been requested before

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

  • I would be willing to submit a PR to implement this feature
  • I would be willing to test/review a PR for this feature
  • I can provide detailed requirements or domain expertise

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions