File tree Expand file tree Collapse file tree
src/OpenIntranet/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{%for i, row in enumerate(data) %}
22{% set valid = bson.objectid.ObjectId.is_valid(row['cUST_ID']) %}
33
4- <!-- {{i}}, {{row}} -->
54<tr >
65 <td >
76 <div >#{{ i +1 }} </div >
5857 {%for packets in row['packets'] %}
5958 {% set count = 0 %}
6059 {% for packet in packets['packets'] %}
61- {% set this_warehouse = bool(packet['packets']['position'][0]['warehouse'] == current_warehouse) %}
60+ {% set this_warehouse = bool(packet['packets']['position'][0]['warehouse']['_id'] == current_warehouse) %}
6261 {% if this_warehouse %}
6362 <div > <span class =" text-muted hover-packet" packet_id =" {{ packet [' packets' ][' _id' ]}} " ><i class =" bi bi-box-seam" ></i > {{ str (packet [' packets' ][' _id' ])[-4 :]}} </span > · <b >{{ packet [' packet_count' ]}} </b ><small >/{{ packet [' packet_count' ]}} </small > ks · <span class =" text-muted" data-toggle =" tooltip" data-placement =" top" title =" {{ packet [' packets' ][' position' ][0 ][' text' ]}} " >(<i class =" bi bi-inboxes" ></i > {{ packet [' packets' ][' position' ][0 ][' name' ]}} )</span ></div >
6463 {%set count += packet['packet_count'] %}
You can’t perform that action at this time.
0 commit comments