Quick fix problem reported by GaryHoo - IZYIM order order quantity is different

This commit is contained in:
Dillon Ngo
2025-05-27 20:04:42 +08:00
parent f725933f7e
commit 844527417a
@@ -10,7 +10,25 @@
</div>
<div class="col b-r b-grey text-primary p-t-5 p-b-10">
<small class="fs-10 all-caps bold">In Transit</small>
<h6 class="bold no-margin text-primary" v-if="order.parcels" >{{order.parcels.in_transit_packages.flatMap(packing_list => packing_list.packages).concat(order.parcels.destination_warehouse_packages.flatMap(packing_list => packing_list.packages)).reduce((total, obj) => obj.quantity + total, 0)}}</h6>
<!--
<h6 class="bold no-margin text-primary" v-if="order.parcels" >
{{
order.parcels.in_transit_packages
.flatMap(packing_list => packing_list.packages)
.concat(order.parcels.destination_warehouse_packages.flatMap(packing_list => packing_list.packages))
.reduce((total, obj) => obj.quantity + total, 0)
}}
</h6>
-->
<h6 class="bold no-margin text-primary" v-if="order.parcels" >
{{
order.parcels.in_transit_packages
.flatMap(packing_list => packing_list.packages)
.concat(order.parcels.destination_warehouse_packages.flatMap(packing_list => packing_list.packages))
.filter(obj => obj.description !== 'Overweight CBM')
.reduce((total, obj) => obj.quantity + total, 0)
}}
</h6>
<h6 class="bold no-margin text-info" v-else > - </h6>
</div>
<div class="col text-success p-t-5 p-b-10">