Invoice/Bill item stack resize td colspan
This commit is contained in:
parent
f3b8af0ad8
commit
2a0a565f66
@ -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);
|
||||||
|
}
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user