From 4b63128c7f5f357a821eb7498d59bb4a45741754 Mon Sep 17 00:00:00 2001 From: ilhom Date: Wed, 15 Jul 2026 08:57:21 +0700 Subject: [PATCH] feat(finance): add machine_id field to MBHead for cost resolution Adds optional machine_id to MBHead and mbh_machine_id to Create/UpdateMBHeadRequest, referencing mst_machine.mc_id. Backs the MACHINE_MB_FIXED_TOTAL cost parameter resolution fix on the finance backend, replacing a hardcoded zero. Authored-By: Ilham R Co-Authored-By: Ilham R Co-Authored-By: Claude Opus 4.8 Co-Authored-By: IT Mutugading Co-Authored-By: Indra Putro Co-Authored-By: Ilham R Co-Authored-By: IT Mutu Gading --- finance/v1/yarn_master.proto | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/finance/v1/yarn_master.proto b/finance/v1/yarn_master.proto index 03eadbe..03f312b 100644 --- a/finance/v1/yarn_master.proto +++ b/finance/v1/yarn_master.proto @@ -1259,6 +1259,8 @@ message MBHead { string param_throughput_per_hour = 34; // Frozen param snapshot at VALIDATED — number of process; stores option code, e.g. "D". string param_no_of_process = 35; + // Machine assigned for MACHINE_MB_FIXED_TOTAL cost resolution (references mst_machine.mc_id). Optional. + optional string machine_id = 36 [(buf.validate.field).string.uuid = true]; } // CreateMBHeadRequest is the request for creating an MB Head record. @@ -1300,6 +1302,8 @@ message CreateMBHeadRequest { optional string mbh_cross_section = 16 [(buf.validate.field).string.max_len = 20]; // Lusture code, references MbLusture.code (max 10 chars). optional string mbh_lusture_code = 17 [(buf.validate.field).string.max_len = 10]; + // Machine assigned for MACHINE_MB_FIXED_TOTAL cost resolution (references mst_machine.mc_id). + optional string mbh_machine_id = 18 [(buf.validate.field).string.uuid = true]; } // CreateMBHeadResponse is the response for creating an MB Head record. @@ -1363,6 +1367,8 @@ message UpdateMBHeadRequest { optional string mbh_cross_section = 16 [(buf.validate.field).string.max_len = 20]; // Lusture code, references MbLusture.code (max 10 chars). optional string mbh_lusture_code = 17 [(buf.validate.field).string.max_len = 10]; + // Machine assigned for MACHINE_MB_FIXED_TOTAL cost resolution (references mst_machine.mc_id). + optional string mbh_machine_id = 18 [(buf.validate.field).string.uuid = true]; } // UpdateMBHeadResponse is the response for updating an MB Head record.