@@ -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 = {
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user