commit melhorias compras1
tests / ci (push) Waiting to run

This commit is contained in:
2026-11-21 21:04:40 +02:00
parent 976271f948
commit 12dd6df28a
108 changed files with 4391 additions and 408 deletions
+9
View File
@@ -37,6 +37,15 @@ export type ReceiptItem = {
stock_item: StockItem | null;
warehouse: Warehouse | null;
physical: boolean;
quantity_conversion?: {
document_unit: string;
stock_unit: string;
numerator: string;
denominator: string;
source: string;
version: string;
accepted_stock_milli: string;
};
};
};
export type Receipt = {
+2 -2
View File
@@ -94,10 +94,10 @@ export const priorityLabels: Record<string, string> = {
high: 'Alta',
urgent: 'Urgente',
};
export const money = (minor: number) =>
export const money = (minor: number, currency = 'MZN') =>
new Intl.NumberFormat('pt-MZ', {
style: 'currency',
currency: 'MZN',
currency,
}).format(minor / 100);
export const date = (value: string) =>
new Intl.DateTimeFormat('pt-MZ').format(
+14
View File
@@ -1,7 +1,15 @@
import type { CommercialTerms } from '@/components/quotation-commercial-terms';
import type { ComparisonPolicy } from '@/components/comparison-policy-summary';
import type { ExchangeBasis } from '@/components/quotation-exchange-panel';
export type MatrixRow = {
currency?: string;
exchange_basis?: ExchangeBasis | null;
reference_amounts?: {
subtotal_minor: number;
tax_minor: number;
total_minor: number;
} | null;
commercial_terms?: CommercialTerms | null;
id: number;
reference: string;
@@ -70,6 +78,12 @@ export type PurchaseOrder = {
total_minor: number;
items: OrderItem[];
snapshot: {
exchange_basis?: ExchangeBasis;
reference_amounts?: {
subtotal_minor: number;
tax_minor: number;
total_minor: number;
};
comparison_policy?: ComparisonPolicy;
investment_rules?: {
id: number;