Vehicle Packing LIst Template Issue

Chad B. shared this question 4 days ago
Answered

I have a packing list: Packing List Template: Vehicle | InflatableOffice


In it, I've added the following code:


const spans = document.querySelectorAll('td span.option_name');

spans.forEach(span =>

{

const cell = span.parentElement;

const row = cell.parentElement;

row.style.display = 'none';

});


IDK how I got the code before, but it does EXACTLY what I want it to do when I print the vehicle packing list. Where the issue comes in is that if I print ALL vehicles, the code doesn't work. When I pick any one of the vehicles, it works exactly as intended.


I.e. When I have all vehicles selected the following shows:

ffe2b6f79e8e3e891ab1e23eb16b5258


The circled area is a duplicate of what's in the packing list above it. When I select ONLY the 1 vehicle it does this:

055a2b9e7f56d70d404807584e3696e9

The second picture is what I want to happen when ALL vehicles are selected.

Comments (1)

photo
1

I am having our developers take a look at this!

Thank you

photo
1

I created a new ticket for hide accessory that if that could be addressed first, it should fix this issue.

photo
Leave a Comment
 
Attach a file
You can't vote. Please authorize!