EE_Line_Item D

Total Complexity 172
Dependencies 16
Dependents 36
Total lines 1,795
Lines of code 558
Logical lines of code 270
Comment lines 928
Methods 98
Properties 4

Methods 98

Method Rating Maintainability Complexity Lines of code
is_percent()
A
52 8 26
add_child_line_item()
A
53 8 22
children()
A
56 8 16
OBJ_type_i18n()
S
55 6 21
delete_child_line_item()
S
57 5 18
save_this_and_descendants_to_txn()
S
59 5 15
delete_if_childless_subtotal()
S
61 5 13
save_this_and_descendants()
S
61 4 12
get_items_total()
S
62 4 12
get_ticket_datetime()
S
62 4 12
ticket()
S
63 4 10
get_child_line_item()
S
62 3 12
set_parent()
S
63 3 12
ticket_event()
S
63 3 11
ensureLineItemsAreSaved()
S
66 3 9
parent()
S
67 3 8
removeChildLineItemFromCache()
S
69 2 7
ticket_event_name()
S
67 2 8
new_instance()
S
65 2 9
ticket_datetime_start()
S
67 2 8
delete()
S
64 2 10
isTax()
S
78 2 3
getSubTaxes()
S
71 2 6
hasSubTaxes()
S
69 2 7
maybe_save()
S
72 2 6
timestamp()
S
73 2 5
delete_children_line_items()
S
67 2 8
get_object()
S
71 2 6
name()
S
68 2 7
__construct()
S
68 2 7
get_nearest_descendant_of_type()
S
64 1 11
_get_descendants_of_type()
S
64 1 11
is_cancellation()
S
80 1 3
prettyUnitPrice()
S
79 1 3
unit_price_no_code()
S
81 1 3
is_cancelled()
S
80 1 3
is_total()
S
80 1 3
is_sub_line_item()
S
80 1 3
is_sub_total()
S
80 1 3
prettyTotal()
S
79 1 3
is_line_item()
S
80 1 3
is_tax_sub_total()
S
80 1 3
is_tax()
S
81 1 3
set_name()
S
80 1 3
desc()
S
80 1 3
total_no_code()
S
81 1 3
recalculate_pre_tax_total()
S
70 1 6
recalculate_total_including_taxes()
S
72 1 5
isGlobalTax()
S
80 1 3
recalculate_taxes_and_tax_total()
S
73 1 5
get_total_tax()
S
73 1 5
tax_descendants()
S
80 1 3
get_items()
S
80 1 3
taxable_total()
S
77 1 4
transaction()
S
80 1 3
set_TXN_ID()
S
80 1 3
TXN_ID()
S
80 1 3
get_cancellations()
S
79 1 3
ID()
S
80 1 3
clear_related_line_item_cache()
S
77 1 4
__wakeup()
S
76 1 4
isSubTax()
S
80 1 3
totalWithTax()
S
80 1 3
setTotalWithTax()
S
79 1 3
set_type()
S
80 1 3
resetChildren()
S
81 1 3
set_percent()
S
79 1 3
getChildLineItemFromCache()
S
79 1 3
addLineItemToChildren()
S
79 1 3
pretaxTotal()
S
80 1 3
setPretaxTotal()
S
79 1 3
type()
S
80 1 3
set_code()
S
80 1 3
set_parent_ID()
S
80 1 3
parent_ID()
S
80 1 3
set_order()
S
80 1 3
order()
S
80 1 3
set_total()
S
80 1 3
total()
S
81 1 3
code()
S
80 1 3
is_taxable()
S
80 1 3
generate_code()
S
78 1 3
OBJ_type()
S
80 1 3
quantity()
S
80 1 3
set_quantity()
S
79 1 3
incrementQuantity()
S
79 1 3
decrementQuantity()
S
78 1 3
OBJ_ID()
S
80 1 3
set_OBJ_ID()
S
80 1 3
set_OBJ_type()
S
80 1 3
set_is_taxable()
S
80 1 3
unit_price()
S
80 1 3
set_unit_price()
S
79 1 3
percent()
S
80 1 3
prettyPercent()
S
80 1 3
new_instance_from_db()
S
78 1 3
setTimestamp()
S
80 1 3
set_desc()
S
80 1 3