Quiq/Zugferd/Entity/Rechnung.pm

filter: Statementstmt 66.6% 16 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 71.4% 5 / 7 Podpod 100% 2 / 2 totaltotal 69.7% 23 / 33 CC 1 SCAR 2.5
CC
1
Cov
67%
new
2.0
addFreitext
2.0
BEGIN
1.0
CRAP 1.3
« Quiq/Sql/Analyzer.pm ↑ Summary Quiq/JQuery/ContextMenu/Ajax.pm »
1 # -----------------------------------------------------------------------------
2  
3 =encoding utf8
4  
5 =head1 NAME
6  
7 Quiq::Zugferd::Entity::Rechnung - Rechnung
8  
9 =head1 BASE CLASS
10  
11 L<Quiq::Zugferd::Entity>
12  
13 =head1 DESCRIPTION
14  
15 Ein Objekt der Klasse repräsentiert eine Rechnung.
16  
17 =cut
18  
19 # -----------------------------------------------------------------------------
20  
21 package Quiq::Zugferd::Entity::Rechnung;
22 1 ▶use base qw/Quiq::Zugferd::Entity/;
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 1 ▶use v5.10;
Subroutine BEGIN: called CC=1 SCAR=0.0
25 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
26 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
27  
28 1 our $VERSION = '1.240';
29  
30 1 ▶use Quiq::Zugferd::Entity::Freitext;
Subroutine BEGIN: called CC=1 SCAR=0.0
31  
32 # -----------------------------------------------------------------------------
33  
34 =head1 METHODS
35  
36 =head2 Klassenmethoden
37  
38 =head3 new() - Konstruktor
39  
40 =head4 Synopsis
41  
42 $rch = $class->new(@keyVal);
43  
44 =head4 Description
45  
46 Instantiiere ein Objekt der Klasse und liefere eine Referenz auf dieses
47 Objekt zurück.
48  
49 =cut
50  
51 # -----------------------------------------------------------------------------
52  
53 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod documented
54 0 my $class = shift;
55 # @_: @keyVal
56  
57 0 my $self = $class->SUPER::new(
58 # Profil EN16931
59 profilKennung => 'urn:cen.eu:en16931:2017', # BT-24
60 geschaeftsprozessTyp => undef, # BT-23
61 rechnungsart => undef, # BT-3
62 rechnungsnummer => undef, # BT-1
63 rechnungsdatum => undef, # BT-2
64 waehrung => undef, # BT-5
65 leitwegId => undef, # BT-10
66 faelligkeitsdatum => undef, # BT-9
67 abrechnungszeitraumVon => undef, # BT-73
68 abrechnungszeitraumBis => undef, # BT-74
69 projektnummer => undef, # BT-11
70 vertragsnummer => undef, # BT-12
71 auftragsnummer => undef, # BT-14
72 vergabenummer => undef, # BT-17
73 objektkennung => undef, # BT-18
74 zahlungsbedingungen => undef, # BT-20
75 zahlungsmittel => undef, # BT-82
76 verwendungszweck => undef, # BT-83
77 zahlungsart => undef, # BT-81
78 iban => undef, # BT-84
79 bic => undef, # BT-86
80 # Beträge
81 summePositionenNetto => undef, # BT-106
82 summeNachlaesseNetto => undef, # BT-107
83 summeZuschlaegeNetto => undef, # BT-108
84 gesamtsummeNetto => undef, # BT-109
85 summeUmsatzsteuer => undef, # BT-110
86 gesamtsummeBrutto => undef, # BT-112
87 gezahlterBetrag => undef, # BT-113
88 rundungsbetrag => undef, # BT-114
89 faelligerBetrag => undef, # BT-115
90 # Zugeordnete Objekte
91 verkaeufer => undef,
92 kaeufer => undef,
93 empfaenger => undef,
94 freitexte => [],
95 positionen => [],
96 umsatzsteuern => [],
97 );
98 0 $self->set(@_);
99  
100 0 return $self;
101 }
102  
103 # -----------------------------------------------------------------------------
104  
105 =head2 Objektmethoden
106  
107 =head3 addFreitext() - Füge Freitext hinzu
108  
109 =head4 Synopsis
110  
111 $rch->addFreitext($code,$text);
112  
113 =head4 Description
114  
115 Füge Freitext $text mit dem Code $code zu den Freitexten hinzu. Ist $code
116 C<undef> wird der Text ohne qualifizierenden Code hinzugefügt.
117  
118 =cut
119  
120 # -----------------------------------------------------------------------------
121  
122 0 ▶sub addFreitext {
Subroutine addFreitext: not called CC=1 SCAR=6.9
Pod documented
123 0 my ($self,$code,$text) = @_;
124  
125 0 my $frt = Quiq::Zugferd::Entity::Freitext->new(
126 code => $code,
127 text => $text,
128 );
129 0 $self->push('freitexte',$frt);
130  
131 0 return;
132 }
133  
134 # -----------------------------------------------------------------------------
135  
136 =head1 VERSION
137  
138 1.240
139  
140 =head1 AUTHOR
141  
142 Frank Seitz, L<http://fseitz.de/>
143  
144 =head1 COPYRIGHT
145  
146 Copyright (C) 2026 Frank Seitz
147  
148 =head1 LICENSE
149  
150 This code is free software; you can redistribute it and/or modify
151 it under the same terms as Perl itself.
152  
153 =cut
154  
155 # -----------------------------------------------------------------------------
156  
157 1 1;
158  
159 # eof
« Quiq/Sql/Analyzer.pm ↑ Summary Quiq/JQuery/ContextMenu/Ajax.pm »