Skip to content

Commit a1b524f

Browse files
committed
feat: implement core Point of Sale (POS) page and functionality.
1 parent 0a43ac9 commit a1b524f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/pages/Pos/pos.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ export default function POS() {
386386
};
387387

388388
const getItemStock = (item) => {
389-
return getPositiveNumber(item?.stockQuantity ?? item?.stock);
389+
return Math.max(0, getPositiveNumber(item?.stockQuantity ?? item?.stock));
390390
};
391391

392392
const getComboRetailTotal = (combo) => {

0 commit comments

Comments
 (0)