projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
460cd14
)
Boolesche Funktionen ("is_...") auch boolesche Werte zurückgeben lassen
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 21 Jan 2013 10:53:03 +0000
(11:53 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 21 Jan 2013 13:16:49 +0000
(14:16 +0100)
Ansonsten sind Vergleiche nervig:
$a->is_ales == $b->is_sales
SL/DB/Order.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Order.pm
b/SL/DB/Order.pm
index
b23e1da
..
ae5c504
100644
(file)
--- a/
SL/DB/Order.pm
+++ b/
SL/DB/Order.pm
@@
-69,7
+69,7
@@
sub displayable_type {
sub is_sales {
croak 'not an accessor' if @_ > 1;
- return shift->customer_id;
+ return
!!
shift->customer_id;
}
sub invoices {