::user._amap.name::

Livraison du ::hDate(date)::

::set name = "":: ::set name2 = "":: ::set total = 0:: ::set productNum = 0:: ::foreach m orders:: ::if m.userName != name || m.userName2 != name2:: ::set class="name":: ::else:: ::set class="":: ::end:: ::set name = m.userName :: ::set name2 = m.userName2 :: ::set next = orders[repeat.m.index+1]:: ::if next==null || next.userName!=name || next.userName2!=name2:: ::if (user._amap.hasShopMode()):: ::else:: ::set ua = u.getUserAmap(user._amap):: ::set balance = ua.balance:: ::end:: ::end:: ::end::
::_("Name"):: ::_("Contact details"):: ::_("Qty"):: ::_("Product"):: ::_("U.P."):: ::_("Fees"):: ::_("Total"):: ::_("Signature")::
::if m.userName != name || m.userName2 != name2:: ::set basket = getBasket(m.userId,place.id,date):: ::_("Num"):: ::basket.num:: - ::m.userName:: ::if m.userName2 != null::
::_("alternately with"):: ::m.userName2:: ::end:: ::set total = 0:: ::set productNum = 0:: ::end::
::if m.userName != name || m.userName2 != name2:: ::set u = getUser(m.userId): ::if u !=null:: $$nullSafe(::u.phone::) ::end:: ::if m.userName2 != null:: ::set u = getUser(m.userId2): ::if u !=null::
$$nullSafe(::u.phone::) ::end:: ::end:: ::end::
::if(m.quantity==0 && m.canceled):: ::_("Canceled"):: ::else:: ::raw m.smartQt:: ::end:: ::set productNum = productNum+m.quantity:: ::m.productName:: ::formatNum(m.productPrice):: ::currency():: ::if m.fees!=null:: ::formatNum(m.fees):: ::currency():: ::end:: ::formatNum(m.total):: ::currency():: ::set total = total + m.total::
::formatNum(productNum):: ::_("TOTAL"):: ::formatNum(total):: ::currency()::
::_("Payment:"):: ::if(basket!=null):: ::set tpaid=0:: ::set op = basket.getOrderOperation(false):: ::if op!=null:: ::foreach p op.getRelatedPayments():: ::end:: ::end:: ::set total = numClean(total):: ::set tpaid = numClean(tpaid):: ::if(total!=tpaid):: ::end:: ::end::
::if(p.pending==true):: ::else:: ::end:: ::formatNum(p.amount):: ::currency():: ::set tpaid = p.amount+tpaid:: ::p.name::
::formatNum(total-tpaid):: ::currency():: ::if(total>tpaid):: ::_("To be paid"):: ::formatNum(total-tpaid):: ::currency():: ::else:: ::_("Pay back"):: ::formatNum(tpaid-total):: ::currency():: ::end::
::_("Balance of the member:"):: ::ua.balance:: ::currency():: ::set pending = 0:: ::foreach p ua.getLastOperations(5):: ::if p.type==2 && p.pending==true:: ::end:: ::end:: ::if(balance<0 && balance+pending!=0):: ::end::
::if(p.pending==true):: ::else:: ::end:: ::formatNum(p.amount):: ::currency():: - ::p.name:: ::set pending = pending + p.amount::
::if(balance+pending<0):: ::_("To be paid"):: ::formatNum(abs(balance+pending)):: ::currency():: pour équilibrer le solde ::else:: ::_("Pay back"):: ::formatNum(balance+pending):: ::currency():: pour équilibrer le solde ::end::

::raw nl2br(user.getAmap().txtDistrib)::

::foreach r sqlLog:: ::end::
::r.t::ms ::r.length:: Exp Stack ::r.sql::