@layout:private.html; @sql:tran; select TransactionId, case when Barcode is null or Barcode = 0 then 'n/d' else coalesce((12745 # (Barcode * 1111))::varchar, 'n/d') end as Id, (ClientData::json ->> 'firstName') || ' ' || (ClientData::json ->> 'lastName') as ClientName, ClientData::json ->> 'document' ClientDocument, to_char(Created, 'YYYY-MM-DD HH:MI:SS') as Created, to_char(Terminated, 'YYYY-MM-DD HH:MI:SS') as Terminated, case when PayModel = 'Card' then 'Karta' when PayModel = 'Cash' then 'Gotowka' else '' end as PayModel, to_char(CashIn::float / 100.0, 'FM999999990.00') || ' PLN' as CashInDisp, to_char(CashOut::float / 100.0, 'FM999999990.00') || ' PLN' as CashOutDisp, case when CashRequested is null then '' when CashRequested::int > 0 then 'Do zaplaty' when CashRequested::int < 0 then 'Do zwrotu' else '' end || ' ' || to_char(CashRequested::float / 100.0, 'FM999999990.00') || ' PLN' as CashRequestedDisp, case when CashReported is null then '' when CashReported::int > 0 then 'Do zaplaty' when CashReported::int > 0 then 'Do zaplaty' when CashReported::int = 0 then 'Oplacono w calosci' else '' end || case when coalesce(CashReported::int, 0) != 0 then ' ' || to_char(CashReported::float / 100.0, 'FM999999990.00') || ' PLN' else '' end as CashReportedDisp, case when Close = 'Normal' then 'Prawidlowo zakonczona' when Close = 'Cancelled' then 'Anulowana' when Close = 'Interrupted' then 'Przerwana' when Close = 'Timeout' then 'Uplyw czasu' when Close is null then 'Nie zakonczona' end as CloseDisp, 'Raport' as Report, (select reportId from report b where type = 'CashPaymentReport' and b.transaction = a.transactionid limit 1) as ReportId from Transaction a where ClientData is not null and ClientData != '' and to_char(Created, 'YYYY-MM-DD') = '@{http:url:date}' order by TransactionId; @send;

Lista transakcji

Powrot do kalendarza

Powrot do formularza platnosci


@repeat:tran; @rend;
Nr transakcji Nr zlecenia Imie i nazwisko Data rozpoczecia Rodzaj platnosci Bilans poczatkowy Wplata gotowkowa Wplata karta platnicza Wyplata gotowkowa Bilans koncowy Sposob zakonczenia Raport
@{tran:TransactionId} @{tran:Id} @{tran:ClientName} @{tran:Created} @{tran:PayModel} @{tran:CashRequestedDisp} @{tran:CashInDisp} @{tran:CardInDisp} @{tran:CashOutDisp} @{tran:CashReportedDisp} @{tran:CloseDisp} Pobierz