feat(F-189): completed feature

This commit is contained in:
chattie
2026-08-22 23:01:59 +02:00
parent 0e3c488c85
commit 6b93e91ef4
24 changed files with 1535 additions and 63 deletions

View File

@@ -105,6 +105,10 @@ export interface PosReceipt {
header: string | null;
returnPolicy: string;
footer: string | null;
/** Present on return receipts. References the original ticket number. */
originalReceiptNumber?: string;
/** True for return/reversal receipts that should print negative totals. */
isReturn?: boolean;
}
export interface PosSaleResult {
@@ -125,3 +129,27 @@ export interface PosSaleResult {
export interface PosPaymentResult extends PosReceiptPayment {
id: string;
}
export interface PosReturnLineInput {
orderItemId: string;
returnedQuantity: number;
}
export interface PosReturnInput {
orderId: string;
idempotencyKey: string;
cashSessionId: string;
terminalId: string;
userId: string;
reason: string;
lines: PosReturnLineInput[];
}
export interface PosReturnResult {
orderId: string;
returnId: string;
idempotencyKey: string;
state: 'PARTIALLY_REFUNDED' | 'REFUNDED';
refundedCents: number;
receipt: PosReceipt;
}