Cleanup the transaction memos
This commit is contained in:
@@ -71,14 +71,14 @@ $(document).ready(() => {
|
||||
});
|
||||
|
||||
$(document).on('submit', 'form.pirep_submit_status', (event) => {
|
||||
console.log(event);
|
||||
|
||||
event.preventDefault();
|
||||
const values = {
|
||||
pirep_id: $(this).attr('pirep_id'),
|
||||
new_status: $(this).attr('new_status')
|
||||
pirep_id: $(event.currentTarget).attr('pirep_id'),
|
||||
new_status: $(event.currentTarget).attr('new_status')
|
||||
};
|
||||
|
||||
console.log('change status', values);
|
||||
|
||||
changeStatus(values, (data) => {
|
||||
const destContainer = '#pirep_' + values.pirep_id + '_actionbar';
|
||||
$(destContainer).html(data);
|
||||
@@ -87,10 +87,15 @@ $(document).ready(() => {
|
||||
|
||||
$(document).on('submit', 'form.pirep_change_status', (event) => {
|
||||
event.preventDefault();
|
||||
changeStatus({
|
||||
pirep_id: $(this).attr('pirep_id'),
|
||||
new_status: $(this).attr('new_status')
|
||||
}, (data) => {
|
||||
|
||||
const values = {
|
||||
pirep_id: $(event.currentTarget).attr('pirep_id'),
|
||||
new_status: $(event.currentTarget).attr('new_status')
|
||||
};
|
||||
|
||||
console.log('change status', values);
|
||||
|
||||
changeStatus(values, (data) => {
|
||||
location.reload();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -25,14 +25,16 @@
|
||||
{!! $journal['credits'] !!}
|
||||
</td>
|
||||
<td>
|
||||
({!! $journal['debits'] !!})
|
||||
<i>{!! $journal['debits'] !!}</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{{-- final total --}}
|
||||
<tr style="border-top: 3px; border-top-style: double;">
|
||||
<td></td>
|
||||
<td><b>Total</b></td>
|
||||
<td align="right">
|
||||
<b>Total</b>
|
||||
</td>
|
||||
<td>
|
||||
{!! $journal['credits']->subtract($journal['debits']) !!}
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user