Skip to content

feat(finance/proto): add MB batch costing suite, workflow RPCs, and recipe lock - #48

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

feat(finance/proto): add MB batch costing suite, workflow RPCs, and recipe lock#48
ilramdhan merged 1 commit into
mutugading:mainfrom
ilramdhan:fix/master-batch-costing

Conversation

@ilramdhan

Copy link
Copy Markdown
Member

Description

PR ini menambahkan sekumpulan proto contracts baru untuk mendukung fitur Master Batch (MB) costing suite pada yarn_master.proto. Penambahan ini mencakup workflow MB Head, enam service baru beserta operasi CRUD dan bulk-nya. Selain itu, PR ini juga menambahkan mekanisme penguncian resep MB (MB-recipe lock) pada product master dan pembaruan dependensi pada buf.lock.

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, cost_product_master.proto, buf.lock

Changes Made

  • Menambahkan workflow RPCs untuk MB Head pada yarn_master.proto (Submit, Approve, Validate, UnApprove, Revoke).
  • Menambahkan 6 service baru: MbComposition, MbLusture, MbParam, MbPush, MbWorkflowLog, dan MbBatch beserta seluruh operasi CRUD, import/export, push-to-head, dan batch-trigger messages.
  • Memperluas cost_product_master.proto dengan penambahan mekanisme penguncian MB-recipe (menambahkan field source dan is_locked pada CostProductMaster).
  • Menambahkan RPC UnlockCostProductMaster sebagai fitur pengaman darurat (escape hatch) bagi finance-admin untuk membuka kunci pada produk yang berstatus MB-recipe-locked.
  • Memperbarui file buf.lock sebagai hasil dari penyesuaian dependensi (dependency update) saat proses code generation.

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

  • New Suite: PR ini memuat 6 service baru yang terpusat pada alur komprehensif Master Batch (MB) costing.
  • Admin Escape Hatch: Terdapat RPC UnlockCostProductMaster yang secara spesifik dirancang untuk role finance-admin agar dapat membuka kunci (unlock) produk jika terjadi isu atau revisi mendesak terkait MB-recipe.
  • Config Update: Terdapat bump pada buf.lock, mohon sinkronisasi local environment Anda jika diperlukan.

Add the Master Batch (MB) costing suite to yarn_master.proto: MB Head
workflow RPCs (Submit/Approve/Validate/UnApprove/Revoke) plus six new
services — MbComposition, MbLusture, MbParam, MbPush, MbWorkflowLog and
MbBatch — with their CRUD, import/export, push-to-head and batch-trigger
messages.

Extend cost_product_master.proto with the MB-recipe lock: `source` and
`is_locked` fields on CostProductMaster and an UnlockCostProductMaster
RPC (finance-admin escape hatch for MB-recipe-locked products).

Bump buf.lock from the dependency update run during code generation.

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: IT Mutu Gading <mutugadingapps@gmail.com>
@ilramdhan ilramdhan added this to the Costing Release Milestone milestone Jul 14, 2026
@ilramdhan ilramdhan self-assigned this Jul 14, 2026
Copilot AI review requested due to automatic review settings July 14, 2026 09:33
@ilramdhan ilramdhan added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request feat fix labels Jul 14, 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 3a61b67 into mutugading:main Jul 14, 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 documentation Improvements or additions to documentation enhancement New feature or request feat fix

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants