|
@@ -53,10 +53,10 @@
|
|
<div class="form-group d-flex flex-column mb-2">
|
|
<div class="form-group d-flex flex-column mb-2">
|
|
<label class="m-0 overflow-hidden text-nowrap">{{ $formB['FormVars']['Title']['AutoSlipNo'] }}</label>
|
|
<label class="m-0 overflow-hidden text-nowrap">{{ $formB['FormVars']['Title']['AutoSlipNo'] }}</label>
|
|
<div class="col-12 d-flex p-0">
|
|
<div class="col-12 d-flex p-0">
|
|
- <button id="auto-slip-no-btn" class="btn-dark border-white rounded overflow-hidden col-3 text-center text-white text-nowrap radius-r0"
|
|
|
|
- onclick="get_last_slip_no(this)">
|
|
|
|
- <span class="icon-cogs"></span>
|
|
|
|
- </button>
|
|
|
|
|
|
+ {{-- <button id="auto-slip-no-btn" class="btn-dark border-white rounded overflow-hidden col-3 text-center text-white text-nowrap radius-r0" --}}
|
|
|
|
+ {{-- onclick="get_last_slip_no(this)"> --}}
|
|
|
|
+ {{-- <span class="icon-cogs"></span> --}}
|
|
|
|
+ {{-- </button> --}}
|
|
<input type="text" id="auto-slip-no-txt" class="rounded w-100 radius-l0" autocomplete="off" disabled
|
|
<input type="text" id="auto-slip-no-txt" class="rounded w-100 radius-l0" autocomplete="off" disabled
|
|
maxlength="{{ $formB['FormVars']['MaxLength']['AutoSlipNo'] }}"
|
|
maxlength="{{ $formB['FormVars']['MaxLength']['AutoSlipNo'] }}"
|
|
{{ $formB['FormVars']['Required']['AutoSlipNo'] }}>
|
|
{{ $formB['FormVars']['Required']['AutoSlipNo'] }}>
|
|
@@ -353,11 +353,14 @@
|
|
Btype.get_storage_name_and_branch_name()
|
|
Btype.get_storage_name_and_branch_name()
|
|
let data = await Btype.get_slip_form_init()
|
|
let data = await Btype.get_slip_form_init()
|
|
// console.log(data)
|
|
// console.log(data)
|
|
- formB['SlipCommonSetup'] = data['SlipCommonSetup']
|
|
|
|
- await Btype.create_deal_type_select_box_options(data.DealTypePage)
|
|
|
|
- await Btype.create_vat_type_select_box_options(data.VatRatePage)
|
|
|
|
- await Btype.create_sgroup_select_box_options(data.SgroupPage)
|
|
|
|
- await create_etc_select_box_options(data)
|
|
|
|
|
|
+
|
|
|
|
+ slipInit = await Btype.get_slip_form_init()
|
|
|
|
+ // formB['SlipCommonSetup'] = data['SlipCommonSetup']
|
|
|
|
+ formB['SlipCommonSetup'] = slipInit['SlipCommonSetup']
|
|
|
|
+ await Btype.create_deal_type_select_box_options(slipInit.DealTypePage)
|
|
|
|
+ await Btype.create_vat_type_select_box_options(slipInit.VatRatePage)
|
|
|
|
+ await Btype.create_sgroup_select_box_options(slipInit.SgroupPage)
|
|
|
|
+ await create_etc_select_box_options(slipInit)
|
|
$('#user-txt').val(window.User['NickName'])
|
|
$('#user-txt').val(window.User['NickName'])
|
|
|
|
|
|
if (formB['SlipCommonSetup']['IsLastSlipGet']) {
|
|
if (formB['SlipCommonSetup']['IsLastSlipGet']) {
|
|
@@ -370,6 +373,15 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ $('#porder-table-body').on('click', 'tr', function() {
|
|
|
|
+ // Find the input element with name="bd-cursor-state" within the clicked row
|
|
|
|
+ const $bdCursorStateInput = $(this).find('input[name="bd-cursor-state"]');
|
|
|
|
+ if ($bdCursorStateInput.length) {
|
|
|
|
+ $($bdCursorStateInput).prop('checked', true)
|
|
|
|
+ Btype.bd_cursor_click($bdCursorStateInput)
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
$('.porder-act').on('click', function () {
|
|
$('.porder-act').on('click', function () {
|
|
// console.log($(this).data('value'))
|
|
// console.log($(this).data('value'))
|
|
switch( $(this).data('value') ) {
|
|
switch( $(this).data('value') ) {
|
|
@@ -537,7 +549,9 @@
|
|
Btype.body_act_success_callback($this, tr);
|
|
Btype.body_act_success_callback($this, tr);
|
|
Btype.check_the_checkbox_when_changing($this, false)
|
|
Btype.check_the_checkbox_when_changing($this, false)
|
|
});
|
|
});
|
|
|
|
+ console.log('필수데이터 노누락');
|
|
} else {
|
|
} else {
|
|
|
|
+ console.log('필수데이터 누락');
|
|
iziToast.error({
|
|
iziToast.error({
|
|
title: 'Error',
|
|
title: 'Error',
|
|
message: @json(_e('(*)Required item(s) omitted')),
|
|
message: @json(_e('(*)Required item(s) omitted')),
|
|
@@ -547,8 +561,11 @@
|
|
|
|
|
|
// start body act btn
|
|
// start body act btn
|
|
async function btn_bd_act_add() {
|
|
async function btn_bd_act_add() {
|
|
- if (parseInt($(`#frm`).find(`input[name="Id"]`).val()) == 0 && formB['SlipCommonSetup']['IsAutoSaveHdByItemButton']) {
|
|
|
|
|
|
+ // if (parseInt($(`#frm`).find(`input[name="Id"]`).val()) == 0 && formB['SlipCommonSetup']['IsAutoSaveHdByItemButton']) {
|
|
|
|
+ if (parseInt($(`#frm`).find(`input[name="Id"]`).val()) == 0) {
|
|
if (! await Btype.btn_act_add_chain('#porder-form #frm')) { return }
|
|
if (! await Btype.btn_act_add_chain('#porder-form #frm')) { return }
|
|
|
|
+ }else{
|
|
|
|
+ console.log('formb.SlipCommonSetup : ', formB['SlipCommonSetup']);
|
|
}
|
|
}
|
|
|
|
|
|
if (! Btype.last_item_added_check('#porder-table-body')) {
|
|
if (! Btype.last_item_added_check('#porder-table-body')) {
|
|
@@ -641,6 +658,21 @@
|
|
}
|
|
}
|
|
|
|
|
|
function get_parameter() {
|
|
function get_parameter() {
|
|
|
|
+ console.log('get_parameter()');
|
|
|
|
+ const deal_name = slipInit['DealTypePage'].filter(page => page['Id'] === Number($('#deal-type-select').val()))[0]['DealName']
|
|
|
|
+ const vat_rate = $('#vat-type-select').find('option:selected').data('vatrate')
|
|
|
|
+ const vat_name = slipInit['VatRatePage'].filter(page => page['Id'] === Number($('#vat-type-select').val()))[0]['VatName']
|
|
|
|
+ let first_item = ''
|
|
|
|
+
|
|
|
|
+ if (bd_page.length > 0) {
|
|
|
|
+ const first_porder = bd_page[0]
|
|
|
|
+ first_item = first_porder['ItemCode'] + '_' + first_porder['ItemName']
|
|
|
|
+ if (first_porder['SubName']) {
|
|
|
|
+ first_item += '_' + first_porder['SubName']
|
|
|
|
+ }
|
|
|
|
+ first_item += '(' + bd_page.length + ')'
|
|
|
|
+ }
|
|
|
|
+
|
|
let id = parseInt($(`#frm`).find(`input[name="Id"]`).val());
|
|
let id = parseInt($(`#frm`).find(`input[name="Id"]`).val());
|
|
let parameter = {
|
|
let parameter = {
|
|
Id: id,
|
|
Id: id,
|
|
@@ -667,8 +699,19 @@
|
|
// Remarks: $('#remarks-preview').html(),
|
|
// Remarks: $('#remarks-preview').html(),
|
|
Remarks: $('#remarks-txt-area').val(),
|
|
Remarks: $('#remarks-txt-area').val(),
|
|
PayPeriod: '',
|
|
PayPeriod: '',
|
|
- Ip: window.User['Ip']
|
|
|
|
|
|
+ Ip: window.User['Ip'],
|
|
|
|
+
|
|
|
|
+ FirstItem: first_item,
|
|
|
|
+ ItmtotAmt: String(itmtot_amt),
|
|
|
|
+ DiscountAmt: '0',
|
|
|
|
+ TotalAmt: String(Number(itmtot_amt) - 0),
|
|
|
|
+ DealName: deal_name,
|
|
|
|
+ VatRate: vat_rate,
|
|
|
|
+ VatName: vat_name,
|
|
|
|
+ SgroupName: window.User['SgroupName']
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ console.log('parameter : ', parameter);
|
|
if (id < 0) {
|
|
if (id < 0) {
|
|
parameter = { Id: id }
|
|
parameter = { Id: id }
|
|
} else if (id > 0) {
|
|
} else if (id > 0) {
|
|
@@ -735,6 +778,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
function set_vat_type_rate($this, msg = true) {
|
|
function set_vat_type_rate($this, msg = true) {
|
|
|
|
+ console.log('set_vat_type_rate');
|
|
let vate_rate = $($this).find('option:selected').data('viewvatrate');
|
|
let vate_rate = $($this).find('option:selected').data('viewvatrate');
|
|
$('#vat-type-rate-text').val(vate_rate + '%')
|
|
$('#vat-type-rate-text').val(vate_rate + '%')
|
|
|
|
|
|
@@ -800,7 +844,7 @@
|
|
// 품목코드, 수량, 단가, 공급가액, 세액, 합계금액
|
|
// 품목코드, 수량, 단가, 공급가액, 세액, 합계금액
|
|
html.push (
|
|
html.push (
|
|
`<tr>
|
|
`<tr>
|
|
- <td class="text-${formB.ListVars['Align'].$Radio} px-import-0">
|
|
|
|
|
|
+ <td class="text-${formB.ListVars['Align'].$Radio} px-import-0" ${formB.ListVars['Hidden'].$Radio}>
|
|
<input name="bd-cursor-state" type="radio" value="1" tabindex="-1"
|
|
<input name="bd-cursor-state" type="radio" value="1" tabindex="-1"
|
|
class="text-${formB.ListVars['Align'].$Radio}"
|
|
class="text-${formB.ListVars['Align'].$Radio}"
|
|
onclick="Btype.bd_cursor_click(this)">
|
|
onclick="Btype.bd_cursor_click(this)">
|
|
@@ -812,13 +856,13 @@
|
|
<td onkeydown="Btype.enterPressedinCell(event)"
|
|
<td onkeydown="Btype.enterPressedinCell(event)"
|
|
class="text-${formB.ListVars['Align'].ItemCode}" ${formB.ListVars['Hidden'].ItemCode}
|
|
class="text-${formB.ListVars['Align'].ItemCode}" ${formB.ListVars['Hidden'].ItemCode}
|
|
>
|
|
>
|
|
- <input type="text" class="text-${formB.ListVars['Align'].ItemCode} border-0 bg-white" value="${bd.ItemCode}" disabled
|
|
|
|
|
|
+ <input type="text" class="text-${formB.ListVars['Align'].ItemCode} border-0 bg-white" value="${bd.ItemCode}" readonly
|
|
onchange="Btype.check_the_checkbox_when_changing(this)" required>
|
|
onchange="Btype.check_the_checkbox_when_changing(this)" required>
|
|
</td>
|
|
</td>
|
|
<td onkeydown="Btype.enterPressedinCell(event, 2)"
|
|
<td onkeydown="Btype.enterPressedinCell(event, 2)"
|
|
class="text-${formB.ListVars['Align'].ItemName}" ${formB.ListVars['Hidden'].ItemName}
|
|
class="text-${formB.ListVars['Align'].ItemName}" ${formB.ListVars['Hidden'].ItemName}
|
|
>
|
|
>
|
|
- <input type="text" class="text-${formB.ListVars['Align'].ItemName} border-0 bg-white" value="${bd.ItemName}" disabled
|
|
|
|
|
|
+ <input type="text" class="text-${formB.ListVars['Align'].ItemName} border-0 bg-white" value="${bd.ItemName}" readonly
|
|
onchange="Btype.check_the_checkbox_when_changing(this)" required>
|
|
onchange="Btype.check_the_checkbox_when_changing(this)" required>
|
|
</td>
|
|
</td>
|
|
<td
|
|
<td
|
|
@@ -830,7 +874,7 @@
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
class="text-${formB.ListVars['Align'].PorderQty}" ${formB.ListVars['Hidden'].PorderQty}
|
|
class="text-${formB.ListVars['Align'].PorderQty}" ${formB.ListVars['Hidden'].PorderQty}
|
|
>
|
|
>
|
|
- <input type="text" class="text-${formB.ListVars['Align'].PorderQty} border-0 bg-white" value="${format_conver_for(bd.PorderQty, formB.ListVars['Format'].PorderQty)}" disabled
|
|
|
|
|
|
+ <input type="text" class="text-${formB.ListVars['Align'].PorderQty} border-0 bg-white" value="${format_conver_for(bd.PorderQty, formB.ListVars['Format'].PorderQty)}" readonly
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onfocusout="override_amt_calc_txt_is_changed()"
|
|
onfocusout="override_amt_calc_txt_is_changed()"
|
|
required>
|
|
required>
|
|
@@ -838,7 +882,7 @@
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
class="text-${formB.ListVars['Align'].PorderPrc}" ${formB.ListVars['Hidden'].PorderPrc}
|
|
class="text-${formB.ListVars['Align'].PorderPrc}" ${formB.ListVars['Hidden'].PorderPrc}
|
|
>
|
|
>
|
|
- <input type="text" class="text-${formB.ListVars['Align'].PorderPrc} border-0 bg-white" value="${format_conver_for(bd.PorderPrc, formB.ListVars['Format'].PorderPrc)}" disabled
|
|
|
|
|
|
+ <input type="text" class="text-${formB.ListVars['Align'].PorderPrc} border-0 bg-white" value="${format_conver_for(bd.PorderPrc, formB.ListVars['Format'].PorderPrc)}" readonly
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onfocusout="override_amt_calc_txt_is_changed()"
|
|
onfocusout="override_amt_calc_txt_is_changed()"
|
|
required>
|
|
required>
|
|
@@ -846,7 +890,7 @@
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
class="text-${formB.ListVars['Align'].SupplyAmt}" ${formB.ListVars['Hidden'].SupplyAmt}
|
|
class="text-${formB.ListVars['Align'].SupplyAmt}" ${formB.ListVars['Hidden'].SupplyAmt}
|
|
>
|
|
>
|
|
- <input type="text" class="text-${formB.ListVars['Align'].SupplyAmt} border-0 bg-white" value="${format_conver_for(bd.PorderSupply, formB.ListVars['Format'].SupplyAmt)}" disabled
|
|
|
|
|
|
+ <input type="text" class="text-${formB.ListVars['Align'].SupplyAmt} border-0 bg-white" value="${format_conver_for(bd.PorderSupply, formB.ListVars['Format'].SupplyAmt)}" readonly
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onfocusout="override_custom_supply_amt_or_vat_amt()"
|
|
onfocusout="override_custom_supply_amt_or_vat_amt()"
|
|
required>
|
|
required>
|
|
@@ -854,7 +898,7 @@
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
class="text-${formB.ListVars['Align'].VatAmt}" ${formB.ListVars['Hidden'].VatAmt}
|
|
class="text-${formB.ListVars['Align'].VatAmt}" ${formB.ListVars['Hidden'].VatAmt}
|
|
>
|
|
>
|
|
- <input type="text" class="text-${formB.ListVars['Align'].VatAmt} border-0 bg-white" value="${format_conver_for(bd.PorderVat, formB.ListVars['Format'].VatAmt)}" disabled
|
|
|
|
|
|
+ <input type="text" class="text-${formB.ListVars['Align'].VatAmt} border-0 bg-white" value="${format_conver_for(bd.PorderVat, formB.ListVars['Format'].VatAmt)}" readonly
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onfocusout="override_custom_supply_amt_or_vat_amt()"
|
|
onfocusout="override_custom_supply_amt_or_vat_amt()"
|
|
required>
|
|
required>
|
|
@@ -862,7 +906,7 @@
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
class="text-${formB.ListVars['Align'].SumAmt}" ${formB.ListVars['Hidden'].SumAmt}
|
|
class="text-${formB.ListVars['Align'].SumAmt}" ${formB.ListVars['Hidden'].SumAmt}
|
|
>
|
|
>
|
|
- <input type="text" class="text-${formB.ListVars['Align'].SumAmt} border-0 bg-white" value="${format_conver_for(bd.PorderSum, formB.ListVars['Format'].SumAmt)}" disabled
|
|
|
|
|
|
+ <input type="text" class="text-${formB.ListVars['Align'].SumAmt} border-0 bg-white" value="${format_conver_for(bd.PorderSum, formB.ListVars['Format'].SumAmt)}" readonly
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onfocusout="override_custom_sum_amt()"
|
|
onfocusout="override_custom_sum_amt()"
|
|
required>
|
|
required>
|
|
@@ -873,7 +917,7 @@
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
class="text-${formB.ListVars['Align'].ConfirmDate}" ${formB.ListVars['Hidden'].ConfirmDate}
|
|
class="text-${formB.ListVars['Align'].ConfirmDate}" ${formB.ListVars['Hidden'].ConfirmDate}
|
|
>
|
|
>
|
|
- <input type="date" class="text-${formB.ListVars['Align'].ConfirmDate} border-0 bg-white" value="${isEmpty(bd.ConfirmDate) ? '' : moment(bd.ConfirmDate).format('YYYY-MM-DD')}" disabled
|
|
|
|
|
|
+ <input type="date" class="text-${formB.ListVars['Align'].ConfirmDate} border-0 bg-white" value="${isEmpty(bd.ConfirmDate) ? '' : moment(bd.ConfirmDate).format('YYYY-MM-DD')}" readonly
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onfocusout="save_data_when_entering_text()">
|
|
onfocusout="save_data_when_entering_text()">
|
|
</td>
|
|
</td>
|
|
@@ -881,7 +925,7 @@
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
class="text-${formB.ListVars['Align'].DeliDate}" ${formB.ListVars['Hidden'].DeliDate}
|
|
class="text-${formB.ListVars['Align'].DeliDate}" ${formB.ListVars['Hidden'].DeliDate}
|
|
>
|
|
>
|
|
- <input type="date" class="text-${formB.ListVars['Align'].DeliDate} border-0 bg-white" value="${isEmpty(bd.DeliDate) ? '' : moment(bd.DeliDate).format('YYYY-MM-DD')}" disabled
|
|
|
|
|
|
+ <input type="date" class="text-${formB.ListVars['Align'].DeliDate} border-0 bg-white" value="${isEmpty(bd.DeliDate) ? '' : moment(bd.DeliDate).format('YYYY-MM-DD')}" readonly
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onfocusout="save_data_when_entering_text()"
|
|
onfocusout="save_data_when_entering_text()"
|
|
required>
|
|
required>
|
|
@@ -889,7 +933,7 @@
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
class="text-${formB.ListVars['Align'].Ref1}" ${formB.ListVars['Hidden'].Ref1}
|
|
class="text-${formB.ListVars['Align'].Ref1}" ${formB.ListVars['Hidden'].Ref1}
|
|
>
|
|
>
|
|
- <input type="text" class="text-${formB.ListVars['Align'].Ref1} border-0 bg-white" value="${bd.Ref1}" disabled
|
|
|
|
|
|
+ <input type="text" class="text-${formB.ListVars['Align'].Ref1} border-0 bg-white" value="${bd.Ref1}" readonly
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onfocusout="save_data_when_entering_text()">
|
|
onfocusout="save_data_when_entering_text()">
|
|
</td>
|
|
</td>
|
|
@@ -897,7 +941,7 @@
|
|
onfocusout="add_td_last_tap_out(this, ${bd.Id})"
|
|
onfocusout="add_td_last_tap_out(this, ${bd.Id})"
|
|
class="text-${formB.ListVars['Align'].Ref2}" ${formB.ListVars['Hidden'].Ref2}
|
|
class="text-${formB.ListVars['Align'].Ref2}" ${formB.ListVars['Hidden'].Ref2}
|
|
>
|
|
>
|
|
- <input type="text" class="text-${formB.ListVars['Align'].Ref2} border-0 bg-white" value="${bd.Ref2}" disabled
|
|
|
|
|
|
+ <input type="text" class="text-${formB.ListVars['Align'].Ref2} border-0 bg-white" value="${bd.Ref2}" readonly
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onfocusout="save_data_when_entering_text()">
|
|
onfocusout="save_data_when_entering_text()">
|
|
</td>
|
|
</td>
|
|
@@ -926,7 +970,7 @@
|
|
|
|
|
|
let html =
|
|
let html =
|
|
`<tr>
|
|
`<tr>
|
|
- <td class="text-${formB.ListVars['Align'].$Radio} px-import-0">
|
|
|
|
|
|
+ <td class="text-${formB.ListVars['Align'].$Radio} px-import-0" ${formB.ListVars['Hidden'].$Radio}>
|
|
<input name="bd-cursor-state" type="radio" value="1" tabindex="-1"
|
|
<input name="bd-cursor-state" type="radio" value="1" tabindex="-1"
|
|
class="text-${formB.ListVars['Align'].$Radio}"
|
|
class="text-${formB.ListVars['Align'].$Radio}"
|
|
id="bd-cursor-state-${last_bd_id_inc}"
|
|
id="bd-cursor-state-${last_bd_id_inc}"
|
|
@@ -939,14 +983,14 @@
|
|
<td onkeydown="Btype.enterPressedinCell(event)"
|
|
<td onkeydown="Btype.enterPressedinCell(event)"
|
|
class="text-${formB.ListVars['Align'].ItemCode}" ${formB.ListVars['Hidden'].ItemCode}
|
|
class="text-${formB.ListVars['Align'].ItemCode}" ${formB.ListVars['Hidden'].ItemCode}
|
|
>
|
|
>
|
|
- <input type="text" class="text-${formB.ListVars['Align'].ItemCode} border-0 bg-white"
|
|
|
|
|
|
+ <input type="text" class="text-${formB.ListVars['Align'].ItemCode} border-0 bg-white" readonly
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
id="item-code-${last_bd_id_inc}" required>
|
|
id="item-code-${last_bd_id_inc}" required>
|
|
</td>
|
|
</td>
|
|
<td onkeydown="Btype.enterPressedinCell(event, 2)"
|
|
<td onkeydown="Btype.enterPressedinCell(event, 2)"
|
|
class="text-${formB.ListVars['Align'].ItemName}" ${formB.ListVars['Hidden'].ItemName}
|
|
class="text-${formB.ListVars['Align'].ItemName}" ${formB.ListVars['Hidden'].ItemName}
|
|
>
|
|
>
|
|
- <input type="text" class="text-${formB.ListVars['Align'].ItemName} border-0 bg-white"
|
|
|
|
|
|
+ <input type="text" class="text-${formB.ListVars['Align'].ItemName} border-0 bg-white" readonly
|
|
onchange="Btype.check_the_checkbox_when_changing(this)" required>
|
|
onchange="Btype.check_the_checkbox_when_changing(this)" required>
|
|
</td>
|
|
</td>
|
|
<td
|
|
<td
|
|
@@ -958,7 +1002,7 @@
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
class="text-${formB.ListVars['Align'].PorderQty}" ${formB.ListVars['Hidden'].PorderQty}
|
|
class="text-${formB.ListVars['Align'].PorderQty}" ${formB.ListVars['Hidden'].PorderQty}
|
|
>
|
|
>
|
|
- <input type="text" class="text-${formB.ListVars['Align'].PorderQty} border-0 bg-white"
|
|
|
|
|
|
+ <input type="text" class="text-${formB.ListVars['Align'].PorderQty} border-0 bg-white" readonly
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onfocusout="override_amt_calc_txt_is_changed()"
|
|
onfocusout="override_amt_calc_txt_is_changed()"
|
|
required>
|
|
required>
|
|
@@ -966,7 +1010,7 @@
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
class="text-${formB.ListVars['Align'].PorderPrc}" ${formB.ListVars['Hidden'].PorderPrc}
|
|
class="text-${formB.ListVars['Align'].PorderPrc}" ${formB.ListVars['Hidden'].PorderPrc}
|
|
>
|
|
>
|
|
- <input type="text" class="text-${formB.ListVars['Align'].PorderPrc} border-0 bg-white"
|
|
|
|
|
|
+ <input type="text" class="text-${formB.ListVars['Align'].PorderPrc} border-0 bg-white" readonly
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onfocusout="override_amt_calc_txt_is_changed()"
|
|
onfocusout="override_amt_calc_txt_is_changed()"
|
|
required>
|
|
required>
|
|
@@ -974,7 +1018,7 @@
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
class="text-${formB.ListVars['Align'].SupplyAmt}" ${formB.ListVars['Hidden'].SupplyAmt}
|
|
class="text-${formB.ListVars['Align'].SupplyAmt}" ${formB.ListVars['Hidden'].SupplyAmt}
|
|
>
|
|
>
|
|
- <input type="text" class="text-${formB.ListVars['Align'].SupplyAmt} border-0 bg-white"
|
|
|
|
|
|
+ <input type="text" class="text-${formB.ListVars['Align'].SupplyAmt} border-0 bg-white" readonly
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onfocusout="override_custom_supply_amt_or_vat_amt()"
|
|
onfocusout="override_custom_supply_amt_or_vat_amt()"
|
|
required>
|
|
required>
|
|
@@ -982,13 +1026,13 @@
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
class="text-${formB.ListVars['Align'].VatAmt}" ${formB.ListVars['Hidden'].VatAmt}
|
|
class="text-${formB.ListVars['Align'].VatAmt}" ${formB.ListVars['Hidden'].VatAmt}
|
|
>
|
|
>
|
|
- <input type="text" class="text-${formB.ListVars['Align'].VatAmt} border-0 bg-white"
|
|
|
|
|
|
+ <input type="text" class="text-${formB.ListVars['Align'].VatAmt} border-0 bg-white" readonly
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onfocusout="override_custom_supply_amt_or_vat_amt()"
|
|
onfocusout="override_custom_supply_amt_or_vat_amt()"
|
|
required>
|
|
required>
|
|
</td>
|
|
</td>
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
- class="text-${formB.ListVars['Align'].SumAmt}" ${formB.ListVars['Hidden'].SumAmt}
|
|
|
|
|
|
+ class="text-${formB.ListVars['Align'].SumAmt}" ${formB.ListVars['Hidden'].SumAmt} readonly
|
|
>
|
|
>
|
|
<input type="text" class="text-${formB.ListVars['Align'].SumAmt} border-0 bg-white"
|
|
<input type="text" class="text-${formB.ListVars['Align'].SumAmt} border-0 bg-white"
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
@@ -1001,7 +1045,7 @@
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
class="text-${formB.ListVars['Align'].ConfirmDate}" ${formB.ListVars['Hidden'].ConfirmDate}
|
|
class="text-${formB.ListVars['Align'].ConfirmDate}" ${formB.ListVars['Hidden'].ConfirmDate}
|
|
>
|
|
>
|
|
- <input type="date" class="text-${formB.ListVars['Align'].ConfirmDate} border-0 bg-white"
|
|
|
|
|
|
+ <input type="date" class="text-${formB.ListVars['Align'].ConfirmDate} border-0 bg-white" readonly
|
|
value="${moment().format('YYYY-MM-DD')}"
|
|
value="${moment().format('YYYY-MM-DD')}"
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onfocusout="save_data_when_entering_text()">
|
|
onfocusout="save_data_when_entering_text()">
|
|
@@ -1010,7 +1054,7 @@
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
class="text-${formB.ListVars['Align'].DeliDate}" ${formB.ListVars['Hidden'].DeliDate}
|
|
class="text-${formB.ListVars['Align'].DeliDate}" ${formB.ListVars['Hidden'].DeliDate}
|
|
>
|
|
>
|
|
- <input type="date" class="text-${formB.ListVars['Align'].DeliDate} border-0 bg-white"
|
|
|
|
|
|
+ <input type="date" class="text-${formB.ListVars['Align'].DeliDate} border-0 bg-white" readonly
|
|
value="${moment().format('YYYY-MM-DD')}"
|
|
value="${moment().format('YYYY-MM-DD')}"
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onfocusout="save_data_when_entering_text()"
|
|
onfocusout="save_data_when_entering_text()"
|
|
@@ -1019,7 +1063,7 @@
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
<td onkeydown="Btype.handleEnterPressedinTabCell(event)"
|
|
class="text-${formB.ListVars['Align'].Ref1}" ${formB.ListVars['Hidden'].Ref1}
|
|
class="text-${formB.ListVars['Align'].Ref1}" ${formB.ListVars['Hidden'].Ref1}
|
|
>
|
|
>
|
|
- <input type="text" class="text-${formB.ListVars['Align'].Ref1} border-0 bg-white"
|
|
|
|
|
|
+ <input type="text" class="text-${formB.ListVars['Align'].Ref1} border-0 bg-white" readonly
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onfocusout="save_data_when_entering_text()">
|
|
onfocusout="save_data_when_entering_text()">
|
|
</td>
|
|
</td>
|
|
@@ -1027,7 +1071,7 @@
|
|
data-last=true onfocusout="add_td_last_tap_out(this, ${last_bd_id_inc})"
|
|
data-last=true onfocusout="add_td_last_tap_out(this, ${last_bd_id_inc})"
|
|
class="text-${formB.ListVars['Align'].Ref2}" ${formB.ListVars['Hidden'].Ref2}
|
|
class="text-${formB.ListVars['Align'].Ref2}" ${formB.ListVars['Hidden'].Ref2}
|
|
>
|
|
>
|
|
- <input type="text" class="text-${formB.ListVars['Align'].Ref2} border-0 bg-white"
|
|
|
|
|
|
+ <input type="text" class="text-${formB.ListVars['Align'].Ref2} border-0 bg-white"readonly
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onchange="Btype.check_the_checkbox_when_changing(this)"
|
|
onfocusout="save_data_when_entering_text()">
|
|
onfocusout="save_data_when_entering_text()">
|
|
</td>
|
|
</td>
|
|
@@ -1153,5 +1197,6 @@
|
|
const pickCacheData = {!! json_encode($pickCacheData) !!};
|
|
const pickCacheData = {!! json_encode($pickCacheData) !!};
|
|
var formB = {!! json_encode($formB) !!};
|
|
var formB = {!! json_encode($formB) !!};
|
|
var bd_page = [];
|
|
var bd_page = [];
|
|
|
|
+ let slipInit = null;
|
|
</script>
|
|
</script>
|
|
@endsection
|
|
@endsection
|