|
@@ -64,8 +64,8 @@ $(document).ready(() => {
|
|
|
const unit = gcl.unit !== undefined && gcl.unit !== null ? gcl.unit : '';
|
|
|
const quantity = gcl.quantity !== null && gcl.quantity !== undefined ? (unit !== '' ? roundnum(gcl.quantity, findDecimal(gcl.unit)) : gcl.quantity) : 0;
|
|
|
const unit_price = gcl.unit_price !== null && gcl.unit_price !== undefined ? gcl.unit_price : 0;
|
|
|
- let gclhtml = gcl.leafXmjs !== undefined ? ' data-gcl="' + gcl_index + '"': '';
|
|
|
- gcl_index = gclhtml !== '' ? gcl_index++ : gcl_index;
|
|
|
+ let gclhtml = gcl.leafXmjs !== undefined && gcl.leafXmjs !== null ? ' data-gcl="' + gcl_index + '"': '';
|
|
|
+ gcl_index = gclhtml !== '' ? ++gcl_index : gcl_index;
|
|
|
listHtml += '<tr data-lid="' + list_index + '"'+ gclhtml +' data-index="' + list_index + '" data-bwmx="">' +
|
|
|
'<td>' + list_index + '</td>' +
|
|
|
'<td>' + gcl.code + '</td>' +
|