Add audited Graphs stock balances
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m33s

This commit is contained in:
Cauê Faleiros
2026-08-24 14:34:25 -03:00
parent 71c80fd5d4
commit 7e18772a8a
7 changed files with 450 additions and 20 deletions

View File

@@ -25,8 +25,32 @@ export interface StockData {
saldo: number;
delta_estoque: number;
updated_at?: string;
graphs_balance?: number | null;
graphs_balance_reason?: string | null;
graphs_balance_effective_at?: string | null;
graphs_balance_updated_by?: string | null;
graphs_balance_updated_at?: string | null;
planning_balance?: number;
}
export type GraphsStockBalancePayload = {
balance: number;
reason: string;
effectiveAt?: string | null;
};
export type GraphsStockBalanceHistoryItem = {
id: number;
produto_id: string;
tiny_balance: number | null;
graphs_balance: number | null;
reason: string | null;
effective_at: string | null;
action: 'set' | 'removed' | string;
changed_by: string | null;
created_at: string;
};
export type ProductionOrderStatus = 'open' | 'in_progress' | 'finished' | 'canceled' | string;
export interface ProductionOrderMarker {