From 122c5233bc34c34b9bfc791e242c4dd89cb4a395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raul=20Mu=C3=B1oz?= Date: Fri, 4 Dec 2020 13:43:56 -0400 Subject: [PATCH] Add default image when organizationImagePath is Empty (#559) --- src/components/ADempiere/Form/PriceChecking/index.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/ADempiere/Form/PriceChecking/index.vue b/src/components/ADempiere/Form/PriceChecking/index.vue index 459e92d5..2e748732 100644 --- a/src/components/ADempiere/Form/PriceChecking/index.vue +++ b/src/components/ADempiere/Form/PriceChecking/index.vue @@ -117,6 +117,9 @@ export default { return require('@/image/ADempiere/priceChecking/no-image.jpg') }, backgroundForm() { + if (this.isEmptyValue(this.organizationImagePath)) { + return this.defaultImage + } if (this.isEmptyValue(this.currentImageOfProduct)) { return this.organizationBackground }