Transactions is the Profile-tab reusable that displays customer transaction history with date-range filtering and pagination.Components/Profile/Default.liquid:{% render 'Reusables\\Transactions\\Default', transactionData: transactionData %}Profile component model containing the transactionData object passed to this reusable.{
"transactionData": {
"pagination": {
"pageNumber": 1,
"numberOfPages": 28
},
"dateFrom": "2025-01-01",
"dateTo": "2025-01-31",
"lines": [
{
"id": "Transaction Id",
"code": "CRN-2025-000007",
"credit": 80.0,
"creditText": "80.00 €",
"debit": 0.0,
"debitText": "0.00 €",
"turnover": -80.0,
"turnoverText": "-80.00 €",
"progressiveBalance": 980.5,
"progressiveBalanceText": "980.50 €",
"description": "Sample description",
"notes": "Sample notes",
"transactionDate": "2025-01-25T16:05:00Z",
"invoiceUrl": "https://example.com/sample"
}
],
"forward": {
"credit": 1500.0,
"creditText": "1,500.00 €",
"debit": 2200.0,
"debitText": "2,200.00 €",
"turnover": 700.0,
"turnoverText": "700.00 €",
"balance": 700.0,
"balanceText": "700.00 €"
},
"total": {
"credit": 2080.0,
"debit": 3760.5,
"turnover": 1680.5,
"balance": 1680.5
}
}
}dateFrom (string, optional)YYYY-MM-DDdateTo (string, optional)YYYY-MM-DDpagination (object, required)pageNumber (number)numberOfPages (number)lines (array, optional)line.transactionDateline.codeline.debitTextline.creditTextline.progressiveBalanceTextforward (object, optional): the balance carried forward from before dateFrom, as reported by the ERP connector. null when the ERP does not report one.forward.balanceText. creditText, debitText and turnoverText are also available.transactionData.forward is present and the current page is 1, the first row of the table is the balance carried forward, labelled Reusables.Transactions.Translations.ForwardBalance, with forward.balanceText in the progressive-balance column (- when the ERP reports no balance). It is not repeated on later pages, and zebra striping continues from it.transactionData is null or transactionData.lines is empty, shows Reusables.Transactions.Translations.NoTransactions, below the carried-forward row when there is one.1, a window around the current page, and totalPages with ... placeholders.transactionsreusabledefault in Reusables/Transactions/Default.js.x-ref="dateRangePicker" input.data-datepicker-options.dateFrom/dateTo to YYYY-MM-DD1.window.location.href.page (when provided)dateFrom (if set)dateTo (if set)dateFrom/dateTo.TODO comment for backend reset filtering.YYYY-MM-DD string into a Date object for picker/range calculations.DD/MM/YYYY input into YYYY-MM-DD format.Date object into YYYY-MM-DD for query-string state.dateFrom/dateTo values.Reusables/Transactions/Default.liquidReusables/Transactions/Default.jsReusables/Transactions/Default.jsonStructure/LayoutA.liquid)Structure/LayoutA.liquid.Reusables/Transactions/Default.json (e.g. Reusables.Transactions.Translations.*).