|
@@ -361,7 +361,6 @@
|
|
window.onload = async function () {
|
|
window.onload = async function () {
|
|
ThumbArr = [];
|
|
ThumbArr = [];
|
|
make_dynamic_table_css('.sales-table', make_dynamic_table_px(formB['ListVars']['Size']))
|
|
make_dynamic_table_css('.sales-table', make_dynamic_table_px(formB['ListVars']['Size']))
|
|
-
|
|
|
|
$('#sales-date').val(date_to_sting(new Date()))
|
|
$('#sales-date').val(date_to_sting(new Date()))
|
|
$('#stock-date').val(date_to_sting(new Date()))
|
|
$('#stock-date').val(date_to_sting(new Date()))
|
|
var test = Btype.get_storage_name_and_branch_name()
|
|
var test = Btype.get_storage_name_and_branch_name()
|
|
@@ -487,6 +486,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
async function btn_bd_act_add() {
|
|
async function btn_bd_act_add() {
|
|
|
|
+ console.log('btn_bd_act_add');
|
|
if (parseInt($(`#frm`).find(`input[name="Id"]`).val()) == 0) {
|
|
if (parseInt($(`#frm`).find(`input[name="Id"]`).val()) == 0) {
|
|
iziToast.error({
|
|
iziToast.error({
|
|
title: 'Error',
|
|
title: 'Error',
|
|
@@ -882,6 +882,7 @@
|
|
let html = []
|
|
let html = []
|
|
let qty_total = 0, supply_total = 0, vat_amt_vat_total = 0, sum_total = 0;
|
|
let qty_total = 0, supply_total = 0, vat_amt_vat_total = 0, sum_total = 0;
|
|
bd_page.forEach(bd => {
|
|
bd_page.forEach(bd => {
|
|
|
|
+ console.log('bd : ', bd);
|
|
qty_total += parseFloat(bd.SalesQty);
|
|
qty_total += parseFloat(bd.SalesQty);
|
|
supply_total += parseFloat(bd.SalesSupply);
|
|
supply_total += parseFloat(bd.SalesSupply);
|
|
vat_amt_vat_total += parseFloat(bd.SalesVat);
|
|
vat_amt_vat_total += parseFloat(bd.SalesVat);
|
|
@@ -976,7 +977,7 @@
|
|
onfocusout="save_data_when_entering_text()">
|
|
onfocusout="save_data_when_entering_text()">
|
|
</td>
|
|
</td>
|
|
<td
|
|
<td
|
|
- class="text-${formB.ListVars['Align'].SalesMemo}" ${formB.ListVars['Hidden'].SorderMemo}>
|
|
|
|
|
|
+ class="text-${formB.ListVars['Align'].SorderMemo}" ${formB.ListVars['Hidden'].SorderMemo}>
|
|
<textarea style="max-height: 30px;" class="rounded w-100 bg-white memo-textarea" id="memo-textarea-${bd.Id}"
|
|
<textarea style="max-height: 30px;" class="rounded w-100 bg-white memo-textarea" id="memo-textarea-${bd.Id}"
|
|
ondblclick="Btype.dblclick_memo_textarea(this, ${bd.Id})" role="button" readonly>${bd.SorderMemo}</textarea>
|
|
ondblclick="Btype.dblclick_memo_textarea(this, ${bd.Id})" role="button" readonly>${bd.SorderMemo}</textarea>
|
|
</td>
|
|
</td>
|
|
@@ -1071,7 +1072,6 @@
|
|
<td
|
|
<td
|
|
class="text-${formB.ListVars['Align'].StdSalesPrc}" ${formB.ListVars['Hidden'].StdSalesPrc}>
|
|
class="text-${formB.ListVars['Align'].StdSalesPrc}" ${formB.ListVars['Hidden'].StdSalesPrc}>
|
|
</td>
|
|
</td>
|
|
-
|
|
|
|
<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}
|
|
>
|
|
>
|