| 
                                
                                    @@ 1273-1281 (lines=9) @@
                                 | 
                            
                                                            
                                    | 1270 | 
                                     | 
                                            return apply_filters( 'wpinv_cart_details', $this->cart_details, $this->ID, $this );  | 
                                
                                                            
                                    | 1271 | 
                                     | 
                                        }  | 
                                
                                                            
                                    | 1272 | 
                                     | 
                                          | 
                                
                                                            
                                    | 1273 | 
                                     | 
                                        public function get_subtotal( $currency = false ) { | 
                                
                                                            
                                    | 1274 | 
                                     | 
                                            $subtotal = wpinv_format_amount( $this->subtotal, NULL, !$currency );  | 
                                
                                                            
                                    | 1275 | 
                                     | 
                                              | 
                                
                                                            
                                    | 1276 | 
                                     | 
                                            if ( $currency ) { | 
                                
                                                            
                                    | 1277 | 
                                     | 
                                                $subtotal = wpinv_price( $subtotal, $this->get_currency() );  | 
                                
                                                            
                                    | 1278 | 
                                     | 
                                            }  | 
                                
                                                            
                                    | 1279 | 
                                     | 
                                              | 
                                
                                                            
                                    | 1280 | 
                                     | 
                                            return apply_filters( 'wpinv_get_invoice_subtotal', $subtotal, $this->ID, $this, $currency );  | 
                                
                                                            
                                    | 1281 | 
                                     | 
                                        }  | 
                                
                                                            
                                    | 1282 | 
                                     | 
                                          | 
                                
                                                            
                                    | 1283 | 
                                     | 
                                        public function get_total( $currency = false ) {         | 
                                
                                                            
                                    | 1284 | 
                                     | 
                                            if ( $this->is_free_trial() ) { | 
                                
                                                                                
                                 | 
                                
                                    @@ 1372-1379 (lines=8) @@
                                 | 
                            
                                                            
                                    | 1369 | 
                                     | 
                                            return $data;  | 
                                
                                                            
                                    | 1370 | 
                                     | 
                                        }  | 
                                
                                                            
                                    | 1371 | 
                                     | 
                                          | 
                                
                                                            
                                    | 1372 | 
                                     | 
                                        public function get_final_tax( $currency = false ) {         | 
                                
                                                            
                                    | 1373 | 
                                     | 
                                            $final_total = wpinv_format_amount( $this->tax, NULL, !$currency );  | 
                                
                                                            
                                    | 1374 | 
                                     | 
                                            if ( $currency ) { | 
                                
                                                            
                                    | 1375 | 
                                     | 
                                                $final_total = wpinv_price( $final_total, $this->get_currency() );  | 
                                
                                                            
                                    | 1376 | 
                                     | 
                                            }  | 
                                
                                                            
                                    | 1377 | 
                                     | 
                                              | 
                                
                                                            
                                    | 1378 | 
                                     | 
                                            return apply_filters( 'wpinv_get_invoice_final_total', $final_total, $this, $currency );  | 
                                
                                                            
                                    | 1379 | 
                                     | 
                                        }  | 
                                
                                                            
                                    | 1380 | 
                                     | 
                                          | 
                                
                                                            
                                    | 1381 | 
                                     | 
                                        public function get_discounts( $array = false ) { | 
                                
                                                            
                                    | 1382 | 
                                     | 
                                            $discounts = $this->discounts;  | 
                                
                                                                                
                                 | 
                                
                                    @@ 1412-1420 (lines=9) @@
                                 | 
                            
                                                            
                                    | 1409 | 
                                     | 
                                            return $this->discount_code;  | 
                                
                                                            
                                    | 1410 | 
                                     | 
                                        }  | 
                                
                                                            
                                    | 1411 | 
                                     | 
                                          | 
                                
                                                            
                                    | 1412 | 
                                     | 
                                        public function get_tax( $currency = false ) { | 
                                
                                                            
                                    | 1413 | 
                                     | 
                                            $tax = wpinv_format_amount( $this->tax, NULL, !$currency );  | 
                                
                                                            
                                    | 1414 | 
                                     | 
                                              | 
                                
                                                            
                                    | 1415 | 
                                     | 
                                            if ( $currency ) { | 
                                
                                                            
                                    | 1416 | 
                                     | 
                                                $tax = wpinv_price( $tax, $this->get_currency() );  | 
                                
                                                            
                                    | 1417 | 
                                     | 
                                            }  | 
                                
                                                            
                                    | 1418 | 
                                     | 
                                              | 
                                
                                                            
                                    | 1419 | 
                                     | 
                                            return apply_filters( 'wpinv_get_invoice_tax', $tax, $this->ID, $this, $currency );  | 
                                
                                                            
                                    | 1420 | 
                                     | 
                                        }  | 
                                
                                                            
                                    | 1421 | 
                                     | 
                                          | 
                                
                                                            
                                    | 1422 | 
                                     | 
                                        public function get_fees( $type = 'all' ) { | 
                                
                                                            
                                    | 1423 | 
                                     | 
                                            $fees    = array();  |