Expose pending service pricing in facility UI

Show normal usage fees separately from the unspecified desire-match surcharge. Preserve free reception and omit guest pricing from warehouse and cleaning rooms.

Validation: 155 suites / 12,310 checks; focused 700 checks; strict state and event equivalence; 16 normal and compact FRONT/BACK captures.
This commit is contained in:
Takeshi
2026-10-01 02:43:39 +09:00
parent 5dde0c5ec2
commit 285528b7a3
5 changed files with 255 additions and 3 deletions
+14
View File
@@ -44,6 +44,20 @@ static func quote_service(base_price: int, policy: Dictionary, service_attribute
&"surcharge": surcharge, &"total": base + surcharge, &"eligible": true}
## The normal fee follows its existing charging contract. The added need-match
## rule has no approved assessment or amount. Null retains that uncertainty.
static func pending_service_readmodel(normal_price: int, service_attribute: StringName) -> Dictionary:
return {
&"normal_price": normal_price,
&"service_attribute": null if service_attribute.is_empty() else service_attribute,
&"deficient_attributes": null,
&"matches": null,
&"surcharge": null,
&"total": null,
&"resolved": false,
}
static func satisfaction_modifier(
policy: Dictionary,
quality: int,