Payroll sumission API improved and test added

This commit is contained in:
Finn 2017-09-18 17:13:18 +01:00
parent b224182e61
commit 616181def3
5 changed files with 342 additions and 16 deletions

View file

@ -68,6 +68,13 @@ __PACKAGE__->belongs_to(
"entity_id",
);
__PACKAGE__->has_many(
"payroll",
"Pear::LocalLoop::Schema::Result::OrganisationPayroll",
{ "foreign.org_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
__PACKAGE__->filter_column( pending => {
filter_to_storage => 'to_bool',
});