Browse Source

240722-1804-Kim

hokky 4 months ago
parent
commit
614ccaff1c

+ 0 - 17
dabory/para/erp/ko_KR/form/form-b/sales/sales.json

@@ -80,11 +80,7 @@
             "Status": "상황",
             "Status": "상황",
             "Supplier": "매출업체*",
             "Supplier": "매출업체*",
             "Contact": "업체담당자",
             "Contact": "업체담당자",
-<<<<<<< HEAD
             "DealType": "거래구분*",
             "DealType": "거래구분*",
-=======
-            "DealType": "거래구분",
->>>>>>> 79e2e07b19fcabaccbe8bd7b4812a3a803613323
             "VatType": "부가세*",
             "VatType": "부가세*",
             "VatTypeRate": "부가세율",
             "VatTypeRate": "부가세율",
             "Delivery": "납품기한",
             "Delivery": "납품기한",
@@ -94,13 +90,8 @@
             "Column2": "컬럼2#",
             "Column2": "컬럼2#",
             "Remarks": "비고",
             "Remarks": "비고",
             "IsClosed": "수주종결",
             "IsClosed": "수주종결",
-<<<<<<< HEAD
             "SgroupName": "영업부서*",
             "SgroupName": "영업부서*",
             "UserName": "사용자명*"
             "UserName": "사용자명*"
-=======
-            "SgroupName": "영업부서#",
-            "UserName": "사용자명#"
->>>>>>> 79e2e07b19fcabaccbe8bd7b4812a3a803613323
         },
         },
         {
         {
             "SaveButton": "left",
             "SaveButton": "left",
@@ -158,11 +149,7 @@
             "Status": "",
             "Status": "",
             "Supplier": "required",
             "Supplier": "required",
             "Contact": "",
             "Contact": "",
-<<<<<<< HEAD
             "DealType": "required",
             "DealType": "required",
-=======
-            "DealType": "",
->>>>>>> 79e2e07b19fcabaccbe8bd7b4812a3a803613323
             "VatType": "required",
             "VatType": "required",
             "VatTypeRate": "",
             "VatTypeRate": "",
             "Delivery": "",
             "Delivery": "",
@@ -192,10 +179,6 @@
             "VatAmt": "세액*",
             "VatAmt": "세액*",
             "SumAmt": "합계금액*",
             "SumAmt": "합계금액*",
             "StdSalesPrc": "표준매출가#",
             "StdSalesPrc": "표준매출가#",
-<<<<<<< HEAD
-=======
-            "DeliDate": "확정납기일*",
->>>>>>> 79e2e07b19fcabaccbe8bd7b4812a3a803613323
             "Ref1": "참고1",
             "Ref1": "참고1",
             "Ref2": "참고2",
             "Ref2": "참고2",
             "SorderMemo": "품목설명(M)"
             "SorderMemo": "품목설명(M)"

+ 0 - 12
resources/views/front/dabory/erp/purchase/porder.blade.php

@@ -536,11 +536,7 @@
         }
         }
 
 
         async function add_td_last_tap_out($this, id) {
         async function add_td_last_tap_out($this, id) {
-<<<<<<< HEAD
             Btype.btn_act_save('#porder-form #frm', async function () {
             Btype.btn_act_save('#porder-form #frm', async function () {
-=======
-            Btype.btn_act_save('#squote-form #frm', async function () {
->>>>>>> 79e2e07b19fcabaccbe8bd7b4812a3a803613323
                 let tr = $(`input[name='bd-cursor-state']:checked`).closest('tr')
                 let tr = $(`input[name='bd-cursor-state']:checked`).closest('tr')
                 let index = $(tr).prevAll().length
                 let index = $(tr).prevAll().length
 
 
@@ -725,16 +721,11 @@
                 VatRate: vat_rate,
                 VatRate: vat_rate,
                 VatName: vat_name,
                 VatName: vat_name,
                 SgroupName: window.User['SgroupName'],
                 SgroupName: window.User['SgroupName'],
-<<<<<<< HEAD
                 TotalQty : String(Number(total_qty) - 0)
                 TotalQty : String(Number(total_qty) - 0)
             }
             }
 
 
             if (typeof first_thumb !== 'undefined') {
             if (typeof first_thumb !== 'undefined') {
                 parameter.FirstThumb = first_thumb;
                 parameter.FirstThumb = first_thumb;
-=======
-                TotalQty : String(Number(total_qty) - 0),
-                FirstThumb : first_thumb
->>>>>>> 79e2e07b19fcabaccbe8bd7b4812a3a803613323
             }
             }
 
 
             if (id < 0) {
             if (id < 0) {
@@ -1155,13 +1146,10 @@
             bd_page[index].PorderPrc = item.PurchPrc
             bd_page[index].PorderPrc = item.PurchPrc
             bd_page[index].StdPurchPrc = item.PurchPrc// override_amt_calc_txt_is_changed();
             bd_page[index].StdPurchPrc = item.PurchPrc// override_amt_calc_txt_is_changed();
             bd_page[index].TurboThumb = item.TurboThumb
             bd_page[index].TurboThumb = item.TurboThumb
-<<<<<<< HEAD
 
 
             if (!ThumbArr) { // item 받아왔을 때만 bd_page에 TurboThumb 저장
             if (!ThumbArr) { // item 받아왔을 때만 bd_page에 TurboThumb 저장
                 bd_page[index].TurboThumb = item.TurboThumb
                 bd_page[index].TurboThumb = item.TurboThumb
             }
             }
-=======
->>>>>>> 79e2e07b19fcabaccbe8bd7b4812a3a803613323
 
 
             if (bd_page[index].Id === 0) {
             if (bd_page[index].Id === 0) {
                 $(tr).children('td:eq(16)').find('textarea').val(item.ItemMemo)
                 $(tr).children('td:eq(16)').find('textarea').val(item.ItemMemo)

+ 0 - 57
resources/views/front/dabory/erp/revenue/sales.blade.php

@@ -206,12 +206,7 @@
                                 <div class="card-body">
                                 <div class="card-body">
                                     <div class="form-group d-flex flex-column mb-2">
                                     <div class="form-group d-flex flex-column mb-2">
                                         <label class="m-0">{{ $formB['FormVars']['Title']['SgroupName'] }}</label>
                                         <label class="m-0">{{ $formB['FormVars']['Title']['SgroupName'] }}</label>
-<<<<<<< HEAD
                                         <select class="rounded w-100" data-closed="0" id="sgroup-id-select"
                                         <select class="rounded w-100" data-closed="0" id="sgroup-id-select"
-=======
-                                            {{ $formB['FormVars']['Required']['SgroupName'] }}
-                                            <select class="rounded w-100" data-closed="0" id="sgroup-id-select"
->>>>>>> 79e2e07b19fcabaccbe8bd7b4812a3a803613323
                                                 maxlength="{{ $formB['FormVars']['MaxLength']['SgroupName'] }}"
                                                 maxlength="{{ $formB['FormVars']['MaxLength']['SgroupName'] }}"
                                             {{ $formB['FormVars']['Required']['SgroupName'] }}>
                                             {{ $formB['FormVars']['Required']['SgroupName'] }}>
                                         </select>
                                         </select>
@@ -366,62 +361,12 @@
         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']))
-<<<<<<< HEAD
-=======
-
-            var test = Btype.get_storage_name_and_branch_name()
-            console.log();
-            // let sgroup_pick = await get_api_data('sgroup-pick', { Page: [ { Id:  parseInt(window.User['SgroupId']) } ] });
-            // window.User['SgroupName'] = sgroup_pick['data']['Page'][0]['SgroupName'];
-            // console.log('sgroup_pick : ', sgroup_pick);
-
-            slipInit = await Btype.get_slip_form_init()
-            // slipInit = @json($slipFormInitCacheData);
-            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'])
-
-            if (formB['SlipCommonSetup']['IsNewRecAutoSlipNo']) {
-                $('.is-new-rec-auto-slip-no').text('자동채번')
-                $('#auto-slip-no-txt').prop('disabled', true)
-                // get_last_slip_no()
-            }
-
-            // slip-search cache 사용
-            if (formB['SlipCommonSetup']['IsLastSlipGet']) {
-                console.log('여기 체크');
-                // slip-search cache 사용
-                Btype.set_slip_cache_data();
-
-                if (! isEmpty(pickCacheData['query'])) {
-                    let query = JSON.parse(pickCacheData['query'])
-                    await Btype.fetch_slip_form_book(query['QueryVars']['FilterValue']);
-                }
-            }
-            // Btype.set_slip_cache_data();
-
-
-            $('#sales-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)
-                }
-            });
-
-            Btype.set_slip_no_btn_disabled()
->>>>>>> 79e2e07b19fcabaccbe8bd7b4812a3a803613323
             $('#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()))
             Btype.get_storage_name_and_branch_name()
             Btype.get_storage_name_and_branch_name()
             let sgroup_pick = await get_api_data('sgroup-pick', { Page: [ { Id:  parseInt(window.User['SgroupId']) } ] });
             let sgroup_pick = await get_api_data('sgroup-pick', { Page: [ { Id:  parseInt(window.User['SgroupId']) } ] });
             window.User['SgroupName'] = sgroup_pick['data']['Page'][0]['SgroupName'];
             window.User['SgroupName'] = sgroup_pick['data']['Page'][0]['SgroupName'];
 
 
-<<<<<<< HEAD
             slipInit = await Btype.get_slip_form_init()
             slipInit = await Btype.get_slip_form_init()
             // slipInit = @json($slipFormInitCacheData);
             // slipInit = @json($slipFormInitCacheData);
             formB['SlipCommonSetup'] = slipInit['SlipCommonSetup']
             formB['SlipCommonSetup'] = slipInit['SlipCommonSetup']
@@ -457,8 +402,6 @@
             });
             });
             Btype.set_slip_no_btn_disabled()
             Btype.set_slip_no_btn_disabled()
 
 
-=======
->>>>>>> 79e2e07b19fcabaccbe8bd7b4812a3a803613323
             $('.sales-act').on('click', function () {
             $('.sales-act').on('click', function () {
                 switch( $(this).data('value') ) {
                 switch( $(this).data('value') ) {
                     case 'save': Btype.btn_act_save('#sales-form #frm'); break;
                     case 'save': Btype.btn_act_save('#sales-form #frm'); break;

+ 0 - 4
resources/views/front/dabory/erp/sales/squote.blade.php

@@ -860,11 +860,7 @@
             $(tr).children('td:eq(3)').find('input').val(item.ItemName)
             $(tr).children('td:eq(3)').find('input').val(item.ItemName)
             $(tr).children('td:eq(4)').text(item.SubName)
             $(tr).children('td:eq(4)').text(item.SubName)
             $(tr).children('td:eq(5)').text(item.CountUnit)
             $(tr).children('td:eq(5)').text(item.CountUnit)
-<<<<<<< HEAD
             $(tr).children('td:eq(6)').find('input').val()
             $(tr).children('td:eq(6)').find('input').val()
-=======
-            $(tr).children('td:eq(6)').find('input').val(0)
->>>>>>> 79e2e07b19fcabaccbe8bd7b4812a3a803613323
             $(tr).children('td:eq(7)').find('input').val(parseFloat(item.PurchPrc).toFixed(window.User['PurchPrcPoint']))
             $(tr).children('td:eq(7)').find('input').val(parseFloat(item.PurchPrc).toFixed(window.User['PurchPrcPoint']))
             $(tr).children('td:eq(11)').text(parseFloat(item.SalesPrc).toFixed(window.User['PurchPrcPoint']))
             $(tr).children('td:eq(11)').text(parseFloat(item.SalesPrc).toFixed(window.User['PurchPrcPoint']))