import products dinamically
This commit is contained in:
@@ -3756,6 +3756,14 @@ export const tools = {
|
||||
}
|
||||
},
|
||||
|
||||
notisVerifiedByUser(user: IUserFields) {
|
||||
try {
|
||||
return user && user.hasOwnProperty('verified_by_aportador') && user.verified_by_aportador === false
|
||||
} catch (e) {
|
||||
return false
|
||||
}
|
||||
},
|
||||
|
||||
addMinutes(mydate: Date, minutes: number) {
|
||||
return date.addToDate(mydate, { minutes })
|
||||
},
|
||||
@@ -8301,6 +8309,7 @@ export const tools = {
|
||||
return weight
|
||||
},
|
||||
|
||||
|
||||
getWeightTotalByOrder(order: IOrder) {
|
||||
return (order.product && order.product.productInfo && order.product.productInfo.weight ? order.product.productInfo.weight : 1) * (order.quantitypreordered | 0 + order.quantity | 0)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user