michangarrito/apps/backend/dist/modules/sales/entities/sale.entity.d.ts
rckrdmrd 97f407c661 [MIGRATION-V2] feat: Migrar michangarrito a estructura v2
- Prefijo v2: MCH
- TRACEABILITY-MASTER.yml creado
- Listo para integracion como submodulo

Workspace: v2.0.0 | SIMCO: v4.0.0
2026-01-10 11:28:54 -06:00

30 lines
778 B
TypeScript

import { SaleItem } from './sale-item.entity';
import { PaymentMethod } from '../../payments/entities/payment-method.entity';
export declare enum SaleStatus {
COMPLETED = "completed",
CANCELLED = "cancelled",
REFUNDED = "refunded"
}
export declare class Sale {
id: string;
tenantId: string;
ticketNumber: string;
subtotal: number;
taxAmount: number;
discountAmount: number;
total: number;
paymentMethodId: string;
amountReceived: number;
changeAmount: number;
status: SaleStatus;
cancelledAt: Date;
cancelReason: string;
customerName: string;
customerPhone: string;
notes: string;
deviceInfo: Record<string, unknown>;
createdAt: Date;
items: SaleItem[];
paymentMethod: PaymentMethod;
}