fix: 筛选结算单订单类型只有租赁类型 (#829)
Reviewed-on: daoyoucloud/tachybase#829 Co-authored-by: wjh <wwwjh0710@163.com> Co-committed-by: wjh <wwwjh0710@163.com>
This commit is contained in:
parent
6bb7e40f7a
commit
a30a214ac0
5
.changeset/rare-steaks-bathe.md
Normal file
5
.changeset/rare-steaks-bathe.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@hera/plugin-rental": minor
|
||||
---
|
||||
|
||||
出库单改成了直发单,但是订单绑定的合同还在,结算单是根据合同查找,做了类型排除
|
@ -247,6 +247,7 @@ SELECT
|
||||
records r
|
||||
WHERE
|
||||
r.contract_id = COALESCE(main.id, c.id)
|
||||
AND r.category = '0'
|
||||
AND (s.end_date + INTERVAL '1 day - 1 millisecond') >= r.date
|
||||
) AS records,
|
||||
(
|
||||
|
Loading…
Reference in New Issue
Block a user