implemented proper messages for accounting events
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -57,13 +57,9 @@
|
||||
window.setTimeout(scrollToBottom,100);
|
||||
}
|
||||
|
||||
function handleEvent(evt,method){
|
||||
let event_data = JSON.parse(evt.data);
|
||||
console.log({method, event_data});
|
||||
}
|
||||
|
||||
function handleDeleteEvent(evt){
|
||||
handleEvent(evt,'delete');
|
||||
const event_data = JSON.parse(evt.data);
|
||||
transactions = transactions.filter(t => t.id != event_data.transaction.id);
|
||||
}
|
||||
|
||||
function handleUpdateEvent(evt){
|
||||
@@ -139,6 +135,7 @@
|
||||
<th>{t('other party')}</th>
|
||||
<th>{t('purpose')}</th>
|
||||
<th>{t('tags')}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -160,7 +157,7 @@
|
||||
<br/>
|
||||
{sums[0].toFixed(2)} {account.currency}
|
||||
</td>
|
||||
<td colspan="2"></td>
|
||||
<td colspan="3"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user