@@ -1,25 +1,96 @@
|
||||
export type MatrixRow = {
|
||||
id: number; reference: string; supplier: { name: string }; supplier_id: number;
|
||||
eligible: boolean; ineligibility_reasons: string[]; evaluation_count: number;
|
||||
score: number | null; score_minor: number | null; subtotal_minor: number; tax_minor: number; total_minor: number;
|
||||
evaluations: { evaluator_id: number; quality: string; history: string; payment: string; comment: string }[];
|
||||
id: number;
|
||||
reference: string;
|
||||
supplier: { name: string };
|
||||
supplier_id: number;
|
||||
eligible: boolean;
|
||||
ineligibility_reasons: string[];
|
||||
evaluation_count: number;
|
||||
score: number | null;
|
||||
score_minor: number | null;
|
||||
subtotal_minor: number;
|
||||
tax_minor: number;
|
||||
total_minor: number;
|
||||
evaluations: {
|
||||
evaluator_id: number;
|
||||
quality: string;
|
||||
history: string;
|
||||
payment: string;
|
||||
comment: string;
|
||||
}[];
|
||||
};
|
||||
export type AwardApproval = {
|
||||
id: number;
|
||||
position: number;
|
||||
role: string;
|
||||
decision: string;
|
||||
approver_id: number | null;
|
||||
comment: string | null;
|
||||
};
|
||||
export type AwardApproval = { id: number; position: number; role: string; decision: string; approver_id: number | null; comment: string | null };
|
||||
export type PurchaseAward = {
|
||||
id: number; requisition_id: number; quotation_id: number; status: string; justification: string;
|
||||
subtotal_minor: number; tax_minor: number; total_minor: number; delivery_date: string; delivery_location: string;
|
||||
approval_snapshot: { approval_includes_tax: boolean; rules_provisional: boolean }; approvals: AwardApproval[];
|
||||
id: number;
|
||||
requisition_id: number;
|
||||
quotation_id: number;
|
||||
status: string;
|
||||
justification: string;
|
||||
subtotal_minor: number;
|
||||
tax_minor: number;
|
||||
total_minor: number;
|
||||
delivery_date: string;
|
||||
delivery_location: string;
|
||||
approval_snapshot: {
|
||||
approval_includes_tax: boolean;
|
||||
rules_provisional: boolean;
|
||||
};
|
||||
approvals: AwardApproval[];
|
||||
};
|
||||
export type OrderItem = {
|
||||
id: number;
|
||||
description: string;
|
||||
quantity: string;
|
||||
unit: string;
|
||||
unit_price_minor: number;
|
||||
tax_rate: string;
|
||||
subtotal_minor: number;
|
||||
tax_minor: number;
|
||||
total_minor: number;
|
||||
};
|
||||
export type OrderItem = { id: number; description: string; quantity: string; unit: string; unit_price_minor: number; tax_rate: string; subtotal_minor: number; tax_minor: number; total_minor: number };
|
||||
export type PurchaseOrder = {
|
||||
id: number; number: string; requisition_id: number; issued_at: string; currency: string;
|
||||
subtotal_minor: number; tax_minor: number; total_minor: number; items: OrderItem[];
|
||||
id: number;
|
||||
number: string;
|
||||
requisition_id: number;
|
||||
issued_at: string;
|
||||
currency: string;
|
||||
subtotal_minor: number;
|
||||
tax_minor: number;
|
||||
total_minor: number;
|
||||
items: OrderItem[];
|
||||
snapshot: {
|
||||
company: { name: string }; department: { name: string }; cost_center: { code: string; name: string };
|
||||
requisition: { number: string }; issuer: { name: string }; requester: { name: string };
|
||||
supplier: { name: string; nuit: string; contact: string; phone: string; email: string; address: string };
|
||||
quotation: { reference: string; payment_terms: string }; award: { justification: string; delivery_date: string; delivery_location: string };
|
||||
approval_rules: { approval_includes_tax: boolean; rules_provisional: boolean };
|
||||
decision_matrix: MatrixRow[]; final_approvals: AwardApproval[];
|
||||
company: { name: string };
|
||||
department: { name: string };
|
||||
cost_center: { code: string; name: string };
|
||||
requisition: { number: string };
|
||||
issuer: { name: string };
|
||||
requester: { name: string };
|
||||
supplier: {
|
||||
name: string;
|
||||
nuit: string;
|
||||
contact: string;
|
||||
phone: string;
|
||||
email: string;
|
||||
address: string;
|
||||
};
|
||||
quotation: { reference: string; payment_terms: string };
|
||||
award: {
|
||||
justification: string;
|
||||
delivery_date: string;
|
||||
delivery_location: string;
|
||||
};
|
||||
approval_rules: {
|
||||
approval_includes_tax: boolean;
|
||||
rules_provisional: boolean;
|
||||
};
|
||||
decision_matrix: MatrixRow[];
|
||||
final_approvals: AwardApproval[];
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user