|
@@ -314,7 +314,7 @@ $(document).ready(() => {
|
|
|
const gcl = gclGatherData[$(this).data('gcl')];
|
|
|
codeHtml = '';
|
|
|
for (const leaf of gcl.leafXmjs) {
|
|
|
- const quantity = leaf.quantity !== undefined ? leaf.quantity : 0;
|
|
|
+ const quantity = leaf.quantity !== undefined && leaf.quantity !== null ? leaf.quantity : 0;
|
|
|
const bwmx = leaf.bwmx !== undefined ? leaf.bwmx : '';
|
|
|
const isChecked = data_bwmx.indexOf(leaf.code + '_' + bwmx + ';' + quantity) !== -1 && isCheck ? 'checked' : '';
|
|
|
codeHtml += '<tr quantity="' + quantity + '"><td>' + leaf.code + '</td>' +
|