X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/2d7e4203055156dccb2ca3fba82bbb32873ecd2e..a2bab345aedcfbb03bdf0e0aa1f28a5c57a5d02b:/SL/DB/BackgroundJobHistory.pm diff --git a/SL/DB/BackgroundJobHistory.pm b/SL/DB/BackgroundJobHistory.pm index 145548039..84b2cb771 100644 --- a/SL/DB/BackgroundJobHistory.pm +++ b/SL/DB/BackgroundJobHistory.pm @@ -1,6 +1,3 @@ -# This file has been auto-generated only because it didn't exist. -# Feel free to modify it at will; it will not be overwritten automatically. - package SL::DB::BackgroundJobHistory; use strict; @@ -10,4 +7,10 @@ use SL::DB::Manager::BackgroundJobHistory; __PACKAGE__->meta->initialize; +use constant SUCCESS => 'success'; +use constant FAILURE => 'failure'; + +sub has_succeeded { $_[0] && (($_[0]->status || '') eq SUCCESS()) } +sub has_failed { $_[0] && (($_[0]->status || '') eq FAILURE()) } + 1;