From c3511bad11d060972a79f79319279c43ec05bd0e Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Mon, 13 Dec 2021 20:00:14 -0800 Subject: [PATCH] =?UTF-8?q?meta=5Fpayroll=5Ftype=20=E2=80=94=20CA:PTO=20?= =?UTF-8?q?=E2=80=94=20distinguish=20between=20Earned=20and=20Taken?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Metadata `payroll-type` will go on `Liabilities:Payable:Vacation` and `Expenses:Payroll:Salary`, but we need to distinguish as to whether the Payroll was earned or taken. Implement the `CA:` version of the `US:` ones already done. --- conservancy_beancount/plugin/meta_payroll_type.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conservancy_beancount/plugin/meta_payroll_type.py b/conservancy_beancount/plugin/meta_payroll_type.py index 40064bc..f418702 100644 --- a/conservancy_beancount/plugin/meta_payroll_type.py +++ b/conservancy_beancount/plugin/meta_payroll_type.py @@ -67,7 +67,8 @@ class SalaryHook(_PayrollTypeHook): ] VALUES_ENUM = core.MetadataEnum(METADATA_KEY, [ 'CA:General', - 'CA:PTO', + 'CA:PTO:Earned', + 'CA:PTO:Taken', 'US:403b:Employee', 'US:403b:Match', 'US:General',