From c8bfc911c2a51cfcce8affb99f90438bc79459bd Mon Sep 17 00:00:00 2001 From: joan Date: Thu, 1 Jul 2021 08:33:56 +0200 Subject: [PATCH 1/3] 2974 - Get amount unpaid from customer_risk --- modules/client/front/balance/create/index.html | 3 ++- print/templates/reports/receipt/sql/receipt.sql | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/client/front/balance/create/index.html b/modules/client/front/balance/create/index.html index 81be14382..357ae5d03 100644 --- a/modules/client/front/balance/create/index.html +++ b/modules/client/front/balance/create/index.html @@ -60,7 +60,8 @@ + label="Delivered amount" + step="0.01"> Date: Thu, 1 Jul 2021 09:56:22 +0200 Subject: [PATCH 2/3] Replaced customer_risk with clientRisk --- print/templates/reports/receipt/sql/receipt.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/print/templates/reports/receipt/sql/receipt.sql b/print/templates/reports/receipt/sql/receipt.sql index 6b0611f39..b8f5a4112 100644 --- a/print/templates/reports/receipt/sql/receipt.sql +++ b/print/templates/reports/receipt/sql/receipt.sql @@ -6,6 +6,6 @@ SELECT r.companyFk FROM receipt r JOIN client c ON c.id = r.clientFk - JOIN bi.customer_risk cr ON cr.customer_id = c.id - AND cr.company_id = r.companyFk + JOIN vn.clientRisk cr ON cr.clientFk = c.id + AND cr.companyFk = r.companyFk WHERE r.id = ? \ No newline at end of file From c2112f907ebb13b0a3270a9f70f63599f7d103ae Mon Sep 17 00:00:00 2001 From: joan Date: Thu, 1 Jul 2021 09:57:17 +0200 Subject: [PATCH 3/3] Removed bi from export --- db/export-structure.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/db/export-structure.sh b/db/export-structure.sh index e2a5a618b..c5c65ef34 100755 --- a/db/export-structure.sh +++ b/db/export-structure.sh @@ -3,7 +3,6 @@ SCHEMAS=( account bs - bi cache edi hedera