import products dinamically

This commit is contained in:
Surya Paolo
2024-02-06 20:13:06 +01:00
parent dbcd2aee63
commit 3c0f040d92
53 changed files with 1847 additions and 325 deletions

View File

@@ -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)
},