mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
Merge branch 'dillon/92-fix-multiple-errors' into vapor/development
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user