Skip to content

feat(finance/proto): add machine_id field to MBHead for cost resolution - #49

Merged
ilramdhan merged 1 commit into
mutugading:mainfrom
ilramdhan:fix/master-batch-costing
Jul 15, 2026
Merged

feat(finance/proto): add machine_id field to MBHead for cost resolution#49
ilramdhan merged 1 commit into
mutugading:mainfrom
ilramdhan:fix/master-batch-costing

Conversation

@ilramdhan

Copy link
Copy Markdown
Member

Description

PR ini menambahkan field machine_id (opsional) pada message MBHead, serta mbh_machine_id pada CreateMBHeadRequest dan UpdateMBHeadRequest. Penambahan field ini berfungsi sebagai referensi ke mst_machine.mc_id guna mendukung perbaikan resolusi parameter cost MACHINE_MB_FIXED_TOTAL di backend finance, menggantikan nilai hardcoded zero (0) yang sebelumnya digunakan.

Change Type

  • ✨ New service/message
  • ➕ Add field/RPC/enum value
  • 🔄 Modify validation
  • 📝 Documentation update
  • ⚠️ Deprecation
  • 🔧 Config/script changes

Proto Files Changed

  • common/v1/common.proto
  • finance/v1/uom.proto
  • Other: yarn_master.proto (silakan sesuaikan nama file protonya)

Changes Made

  • Menambahkan field opsional machine_id pada message MBHead.
  • Menambahkan field mbh_machine_id pada CreateMBHeadRequest dan UpdateMBHeadRequest.

Related Issues

Fixes #
Related to #

Breaking Change Check

Is this a breaking change?

  • No - buf breaking passes
  • Yes - Requires version bump

Breaking Change Evidence

# Output of buf breaking command
buf breaking --against '.git#branch=main'

Lint Check

# Output of buf lint
buf lint

Generated Code Preview (Optional)

// Generated Go code changes

Pre-merge Checklist

  • I have read and followed RULES.md
  • buf format -w applied
  • buf lint passes
  • buf breaking passes
  • Comments document new messages/fields
  • REST mappings follow conventions
  • Validation rules are complete
  • Field numbers are logical

Impact Assessment

  • Backend code regeneration required
  • Frontend code regeneration required
  • OpenAPI spec regeneration required

Reviewer Notes

  • Backend Note: Penambahan field ini bertujuan untuk memperbaiki isu kalkulasi MACHINE_MB_FIXED_TOTAL. Pastikan backend mapper sudah menangkap field mbh_machine_id ini dan mengaitkannya ke relasi mst_machine.mc_id agar resolusi biayanya tidak lagi mengembalikan nilai nol (hardcoded zero).

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 <ilhamram332@gmail.com>
Co-Authored-By: Ilham R <me@ilramdhan.dev>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: IT Mutugading <it@mutugading.com>
Co-Authored-By: Indra Putro <indraputro@mutugading.com>
Co-Authored-By: Ilham R <ilham.ramadhan@mutugading.com>
Co-Authored-By: IT Mutu Gading <mutugadingapps@gmail.com>
@ilramdhan ilramdhan added this to the Costing Release Milestone milestone Jul 15, 2026
@ilramdhan ilramdhan self-assigned this Jul 15, 2026
Copilot AI review requested due to automatic review settings July 15, 2026 02:10
@ilramdhan ilramdhan added bug Something isn't working enhancement New feature or request feat fix labels Jul 15, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@ilramdhan
ilramdhan merged commit 651a5ec into mutugading:main Jul 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request feat fix

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants