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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user