meta_payroll_type — US:PTO — distinguish between Earned and Taken
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. Later, `Liabilities:Payable:Vacation` should require a `payroll-type` metadata of either `US:PTO:Taken` or `US:PTO:Earned`, and the `CA:` equivalents.
This commit is contained in:
		
							parent
							
								
									b029a3cca8
								
							
						
					
					
						commit
						83e6e80bb8
					
				
					 2 changed files with 4 additions and 2 deletions
				
			
		|  | @ -75,7 +75,8 @@ class SalaryHook(_PayrollTypeHook): | ||||||
|         'US:MA:Disability:PML', |         'US:MA:Disability:PML', | ||||||
|         'US:NY:Disability', |         'US:NY:Disability', | ||||||
|         'US:NY:Disability:PFL', |         'US:NY:Disability:PFL', | ||||||
|         'US:PTO', |         'US:PTO:Earned', | ||||||
|  |         'US:PTO:Taken', | ||||||
|         *_tax_values, |         *_tax_values, | ||||||
|     ], { |     ], { | ||||||
|         value.replace(':Tax:', ':Taxes:', 1): value |         value.replace(':Tax:', ':Taxes:', 1): value | ||||||
|  |  | ||||||
|  | @ -42,7 +42,8 @@ HOOK_DATA = [ | ||||||
|         'US:Taxes:Medicare', |         'US:Taxes:Medicare', | ||||||
|         'CA:General', |         'CA:General', | ||||||
|         'US:403b:Match', |         'US:403b:Match', | ||||||
|         'US:PTO', |         'US:PTO:Earned', | ||||||
|  |         'US:PTO:Taken', | ||||||
|     ), |     ), | ||||||
|     HookData.from_hook(meta_payroll_type.TaxHook, |     HookData.from_hook(meta_payroll_type.TaxHook, | ||||||
|                        'CA:PP', 'US:IL:Unemployment', 'US:SocialSecurity'), |                        'CA:PP', 'US:IL:Unemployment', 'US:SocialSecurity'), | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Bradley M. Kuhn
						Bradley M. Kuhn