2974 - Get amount unpaid from customer_risk
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
5d38488ac1
commit
c8bfc911c2
|
@ -60,7 +60,8 @@
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-input-number
|
<vn-input-number
|
||||||
ng-model="$ctrl.deliveredAmount"
|
ng-model="$ctrl.deliveredAmount"
|
||||||
label="Delivered amount">
|
label="Delivered amount"
|
||||||
|
step="0.01">
|
||||||
</vn-input-number>
|
</vn-input-number>
|
||||||
<vn-input-number
|
<vn-input-number
|
||||||
disabled="true"
|
disabled="true"
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
SELECT
|
SELECT
|
||||||
r.id,
|
r.id,
|
||||||
r.amountPaid,
|
r.amountPaid,
|
||||||
r.amountUnpaid,
|
cr.amount AS amountUnpaid,
|
||||||
r.payed,
|
r.payed,
|
||||||
r.companyFk
|
r.companyFk
|
||||||
FROM receipt r
|
FROM receipt r
|
||||||
JOIN client c ON c.id = r.clientFk
|
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
|
||||||
WHERE r.id = ?
|
WHERE r.id = ?
|
Loading…
Reference in New Issue