Skip to content

Commit

Permalink
useful sql scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Sep 24, 2024
1 parent 82e680b commit 7bbe18d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions core/payment/sql/list_payment_documents.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
SELECT pp.timestamp,
pp.payee_addr,
ppd.payment_id,
ppd.owner_id,
ppd.peer_id,
ppd.agreement_id,
ppd.invoice_id,
ppd.activity_id,
ppd.debit_note_id,
ppd.amount
FROM pay_payment_document ppd
JOIN pay_payment pp ON ppd.owner_id = pp.owner_id AND ppd.peer_id = pp.peer_id AND ppd.payment_id = pp.id
ORDER BY pp.timestamp desc

0 comments on commit 7bbe18d

Please sign in to comment.