akaunting 3.0 (the last dance)
This commit is contained in:
@ -1,86 +1,106 @@
|
||||
<div class="row document-item-body">
|
||||
<div class="col-sm-12 p-0" style="table-layout: fixed;">
|
||||
@if (!$hideEditItemColumns)
|
||||
<x-edit-item-columns :type="$type" />
|
||||
@endif
|
||||
|
||||
<div class="table-responsive overflow-x-scroll overflow-y-hidden">
|
||||
<table class="table" id="items" style="table-layout: fixed">
|
||||
<div class="relative sm:col-span-6">
|
||||
<div style="table-layout: fixed;">
|
||||
<div class="overflow-x-visible overflow-y-hidden">
|
||||
<table class="small-table-width" id="items">
|
||||
<colgroup>
|
||||
<col class="document-item-40-px">
|
||||
<col class="document-item-25">
|
||||
<col class="document-item-30 description">
|
||||
<col class="document-item-10">
|
||||
<col class="document-item-10">
|
||||
<col class="document-item-20">
|
||||
<col class="document-item-40-px">
|
||||
<col class="small-col" style="width: 24px;">
|
||||
<col class="small-col" style="width: 20%;">
|
||||
<col class="small-col" style="width: 30%;">
|
||||
<col class="small-col" style="width: 12%;">
|
||||
<col class="small-col" style="width: 15%;">
|
||||
<col class="small-col" style="width: 20%;">
|
||||
<col class="small-col" style="width: 24px;">
|
||||
</colgroup>
|
||||
<thead class="thead-light">
|
||||
|
||||
<thead class="border-b">
|
||||
<tr>
|
||||
@stack('move_th_start')
|
||||
<th class="border-top-0 border-right-0 border-bottom-0" style="max-width: 40px">
|
||||
<div></div>
|
||||
</th>
|
||||
<th class="text-left border-t-0 border-r-0 border-b-0" style="vertical-align:bottom;">
|
||||
@if (! $hideEditItemColumns)
|
||||
<x-documents.form.item-columns :type="$type" />
|
||||
@endif
|
||||
</th>
|
||||
|
||||
@stack('move_th_end')
|
||||
|
||||
@if (!$hideItems)
|
||||
@if (! $hideItems)
|
||||
@stack('name_th_start')
|
||||
<th class="text-left border-top-0 border-right-0 border-bottom-0">
|
||||
{{ (trans_choice($textItems, 2) != $textItems) ? trans_choice($textItems, 2) : trans($textItems) }}
|
||||
|
||||
@if (! $hideItemName)
|
||||
<th class="px-3 py-1 ltr:pl-2 rtl:pr-2 ltr:text-left rtl:text-right text-xs font-normal border-t-0 border-r-0 border-b-0" style="vertical-align:bottom;">
|
||||
{{ (trans_choice($textItemName, 2) != $textItemName) ? trans_choice($textItemName, 2) : trans($textItemName) }}
|
||||
</th>
|
||||
@endif
|
||||
|
||||
@stack('name_th_end')
|
||||
|
||||
@stack('move_th_start')
|
||||
<th class="text-left border-top-0 border-right-0 border-bottom-0"></th>
|
||||
|
||||
@if (! $hideItemDescription)
|
||||
<th class="px-3 py-1 text-left text-xs font-normal border-t-0 border-r-0 border-b-0" style=" vertical-align:bottom;">
|
||||
{{ trans($textItemDescription) }}
|
||||
</th>
|
||||
@endif
|
||||
|
||||
@stack('move_th_end')
|
||||
@endif
|
||||
|
||||
@stack('quantity_th_start')
|
||||
<th class="text-center pl-2 border-top-0 border-right-0 border-bottom-0">
|
||||
@if (!$hideQuantity)
|
||||
{{ trans($textQuantity) }}
|
||||
@endif
|
||||
|
||||
@if (! $hideItemQuantity)
|
||||
<th class="px-3 py-1 ltr:text-left rtl:text-right text-xs font-normal border-t-0 border-r-0 border-b-0" style="vertical-align:bottom;">
|
||||
{{ trans($textItemQuantity) }}
|
||||
</th>
|
||||
@endif
|
||||
|
||||
@stack('quantity_th_end')
|
||||
|
||||
@stack('price_th_start')
|
||||
<th class="text-right border-top-0 border-right-0 border-bottom-0 pr-1" style="padding-left: 5px;">
|
||||
@if (!$hidePrice)
|
||||
{{ trans($textPrice) }}
|
||||
@endif
|
||||
|
||||
@if (! $hideItemPrice)
|
||||
<th class="px-3 py-1 ltr:text-left rtl:text-right text-xs font-normal border-t-0 border-r-0 border-b-0 pr-1" style="vertical-align:bottom;">
|
||||
{{ trans($textItemPrice) }}
|
||||
</th>
|
||||
@endif
|
||||
|
||||
@stack('price_th_end')
|
||||
|
||||
@stack('total_th_start')
|
||||
<th class="text-right border-top-0 border-bottom-0 item-total">
|
||||
@if (!$hideAmount)
|
||||
{{ trans($textAmount) }}
|
||||
@endif
|
||||
|
||||
@if (! $hideItemAmount)
|
||||
<th class="px-3 py-1 ltr:text-right rtl:text-left text-xs font-normal border-t-0 border-b-0 item-total" style="vertical-align:bottom;">
|
||||
{{ trans($textItemAmount) }}
|
||||
</th>
|
||||
@endif
|
||||
|
||||
@stack('total_th_end')
|
||||
|
||||
@stack('remove_th_start')
|
||||
<th class="border-top-0 border-right-0 border-bottom-0" style="max-width: 40px">
|
||||
<div></div>
|
||||
</th>
|
||||
|
||||
<th class="border-t-0 border-r-0 border-b-0" style="vertical-align:bottom;">
|
||||
<div></div>
|
||||
</th>
|
||||
|
||||
@stack('remove_th_end')
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody id="{{ (!$hideDiscount && in_array(setting('localisation.discount_location', 'total'), ['item', 'both'])) ? 'invoice-item-discount-rows' : 'invoice-item-rows' }}" class="table-padding-05">
|
||||
@include('components.documents.form.line-item')
|
||||
<tbody id="{{ (! $hideDiscount && in_array(setting('localisation.discount_location', 'total'), ['item', 'both'])) ? 'invoice-item-discount-rows' : 'invoice-item-rows' }}" class="table-padding-05">
|
||||
<x-documents.form.line-item :type="$type" />
|
||||
|
||||
@stack('add_item_td_start')
|
||||
<tr id="addItem">
|
||||
<td class="text-right border-bottom-0 p-0" colspan="7">
|
||||
<x-select-item-button
|
||||
type="{{ $type }}"
|
||||
is-sale="{{ $isSalePrice }}"
|
||||
is-purchase="{{ $isPurchasePrice }}"
|
||||
search-char-limit="{{ $searchCharLimit }}"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="addItem">
|
||||
<td colspan="7">
|
||||
<x-documents.form.item-button
|
||||
type="{{ $type }}"
|
||||
is-sale="{{ $isSalePrice }}"
|
||||
is-purchase="{{ $isPurchasePrice }}"
|
||||
search-char-limit="{{ $searchCharLimit }}"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@stack('add_item_td_end')
|
||||
</tbody>
|
||||
</table>
|
||||
|
Reference in New Issue
Block a user