intent: generates items cannot mark the source rows they consumed - pass-through billing (billable expense lines) cannot be billed exactly once
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by reading the declarative generates: handling for sourceStatus and item selection, then trace how create-from operations persist changes in their unit of work. The issue gives no file paths or test names, so locate the relevant implementation and tests first. Done means consumed source rows are marked atomically, a repeat run refuses with the configured message, and voiding can clear the reference as described alongside #7954.
索引モデルが issue の本文から書いたものです。
説明
Problem
Billing pass-through items declaratively has no at-most-once guarantee per source row. The typical cases are billable expense lines, unbilled timesheet days and consumed materials.
BusinessIntents/base-expenses#45 wants this:
- each APPROVED or REIMBURSED expense line flagged
billableand carrying aProjectbecomes an invoice line on a SalesInvoice for that project's customer; - each line is billed exactly once.
At 14.93.0 (862f6d1a) none of the shapes can say it:
- Per line. A
generates:withfrom: ExpenseClaimItem(a composition child) has no button. The document page offers contributed actions for the header only (caView: 'ExpenseClaim'in the document page), and a composition child renders no page of its own.sourceStatus/fromStatuswould also need an EntityStatus on the line. - Per project. A
generates:withfromUses: projects,from: Project,items: { from: ExpenseClaimItem, where: [billable eq true, ...] }can select the rows. Nothing marks them consumed afterwards:generatesnever writes the item rows. A second click bills the same lines again, and awhere: [{ billed eq false }]has nobody to flipbilled. - Per claim. A header create-from cannot name the customer, because the lines of one claim may belong to several projects and customers. It also has the same missing per-row marker.
Ask
An items: option that writes each consumed source row inside the create-from's unit of work, the per-row twin of sourceStatus. For example:
generates:
- name: invoice-billable-expenses
fromUses: projects
from: Project
to: SalesInvoice
uses: sales-invoices
map: { Customer: Customer, Company: Company }
items:
from: ExpenseClaimItem
via: Project
where: [{ billable eq true }, { BilledInvoice is null }, { ExpenseClaim.Status in [APPROVED, REIMBURSED] }]
onConsumed: { setField: BilledInvoice, value: "{target.id}" } # or setStatus on a line status
refuseWhenEmpty: "No billable expense is waiting to be invoiced for this project"
Expected:
- the selected rows become target lines;
- each source row gets the back-reference/status in the same unit, so a second run selects nothing (400 with the authored sentence);
- a voided invoice can clear the back-reference (pairs with #7954).
Related: #7954 (reopen for a cross-model target).
- 主要言語
- Java
- スター
- 278
- フォーク
- 97
- 平均マージ
- 19時間 30分
- マージ済み PR(30日)
- 242
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
eclipse-dirigible/dirigible のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
eclipse-dirigible/dirigible#7958 ·
メンテナーはふだん 1 日以内に返信
-
intent: a create-from without fromStatus answers 200 on a missing or unknown source id (no 400/404)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
eclipse-dirigible/dirigible#7945 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
eclipse-dirigible/dirigible#7891 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
eclipse-dirigible/dirigible#6538 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
eclipse-dirigible/dirigible#4812 ·
メンテナーはふだん 1 日以内に返信
eclipse-dirigible/dirigible の issue をすべて見る
似ている issue
-
ChaosEngine: backup-remote doctor row passes while consumer mode hides bot memory from git対応中かも @MohabMohie が今日担当しました。 オープンagentic
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ShaftHQ/SHAFT_ENGINE#7263 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
bug/错误
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
FCL-Team/FoldCraftLauncher#1951 ·
メンテナーはふだん 4 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
quarkusio/quarkus-agent-mcp#296 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
commons-app/apps-android-commons#7072 ·
メンテナーはふだん 1 日以内に返信