270 Commits (f9c8b0d749d10ad309c82cd1fc2dba6d6e188c9e)

Author SHA1 Message Date
CIzz22 08b3f4e5f8 Update 'src/middleware.py' 5 months ago
MrWaradana 4a0fc31925 feat: Include acquisition cost in equipment update logic and database updates. 5 months ago
MrWaradana c42c54aad1 refactor: Switch to using `query_data` instead of `insert_actual_data` for retrieving equipment data. 5 months ago
MrWaradana 1e27adfa31 feat: Implement historical data archiving for equipment and transaction records when the acquisition year is updated. 5 months ago
MrWaradana e1db01f9a8 feat: Add `acquisition_year_ref` column to the equipment model and update the historical data schema to use `HistoricalBase`. 5 months ago
MrWaradana d10f9a2bde feat: Implement historical transaction records and refine actual data processing logic with acquisition year handling and targeted execution. 5 months ago
MrWaradana 9f9238c088 remove the acquisition_year_ref 5 months ago
MrWaradana 10cab6d4be removing unnecessary notes 5 months ago
MrWaradana 3fbf941cfd update for new acquisition year replacement calculation minimum eac 5 months ago
MrWaradana 4ff7e29d31 feat: Dynamically update equipment acquisition year from production data and link prediction records to this reference. 5 months ago
MrWaradana 9cda4512c4 fix update equipment recalculation error 5 months ago
MrWaradana 82120c26f4 remove debug print 5 months ago
MrWaradana 1f38f1a80f feat: Standardize equipment API responses to `EquipmentDataMaster` and optimize LCC calculations by pre-fetching parameters and including new material cost fields. 5 months ago
MrWaradana b72e1ec51d feat: Implement `/simulate-all` endpoint to run predictions and EAC for all equipment, and refine `is_actual` determination logic. 5 months ago
MrWaradana ab54c61416 remove raise exception 5 months ago
MrWaradana c35ec7df6b fix items_per_page params 5 months ago
Cizz22 7cad6cc8c4 add validation 5 months ago
CIzz22 bbfa010b39 Update middleware code in main.py 6 months ago
CIzz22 da2ce29c45 add middleware 6 months ago
MrWaradana 0087f66367 fix import credentials 6 months ago
MrWaradana 2aae6bc073 add the missing import 6 months ago
MrWaradana b90202214b fix config env credentials 6 months ago
MrWaradana 63110dd412 fix env missing 6 months ago
MrWaradana 022d2d0fc7 fix env import lookup 6 months ago
MrWaradana eba0d1565f fix src import 6 months ago
MrWaradana 9df47dfbfb fix import config 6 months ago
MrWaradana 44a154c38d fix dynamic env database hostname and port 6 months ago
MrWaradana e3963ff5f2 feat: Add field validator to convert empty strings to None for specific numeric fields. 6 months ago
MrWaradana 25288d18f5 refactor: improve EAC calculation output clarity and adjust Yeardata query year sorting from descending to ascending. 6 months ago
ariwahyunahar 619969987a Perubahan run2.py -> proyeksi sf dan auxelary sesuai rumus pak Stefy 6 months ago
ariwahyunahar 3e7543d3ad Perubahan run2.py -> proyeksi sf dan auxelary sesuai rumus pak Stefy 6 months ago
MrWaradana 020dd2254b fix count remaining life 6 months ago
MrWaradana 13a0273b75 refactor: rename `get_count_remaining_life` to `get_count_remaining_life_equipment` for clarity. 6 months ago
MrWaradana 04bba31670 feat: Add equipment remaining life count API, refine actual data insertion logging, and enhance prediction data fetching. 6 months ago
MrWaradana bd6efc2a3a feat: Add `get_where_query_sql_labour_cost` to filter out 'T' wonums and update `get_yearly_labour_cost_total_by_worktype` to use it. 6 months ago
MrWaradana 04b7977c78 update run plant simulation 6 months ago
MrWaradana 9245669487 add all worktype includes 6 months ago
MrWaradana b1da29c7e6 remove where worktype cm proactive em 6 months ago
ariwahyunahar d60c8bc511 Perubahan run2.py -> value EaF dan CF dari input, kecuali tahun prediksi ambil dari master 6 months ago
MrWaradana a9304328d4 fix id changes every fetch because of delete is_actual = 0 6 months ago
MrWaradana f0abadf932 fix id fetch changes 6 months ago
MrWaradana a2da393c54 feat: Introduce linear forecasting for SFC and auxiliary parameters and refine actual energy sales calculation. 6 months ago
ariwahyunahar 911254db11 Perubahan run2.py -> mengakomodir SFC & Aux power, serta perbaikan beberapa 6 months ago
MrWaradana 90f00af864 refactor: simplify worktype filter to always include CM, PROACTIVE, and EM. 6 months ago
MrWaradana fe4317b1b6 refactor: Remove wonum exclusion and add worktype CASE statement to equipment queries. 6 months ago
MrWaradana e6ceb1a3e6 fix query fetch rbd 6 months ago
MrWaradana 1d786b30bf feat: add status filter for completed and closed work orders to equipment queries 6 months ago
MrWaradana 835224a854 fix the simulation tables used 6 months ago
MrWaradana 37a67c2fd2 feat: Make `equipment_master` field optional in `EquipmentDataMaster` schema. 6 months ago
MrWaradana 74ff4007e3 fix the join to outerjoin for get admin equipment data 6 months ago
MrWaradana 509395c973 remove min_eac_info 6 months ago
MrWaradana ee72a71fe4 fix plant calc 6 months ago
MrWaradana b6d9f147f3 update plant calculation 6 months ago
ariwahyunahar 16faf36de4 plant/run2.py -> perbaikan rumus pengambilan 3 rata2 data terakhir, menjadi 3 terakhir sebelumnya -> last_3_eaf = eaf_history[-3:] 6 months ago
ariwahyunahar d41899dcb5 plant/run2.py -> perubahan rumus pengambilan 3 rata2 data terakhir, menjadi 3 terakhir sebelumnya -> last_3_eaf = eaf_history[-4:-1] 6 months ago
MrWaradana 4cbf968688 remove fs from plant tr data 6 months ago
MrWaradana d84bd0f6ef feat: Introduce chart data retrieval with Break-Even Point calculation and update transaction ID type to UUID. 6 months ago
MrWaradana 55e41abaa3 fix condition asset criticality 6 months ago
MrWaradana 36fda3e73e fix where query sql 6 months ago
MrWaradana ad224c7ecc refactor select for displaying maximo record 6 months ago
MrWaradana 7e9c56f759 fix: empty condtionn wo maxio 6 months ago
MrWaradana e95669b7e3 fix: if wo none, asset criticality 0 6 months ago
MrWaradana 389449d10a refactor: Implement equipment data services with dynamic SQL query generation and category rollup logic. 6 months ago
MrWaradana c630d0b135 feat: Implement 3-year average EAF and CF history tracking to adjust net capacity factor calculation. 7 months ago
MrWaradana 39a53c477a feat: Introduce linear projection for plant cost breakdown and decouple plant simulation from simulation_id. 7 months ago
ariwahyunahar 8c01702c7a edit plant simulation run2.py -> menambahkan hitung nilai cf=selisih dari rata2 3 tahun terakhir eaf - (cf - eaf) 7 months ago
ariwahyunahar 398a2b14a2 Merge branch 'main' of https://git.reliabilityindonesia.com/CIzz22/be-lcca 7 months ago
ariwahyunahar fd5082d002 edit plant simulation run2.py 7 months ago
MrWaradana 0e954d2dc0 feat: Implement upsert functionality for prediction data, updating existing records or inserting new ones, and remove the previous deletion of all predictions. 7 months ago
MrWaradana d2861e1a35 refactor: Streamline actual data queries by removing labor details, add optional asset filtering, and update EAC disposal cost calculation. 7 months ago
MrWaradana d1aa0ced70 refactor: refine EAC year difference calculation logic and add an explanatory comment for EM. 7 months ago
MrWaradana baf05b10de fix: correctly calculate remaining life and apply ordering using aliased column in EAC queries. 7 months ago
MrWaradana 0dd0ce1fe2 refactor: Exclude `seq=0` from historical data, simplify CM prediction logic, and remove hardcoded assetnum from run script. 7 months ago
MrWaradana fa4ea74d9b refactor: Standardize module imports to absolute paths and re-enable data querying in run script. 7 months ago
MrWaradana 56ec7a1bad feat: remove `query_data` invocation, add `assetnum` parameter to `predict_run`, and refine fallback imports. 7 months ago
MrWaradana 6ceb295781 edit avg proyeksi data equipment 7 months ago
ariwahyunahar ef07faf9a0 update run2 plant - create new function liner generate for B&D Cost 7 months ago
MrWaradana b9df675099 refactor: adjust import path for where_query_sql 7 months ago
MrWaradana 052b94d8e0 refactor: externalize SQL WHERE clause generation and update cost data column names. 7 months ago
MrWaradana 84bc9ec06e fix: Modify equipment service query to handle null `actfinish` or `actstart` in duration condition. 7 months ago
MrWaradana a2152f33b4 feat: Implement RBD integration for EAF simulation and result collection, and enhance equipment data with joined Maximo records. 7 months ago
MrWaradana 65308e5735 feat: Add `cf` and `eaf` fields to the `YearData` model and schema. 7 months ago
MrWaradana 92818a581a feat: Add `min_eac_disposal_cost` to the equipment chart response schema and service. 7 months ago
MrWaradana b2b191dd78 refactor get all simulations per user 7 months ago
MrWaradana 87d334ed73 fix script equipment 7 months ago
MrWaradana a1ea7e8b8c fix schema response top 10 7 months ago
MrWaradana c1d087611a update formula and top 10 remaining life 7 months ago
MrWaradana 46a2727f69 update labor cost and disposal cost 7 months ago
MrWaradana 09fe96f1c0 fix infinite cost disposal cost 7 months ago
MrWaradana d7ea07cb45 fix comma typo in query sql 7 months ago
MrWaradana 3ed4203f96 fix query plant and equipment 7 months ago
MrWaradana 7df44deb4d fix minimum_eac filters in equipment service queries 7 months ago
MrWaradana 6b1dd678e5 fix top 10 added column query 7 months ago
MrWaradana a1d51f9029 add filter out minimum eac 7 months ago
MrWaradana 9e622b5b23 fix top 10 case 7 months ago
MrWaradana 385b0e7bdb fix assetnum bound 7 months ago
MrWaradana bb9c9bc0a6 update fix equipment eac and formula 7 months ago
MrWaradana f04ad8fbf1 fix run plant recalc 7 months ago
MrWaradana 996d1aa9d7 fix onnection closed error 7 months ago
MrWaradana 9ae181232b fix masterdata create 7 months ago