Logo
Explore Help
Sign In
tandem/numerus
2
0
Fork 0
You've already forked numerus
Code Issues 45 Pull Requests Packages Projects 1 Releases 1 Wiki Activity
numerus/verify/expense_payment.sql

14 lines
361 B
MySQL
Raw Permalink Normal View History

Add the payments section This actually should be the “payments and receivables” section, however this is quite a mouthful; a “receivable” is a payment made **to** you, therefore “payments” is ok. In fact, there is still no receivables in there, as they should be in a separate relation, to constraint them to invoices instead of expenses. It will be done in a separate commit. Since this section will be, in a sense, sort of simplified accounting, i needed to introduce the “payment account” concept. There is no way, yet, for users to add them, because i have to revamp the “tax details” section, but this commit started to grow too big already. The same reasoning for the attachment payment slips as PDF to payment: something i have to add, but not yet in this commit.
2024-08-10 04:34:07 +02:00
-- Verify numerus:expense_payment on pg
begin;
select expense_id
, payment_id
from numerus.expense_payment
where false;
select 1 / count(*) from pg_class where oid = 'numerus.expense_payment'::regclass and relrowsecurity;
select 1 / count(*) from pg_policy where polname = 'company_policy' and polrelid = 'numerus.expense_payment'::regclass;
rollback;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 141ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API