projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Vorlagensatz rev-odt um Vorlagen für Mahnungen ergänzt
[kivitendo-erp.git]
/
SL
/
DB
/
BackgroundJobHistory.pm
diff --git
a/SL/DB/BackgroundJobHistory.pm
b/SL/DB/BackgroundJobHistory.pm
index
4be8f66
..
84b2cb7
100644
(file)
--- 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;
package SL::DB::BackgroundJobHistory;
use strict;
@@
-8,4
+5,12
@@
use strict;
use SL::DB::MetaSetup::BackgroundJobHistory;
use SL::DB::Manager::BackgroundJobHistory;
use SL::DB::MetaSetup::BackgroundJobHistory;
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;
1;