fix:指摘事項修正

This commit is contained in:
野間 2023-08-23 10:40:36 +09:00
parent 20da78f3e9
commit d4f75c38bf

View File

@ -348,11 +348,11 @@
'iko_flg',
];
return datas.map(function (data) {
let td = display_keys.map((key) =>{
let inner_content = data[key];
if(key=='qty')
return inner_content = `<td align="right">${inner_content || ''}</td>`;
return `<td>${inner_content || ''}</td>`
const td = display_keys.map((key) =>{
let inner_content = data[key] || '';
// 数量のみ右寄せにする
const align = key === 'qty' ? 'align="right"' : ''
return `<td ${align}>${inner_content}</td>`
});
return `
<tr class="result_data">