Invoice/Bill item stack resize td colspan

This commit is contained in:
cuneytsenturk 2018-11-07 21:42:47 +03:00
parent f3b8af0ad8
commit 2a0a565f66
5 changed files with 18 additions and 0 deletions

View File

@ -330,3 +330,13 @@ function convertDateFormat(date, split_character) {
return result.join(split_character); return result.join(split_character);
} }
function itemTableResize() {
colspan = $('#items.table.table-bordered thead tr th').length - 1;
$('#items.table.table-bordered tbody #addItem .text-right').attr('colspan', colspan);
$('#items.table.table-bordered tbody #tr-subtotal .text-right:first').attr('colspan', colspan);
$('#items.table.table-bordered tbody #tr-discount .text-right:first').attr('colspan', colspan);
$('#items.table.table-bordered tbody #tr-tax .text-right:first').attr('colspan', colspan);
$('#items.table.table-bordered tbody #tr-total .text-right:first').attr('colspan', colspan);
}

View File

@ -222,6 +222,8 @@
}); });
$(document).ready(function(){ $(document).ready(function(){
itemTableResize();
@if (old('item')) @if (old('item'))
$('#vendor_id').trigger('change'); $('#vendor_id').trigger('change');
@endif @endif

View File

@ -221,6 +221,8 @@
}); });
$(document).ready(function(){ $(document).ready(function(){
itemTableResize();
@if (old('item')) @if (old('item'))
$('#vendor_id').trigger('change'); $('#vendor_id').trigger('change');
@endif @endif

View File

@ -222,6 +222,8 @@
}); });
$(document).ready(function(){ $(document).ready(function(){
itemTableResize();
@if (old('item')) @if (old('item'))
$('#customer_id').trigger('change'); $('#customer_id').trigger('change');
@endif @endif

View File

@ -221,6 +221,8 @@
}); });
$(document).ready(function(){ $(document).ready(function(){
itemTableResize();
@if (old('item')) @if (old('item'))
$('#customer_id').trigger('change'); $('#customer_id').trigger('change');
@endif @endif