97 lines
2.0 KiB
TypeScript
97 lines
2.0 KiB
TypeScript
|
|
import type { Mix, Product, ProductCostBreakdown, RawMaterial, Scenario } from '$lib/types';
|
||
|
|
|
||
|
|
export const mockRawMaterials: RawMaterial[] = [
|
||
|
|
{
|
||
|
|
id: 1,
|
||
|
|
name: 'Maize',
|
||
|
|
unit_of_measure: 'tonne',
|
||
|
|
kg_per_unit: 1000,
|
||
|
|
status: 'active',
|
||
|
|
current_price: {
|
||
|
|
market_value: 520,
|
||
|
|
waste_percentage: 0.02,
|
||
|
|
cost_per_kg: 0.5304,
|
||
|
|
effective_date: '2026-04-01'
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 2,
|
||
|
|
name: 'Barley',
|
||
|
|
unit_of_measure: 'tonne',
|
||
|
|
kg_per_unit: 1000,
|
||
|
|
status: 'active',
|
||
|
|
current_price: {
|
||
|
|
market_value: 470,
|
||
|
|
waste_percentage: 0.015,
|
||
|
|
cost_per_kg: 0.4771,
|
||
|
|
effective_date: '2026-04-01'
|
||
|
|
}
|
||
|
|
}
|
||
|
|
];
|
||
|
|
|
||
|
|
export const mockMixes: Mix[] = [
|
||
|
|
{
|
||
|
|
id: 1,
|
||
|
|
client_name: 'Specialty Feeds',
|
||
|
|
name: 'Pigeon Mix',
|
||
|
|
status: 'active',
|
||
|
|
ingredients: [
|
||
|
|
{
|
||
|
|
id: 1,
|
||
|
|
raw_material_id: 1,
|
||
|
|
raw_material_name: 'Maize',
|
||
|
|
quantity_kg: 180,
|
||
|
|
cost_per_kg: 0.5304,
|
||
|
|
line_cost: 95.472
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: 2,
|
||
|
|
raw_material_id: 2,
|
||
|
|
raw_material_name: 'Barley',
|
||
|
|
quantity_kg: 100,
|
||
|
|
cost_per_kg: 0.4771,
|
||
|
|
line_cost: 47.71
|
||
|
|
}
|
||
|
|
],
|
||
|
|
total_mix_kg: 280,
|
||
|
|
total_mix_cost: 143.18,
|
||
|
|
mix_cost_per_kg: 0.5114,
|
||
|
|
warnings: []
|
||
|
|
}
|
||
|
|
];
|
||
|
|
|
||
|
|
export const mockProducts: Product[] = [
|
||
|
|
{
|
||
|
|
id: 1,
|
||
|
|
name: 'Specialty Pigeon Breeder 20kg',
|
||
|
|
client_name: 'Specialty Feeds',
|
||
|
|
mix_id: 1,
|
||
|
|
mix_name: 'Pigeon Mix',
|
||
|
|
sale_type: 'standard',
|
||
|
|
unit_of_measure: '20kg bag',
|
||
|
|
distributor_margin: 0.225,
|
||
|
|
wholesale_margin: 0.18
|
||
|
|
}
|
||
|
|
];
|
||
|
|
|
||
|
|
export const mockCosts: ProductCostBreakdown[] = [
|
||
|
|
{
|
||
|
|
product_id: 1,
|
||
|
|
product_name: 'Specialty Pigeon Breeder 20kg',
|
||
|
|
finished_product_delivered: 14.208,
|
||
|
|
distributor_price: 18.3329,
|
||
|
|
wholesale_price: 17.3268,
|
||
|
|
warnings: []
|
||
|
|
}
|
||
|
|
];
|
||
|
|
|
||
|
|
export const mockScenarios: Scenario[] = [
|
||
|
|
{
|
||
|
|
id: 1,
|
||
|
|
name: 'Current Standard',
|
||
|
|
status: 'approved',
|
||
|
|
description: 'Baseline approved pricing',
|
||
|
|
overrides: {}
|
||
|
|
}
|
||
|
|
];
|