Map: add restaurant name row at input modal

This commit is contained in:
Jaeeun.Cho 2025-10-31 09:35:54 -04:00
parent bf48462fa6
commit ecd2cd3c45
2 changed files with 13 additions and 4 deletions

View File

@ -1137,7 +1137,8 @@ class API extends CONF {
td.d_payeesign,
td.d_sludge,
tc.c_sludge,
tc.c_paymenttype
tc.c_paymenttype,
tc.c_name
FROM
tbl_daily td,
tbl_customer tc
@ -1171,6 +1172,7 @@ class API extends CONF {
"d_payeesign" => $rstInput['d_payeesign'],
"d_sludge" => $rstInput['c_sludge'],
"d_paymenttype" => $rstInput['c_paymenttype'],
"d_name" => $rstInput['c_name'],
"d_note" => $noteSTR
);
}

View File

@ -374,7 +374,12 @@ function popup(){
<input type="hidden" class="d_paymenttype">
<table class="tb-info-box">
<tbody>
<tbody>
<tr>
<td class="td-title-info">Restaurant Name</td>
<td class="td-text-info shortinput-store-name">Name</td>
</tr>
<tr>
<td class="td-title-info">Visited Date</td>
<td class="td-text-info">
@ -1386,7 +1391,9 @@ function popup(){
}
function initInput(customer_id){
let loadingTxt = 'Loading...';
jQuery("#map-modal-input .shortinput-store-name").text(loadingTxt);
jQuery("#map-modal-input .d_uid, #map-modal-input .d_customeruid, #map-modal-input .orderdate, #map-modal-input .d-ruid, #map-modal-input .d_visitdate, #map-modal-input .d_quantity, #map-modal-input .d_sludge, #map-modal-input .d_note").val('');
jQuery("#map-modal-input .d_payamount, #map-modal-input .d_payeename").val('');
jQuery("#map-modal-input .d_customeruid").val(customer_id);
@ -1414,7 +1421,7 @@ function popup(){
}
var rstInitInput = function(json) {
jQuery("#map-modal-input .shortinput-store-name").text(json.result['d_name']);
jQuery("#map-modal-input .d_driveruid").val(json.result['d_driveruid']);
jQuery("#map-modal-input .d_paymenttype").val(json.result['d_paymenttype']);
jQuery("#map-modal-input .d_sludge").val(json.result['d_sludge']);