|
|
|
|
@ -142,12 +142,15 @@ async def get_standard_scope_by_session_id(*, db_session: DbSession, overhaul_se
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
data = await db_session.execute(query)
|
|
|
|
|
eqs = data.scalars().all()
|
|
|
|
|
|
|
|
|
|
material_cost = get_material_cost("B", len(eqs))
|
|
|
|
|
results = []
|
|
|
|
|
|
|
|
|
|
for equipment in data.scalars().all():
|
|
|
|
|
for equipment in eqs:
|
|
|
|
|
res = OverhaulActivityRead(
|
|
|
|
|
id=equipment.id,
|
|
|
|
|
material_cost=35000000000,
|
|
|
|
|
material_cost=material_cost/10,
|
|
|
|
|
service_cost=200000000,
|
|
|
|
|
location_tag=equipment.location_tag,
|
|
|
|
|
equipment_name=equipment.master_equipment.name if equipment.master_equipment else None,
|
|
|
|
|
|