refactored translations, preparing sending of document
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
}
|
||||
|
||||
async function drop(number){
|
||||
let confirmed = confirm(t('document.confirm_deletion').replace('{pos}',document.positions[number].item));
|
||||
let confirmed = confirm(t('confirm_deletion').replace('{pos}',document.positions[number].item));
|
||||
if (!confirmed) return;
|
||||
const url = `${location.protocol}//${location.host.replace('5173','8080')}/api/document/${document.id}/position`;
|
||||
const resp = await fetch(url,{
|
||||
@@ -50,14 +50,14 @@
|
||||
<table class="positions">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{t('document.pos')}</th>
|
||||
<th>{t('document.code')}</th>
|
||||
<th>{t('document.title_or_desc')}</th>
|
||||
<th>{t('document.amount')}</th>
|
||||
<th>{t('document.unit')}</th>
|
||||
<th>{t('document.unit_price')}</th>
|
||||
<th>{t('document.net_price')}</th>
|
||||
<th>{t('document.tax_rate')}</th>
|
||||
<th>{t('pos')}</th>
|
||||
<th>{t('code')}</th>
|
||||
<th>{t('title_or_desc')}</th>
|
||||
<th>{t('amount')}</th>
|
||||
<th>{t('unit')}</th>
|
||||
<th>{t('unit_price')}</th>
|
||||
<th>{t('net_price')}</th>
|
||||
<th>{t('tax_rate')}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -66,9 +66,9 @@
|
||||
{/each}
|
||||
<tr class="sums">
|
||||
<td colspan="2"></td>
|
||||
<td>{t('document.net_sum')}</td>
|
||||
<td>{t('net_sum')}</td>
|
||||
<td>{document.net_sum/100} {document.currency}</td>
|
||||
<td colspan="2">{t('document.gros_sum')}</td>
|
||||
<td colspan="2">{t('gros_sum')}</td>
|
||||
<td>{document.gross_sum/100} {document.currency}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user