::use 'contractadmin/design.mtt'::
::_("Seniority of subscribers"):: | ::_("Sharing between orders")::
::if stat==0::

::__("Seniority of subscribers of ::contract::",{contract:c.name})::

::foreach a anciennete:: ::end::
::_("Number"):: ::_("Year")::
::a.cnt:: ::a.uyear::
::end:: ::if stat==1::

::_("Sharing between orders of"):: "::c.name::"

::foreach r repartition:: ::end::
::_("Quantity"):: ::_("Product"):: ::_("Total price"):: ::_("% of orders")::
::r.quantity:: ::r.name:: ::r.quantity*r.price:: ::currency():: ::r.percent:: %
Total: ::totalQuantity:: ::_("products"):: ::totalPrice:: ::currency()::
$$export(/contractAdmin/stats/::c.id::?csv=1&stat=1) ::end:: ::end::