EE_Line_Item D

Total Complexity 192
Dependencies 14
Dependents 32
Total lines 1,741
Lines of code 624
Logical lines of code 321
Comment lines 872
Methods 79
Properties 2

Methods 79

Method Rating Maintainability Complexity Lines of code
recalculate_pre_tax_total()
B
44 21 41
_recalculate_pretax_total_for_subtotal()
A
48 9 33
is_percent()
A
52 8 26
add_child_line_item()
A
54 8 21
_recalculate_pretax_total_for_line_item()
A
49 7 31
_recalculate_tax_sub_total()
S
55 7 21
taxable_total()
S
56 7 17
recalculate_total_including_taxes()
S
53 6 23
OBJ_type_i18n()
S
55 6 21
delete_child_line_item()
S
54 6 21
save_this_and_descendants_to_txn()
S
57 5 18
get_items_total()
S
59 5 15
save_this_and_descendants()
S
60 4 14
get_ticket_datetime()
S
62 4 12
delete_if_childless_subtotal()
S
70 4 6
children()
S
61 3 14
set_parent()
S
63 3 12
ticket_event()
S
63 3 11
get_total_tax()
S
64 3 10
get_child_line_item()
S
64 3 10
recalculate_taxes_and_tax_total()
S
60 2 13
new_instance()
S
63 2 11
parent()
S
74 2 5
delete_children_line_items()
S
67 2 8
maybe_save()
S
72 2 6
ticket_datetime_start()
S
67 2 8
timestamp()
S
74 2 5
get_object()
S
71 2 6
ticket_event_name()
S
67 2 8
name()
S
68 2 7
__construct()
S
70 2 6
get_nearest_descendant_of_type()
S
64 1 11
_get_descendants_of_type()
S
64 1 11
desc()
S
80 1 3
unit_price_no_code()
S
79 1 3
total_no_code()
S
79 1 3
OBJ_type()
S
80 1 3
set_OBJ_ID()
S
80 1 3
OBJ_ID()
S
80 1 3
set_quantity()
S
79 1 3
quantity()
S
80 1 3
set_desc()
S
80 1 3
tax_descendants()
S
80 1 3
set_name()
S
80 1 3
is_total()
S
80 1 3
get_items()
S
80 1 3
transaction()
S
80 1 3
set_TXN_ID()
S
80 1 3
TXN_ID()
S
80 1 3
get_cancellations()
S
75 1 4
ID()
S
80 1 3
clear_related_line_item_cache()
S
77 1 4
is_cancelled()
S
80 1 3
set_type()
S
80 1 3
type()
S
80 1 3
set_total()
S
80 1 3
set_parent_ID()
S
80 1 3
code()
S
80 1 3
set_code()
S
80 1 3
is_taxable()
S
80 1 3
set_is_taxable()
S
80 1 3
parent_ID()
S
80 1 3
ticket()
S
72 1 5
set_order()
S
80 1 3
new_instance_from_db()
S
78 1 3
order()
S
80 1 3
total()
S
80 1 3
is_sub_total()
S
80 1 3
set_percent()
S
80 1 3
percent()
S
80 1 3
set_unit_price()
S
80 1 3
unit_price()
S
80 1 3
set_OBJ_type()
S
80 1 3
generate_code()
S
78 1 3
is_tax()
S
80 1 3
is_tax_sub_total()
S
80 1 3
is_line_item()
S
80 1 3
is_sub_line_item()
S
80 1 3
is_cancellation()
S
80 1 3