OrderAggregate

postgresql-event-sourcing · score 8.6 · pos, event-sourcing, aggregate, domain-modeling, cqrs
Event-sourced aggregate root handling state transitions from domain events.

POSController.php

InfoShop · score 8.4 · pos
Handles POS checkout, product filtering, sale processing, and returns.

get_item_total (Sale_lib)

ospos · score 8.1 · pos, bcmath, discount-calculation, sale-line-total
Computes a sale line total as quantity times price using bcmath, optionally subtracting the item discount when include_discount is true.

CustomerBasket

BookWorm · score 8.1 · pos, domain-entity, basket, ddd
Domain entity representing a customer's basket with basket items; ensures valid ID and non-empty items, and supports replacing all items via Update.

isLowStock (ProductScopes.php)

laravel-pos · score 8.1 · inventory-check, stock-monitoring, query-scope, threshold-alert, pos
Checks product stock level against threshold returns boolean low-stock flag.

Product and Catalog

salespoint · score 8.1 · database, ddd-aggregate, product-catalog, saleable-items, domain-modeling
Product aggregate root with Catalog repository interface for managing saleable items. Supports subclassing for custom product types.

SunmiPrintManager

simpos · score 8.0 · integration, printer-sdk, barcode-printing, qr-printing, label-printing
Comprehensive Sunmi POS printer SDK wrapper supporting text, barcodes, QR codes, bitmaps, cash drawer, LCD display, label printing, and cutter control.

PaymentMethod interface

salespoint · score 8.0 · payments, pos, interface, abstraction
Abstraction for payment methods in the system.

Order Aggregate

salespoint · score 8.0 · database, ddd-aggregate, event-driven, order-management, lifecycle-management
Order aggregate with OrderLine items, ChargeLine discounts/fees, and event-driven lifecycle (Open->Paid->Completed/Canceled).

unknown

pyescpos · score 8.0 · pos, fallback-driver, generic-escpos, device-compatibility
Generic fallback driver for unrecognized models using standard ESC/POS commands.

Inventory Management

salespoint · score 8.0 · database, pos, inventory-tracking, warehouse-management, stock-updates
Stock tracking with UniqueInventory (single warehouse) and MultiInventory (multiple warehouses). Automatically updates stock on order completion.

get_item_discount (Sale_lib)

ospos · score 7.9 · pos, discount-calculation, line-item, percentage-discount, rounding
Calculates line-item discount amount from quantity, price, discount value and type (percent or fixed), returning a rounded result.

api

pyescpos · score 7.9 · dev-tools, printer-factory, connection-abstraction, public-api, pos
Main public API: Printer class factory, connection abstractions, and standard print primitives.

GenericESCPOSImplementation

pyescpos · score 7.8 · integration, escpos-reference, epson-printer, command-set-implementation, barcode-commands
Reference implementation of the full ESC/POS command set for Epson printers. Covers text, barcodes, QR codes, cut, cash drawer, and character table mapping.

Quantity and Metric

salespoint · score 7.8 · pos
Represents amounts with unit tracking using BigDecimal for precision and Metric for unit metadata. Enables type-safe quantity arithmetic for POS items.

Spree POS Engine

spree-point-of-sale · score 7.8 · pos, rails-engine, engine-init, config, infra
Rails engine initialization and configuration for POS extension.

get_rounding_options (Rounding_mode)

opensourcepos-mssql · score 7.7 · dev-tools, rounding-modes, i18n, reflection, pos
Returns all rounding mode constants as translated display labels keyed by their values, using reflection and language helper.

CoNLL‑U Sentence Iterator (src/conllu_utils.rs)

harper · score 7.7 · ai, AI / Agents, conllu, iterator, nlp
Opens a .conllu file and yields each parsed sentence, intended for training pipelines.

get_totals (Sale_lib)

ospos · score 7.7 · pos, cart-totals, tax-calculation, cash-rounding, payment-summary
Calculates cart sale totals including discounts, taxes, payments, cash rounding, amount due, item count, and units.

Sale_lib

OpensourcePOS · score 7.7 · pos, sale-processing, order-management
Sale library handling sale processing, registration, and management in CodeIgniter.

BarcodeGeneratorService

spree-point-of-sale · score 7.6 · pos
Generates PDF barcodes for products/variants using Barby and Prawn. Lifts out cleanly - just requires barby, prawn, and variant objects with name, options_text, price, and sku.

Receipt/Nota Printer

tutorial-membuat-aplikasi-point-of-sales · score 7.6 · ui, receipt-printing, thermal-printer, nota-formats, pos
Prints sales receipts in multiple formats (large/thermal) with customizable nota types, adaptable for any retail system.

parse_barcode (Token_lib)

ospos · score 7.6 · barcode-parsing, pos-scanning, pos
Parses configured barcode formats to extract quantity, price, and item identifier from scanned barcode input, updating by reference. Enables flexible POS barcode handling.

get_cart (Sale_lib)

ospos · score 7.5 · pos, cart-state, session-management
Retrieves the sales cart from session, initializing it to an empty array if not set. Central accessor for cart state.

get_barcode_instance (Barcode_lib)

opensourcepos-mssql · score 7.5 · barcode-factory, encoder-factory, instance-provider, pos
Factory method that returns the appropriate barcode encoder instance based on the requested barcode type.

dompdf PDF Generator

pharmacy-pos · score 7.5 · pos
HTML to PDF converter with CSS2.1 support, used for generating receipts and reports in the POS system.

isOrderNew (pattern)

BookWorm · score 7.5 · pos, order-status, status-gating, backoffice-workflow, automation
Determines whether an order status is New, used to gate backoffice workflows on newly created orders.

AddToPurchaseCartRequest

laravel-pos · score 7.5 · pos, form-validation, cart-validation, purchase-validation
Form request validating purchase cart item addition with product and quantity rules.

SalesController

OpensourcePOS · score 7.4 · pos, transaction-management, order-processing, ecommerce
Manages sales transactions and order processing in a CodeIgniter e-commerce application.

OrderItem.php

laravel-pos · score 7.4 · database, eloquent-model, order-line-items, belongs-to-relationships, db-crud
Eloquent model representing order line items with price, quantity, and belongsTo relationships to Order and Product.

SaleController.php

InfoShop · score 7.4 · sales-management, receipt-rendering, sales-reporting, pos, rest-api
Sales retrieval and filtering controller providing REST API endpoints for POS systems to query sales records by customer, status, and date range.

PlaceOrderCommandHandler

postgresql-event-sourcing · score 7.4 · pos, cqrs, command-handler, order-processing, event-publishing
Processes place order commands and persists resulting events.

nfcbroadcast.py

greenaddress-pos-tools · score 7.4 · nfc-broadcast, websocket, realtime-sync, pos, realtime
Broadcasts NFC tag data to connected clients via WebSocket.

ItemLib

ospos-mpesa · score 7.4 · database, inventory, kit-handling, stock-management, item-search
Item management operations including search, kit handling, and stock.

ESCUtil

simpos · score 7.3 · pos
ESC/POS command constants and builder functions for thermal receipt printers. Covers alignment, bold, underline, bitmap printing, line spacing, and character encoding.

UpdateStore

btcpayserver · score 7.3 · pos, store-update, put-request, input-validation, merchant-settings
Updates an existing store's settings by sending a PUT request with the provided data. It validates inputs and returns the updated store data.

get_info (Sale)

ospos · score 7.3 · pos, sale-queries, query-builder, database
Builds and runs a query to retrieve detailed sale information, including totals, taxes, payments, and customer details for a given sale ID.

get_total (Receiving_lib)

opensourcepos-mssql · score 7.3 · finance, cart-total, bcadd-sum, receiving-total, pos
Calculates the total cost of all items in the receiving cart by summing each item's total using bcadd.

delete (Sale)

ospos · score 7.3 · pos, sale-cancellation, inventory-restock, db-transaction
Cancels a sale within a transaction, optionally restocking inventory if it was completed, and returns transaction status.

WPOS Sales/POS

pharmacy-pos · score 7.3 · pos, cart-management, checkout-flow, sale-completion, payment-handling
Point-of-sale checkout logic: cart, totals, payment handling, and sale completion.

_load_sale_data

ospos · score 7.3 · pos, sale-data-loading, receipt-rendering
Loads sale details, cart, payments, taxes, totals, customer, and receipt config into a cleaned array for rendering sale documents.

set_cart (Receiving_lib)

ospos · score 7.3 · session-management, cart-storage, pos
Stores the receiving cart data in the session under 'recv_cart'.

get_total (Receiving_lib)

ospos · score 7.3 · pos, cart-aggregation, decimal-arithmetic, bcadd-precision
Computes the total cost of all items in the receiving cart using arbitrary-precision addition via bcadd.

SCCAPIResponse Parser

SquarePointOfSaleSDK-iOS · score 7.2 · payments, url-parsing, payment-callbacks, response-handling, pos
Immutable response object parsed from Square Point of Sale callback URLs. Extracts transaction ID, client ID, error, and success status.

pos

ComPro_Project · score 7.2 · pos, checkout-orchestration, point-of-sale, cart-management
Core point-of-sale orchestrator coordinating checkout flow and components.

Sale_model

OpensourcePOS · score 7.2 · pos, sale-management, order-states
Manages sale records with completed and suspended states in CodeIgniter application.

Order.php

laravel-pos · score 7.2 · payments, eloquent-model, order-management, query-scopes, pos
Eloquent model for orders, handling payments-related queries and scopes in Laravel app.

GetBasketQuery

BookWorm · score 7.2 · pos, cqrs-query, basket-retrieval, dto-mapping
Represents a query to retrieve a customer's basket data, returning CustomerBasketDto.

get_taxes (Tax_lib)

ospos · score 7.2 · pos, tax-calculation, origin-destination, finance
Calculates sales taxes for cart items, handling origin/destination-based rules, included/excluded tax, and line-item tax details while updating taxed flags.

Variant Availability Scope

spree-point-of-sale · score 7.2 · database, inventory-check, stock-availability, variant-query, scope
Adds scope to find variants available at a specific stock location with positive count_on_hand.