select agreement_version, quantity, price, specification_item_version from specification_item_version where specification_item_uid= order by agreement_version desc limit 1 pageInfo=#pageInfo# id="" queryString="#request.thisPage#?specification_item_uid=#d.specification_item_uid#&agreement_version=#d.agreement_version#" defaultBackUrl="specification_item.cfm?specification_item_uid=#d.specification_item_uid#" status=#pageInfo.status# trackOut="tr" idAttributesOut="id" /> select i.svc_id, v.svc ,s.specification_id, s.specification, s.contract_id ,d.contract, d.dt_contract, d.contragent_id ,k.contragent from specification_item i left join specification s on (i.specification_id=s.specification_id) left join contract d on (s.contract_id=d.contract_id) left join contragent k on (d.contragent_id=k.contragent_id) left join svc v on (i.svc_id=v.svc_id) where i.specification_item_uid= select a.login as creator, a.shortname as creator_shortname, m.login as updater, m.shortname as updater_shortname from specification_item_version e left outer join usr a on (e.creator_id=a.usr_id) left outer join usr m on (e.updater_id=m.usr_id) where e.specification_item_uid= AND e.agreement_version= Версия строки спецификации [#d.specification_item_uid#]:[#d.agreement_version#]
#status.errorMessage#
#qSpecificationItem.specification#[#qSpecificationItem.specification_id#] #qSpecificationItem.contract# #dateFormat(qSpecificationItem.dt_contract,'DD.MM.YYYY')# #qSpecificationItem.contragent# #d.specification_item_uid# #qSpecificationItem.svc# [#qSpecificationItem.svc_id#] select a.agreement_version, a.agreement, a.dt_agreement from agreement a where a.contract_id= order by 1 desc (версия-номер соглашения) #d.agreement_version# на макете мы пока собираем цепочки дат руками Если оставлено пустым, то версия действует до начала действия следующей. Заполнять, если хотим прекратить услугу постоянно или временно #dateFormat(d.dt_created,'DD.MM.YYYY')# #timeFormat(d.dt_created,'HH:MM')# #qDecoration.creator# (#qDecoration.creator_shortname#)       Изменено #dateFormat(d.dt_updated,'DD.MM.YYYY')# #timeFormat(d.dt_updated,'HH:MM')# #qDecoration.updater# (#qDecoration.updater_shortname#)

Вариант компонента Код Количество Ед.изм. Базовая цена Цена
#param_class# #param# #qService.abstract_service_code#.#qService.modifier_code#.#code# #round(quantity,precision)# #measure_short# #min_price# #price#
--->
Здесь могли бы быть компоненты (но мы их пока не запилили)