Revision 59b1c4c2
Von Moritz Bunkus vor fast 5 Jahren hinzugefügt
SL/DB/Helper/ZUGFeRD.pm | ||
---|---|---|
148 | 148 |
|
149 | 149 |
# <ram:SpecifiedLineTradeDelivery> |
150 | 150 |
$params{xml}->startTag("ram:SpecifiedLineTradeDelivery"); |
151 |
$params{xml}->dataElement("ram:BilledQuantity", $params{item}->qty, "unitCode" => _unit_code($params{item}->unit));
|
|
151 |
$params{xml}->dataElement("ram:BilledQuantity", $params{item}->qty, unitCode => _unit_code($params{item}->unit));
|
|
152 | 152 |
$params{xml}->endTag; |
153 | 153 |
# </ram:SpecifiedLineTradeDelivery> |
154 | 154 |
|
... | ... | |
274 | 274 |
|
275 | 275 |
# <ram:DueDateDateTime> |
276 | 276 |
$params{xml}->startTag("ram:DueDateDateTime"); |
277 |
$params{xml}->dataElement("udt:DateTimeString", $self->duedate->strftime('%Y%m%d'), "format" => "102");
|
|
277 |
$params{xml}->dataElement("udt:DateTimeString", $self->duedate->strftime('%Y%m%d'), format => "102");
|
|
278 | 278 |
$params{xml}->endTag; |
279 | 279 |
# </ram:DueDateDateTime> |
280 | 280 |
|
... | ... | |
283 | 283 |
|
284 | 284 |
# <ram:ApplicableTradePaymentDiscountTerms> |
285 | 285 |
$params{xml}->startTag("ram:ApplicableTradePaymentDiscountTerms"); |
286 |
$params{xml}->dataElement("ram:BasisPeriodMeasure", $self->payment_terms->terms_skonto, "unitCode" => "DAY");
|
|
286 |
$params{xml}->dataElement("ram:BasisPeriodMeasure", $self->payment_terms->terms_skonto, unitCode => "DAY");
|
|
287 | 287 |
$params{xml}->dataElement("ram:BasisAmount", _r2($payment_terms_vars{amounts}->{invtotal}), currencyID => $currency_id); |
288 | 288 |
$params{xml}->dataElement("ram:CalculationPercent", _r2($self->payment_terms->percent_skonto * 100)); |
289 | 289 |
$params{xml}->endTag; |
... | ... | |
302 | 302 |
|
303 | 303 |
$params{xml}->dataElement("ram:LineTotalAmount", _r2($self->netamount)); |
304 | 304 |
$params{xml}->dataElement("ram:TaxBasisTotalAmount", _r2($self->netamount)); |
305 |
$params{xml}->dataElement("ram:TaxTotalAmount", _r2(sum(values %{ $params{ptc_data}->{taxes} })), "currencyID" => "EUR");
|
|
305 |
$params{xml}->dataElement("ram:TaxTotalAmount", _r2(sum(values %{ $params{ptc_data}->{taxes} })), currencyID => "EUR");
|
|
306 | 306 |
$params{xml}->dataElement("ram:GrandTotalAmount", _r2($self->amount)); |
307 | 307 |
$params{xml}->dataElement("ram:TotalPrepaidAmount", _r2($self->paid)); |
308 | 308 |
$params{xml}->dataElement("ram:DuePayableAmount", _r2($self->amount - $self->paid)); |
... | ... | |
350 | 350 |
|
351 | 351 |
# <ram:IssueDateTime> |
352 | 352 |
$params{xml}->startTag("ram:IssueDateTime"); |
353 |
$params{xml}->dataElement("udt:DateTimeString", $self->transdate->strftime('%Y%m%d'), "format" => "102");
|
|
353 |
$params{xml}->dataElement("udt:DateTimeString", $self->transdate->strftime('%Y%m%d'), format => "102");
|
|
354 | 354 |
$params{xml}->endTag; |
355 | 355 |
# </ram:IssueDateTime> |
356 | 356 |
|
... | ... | |
392 | 392 |
|
393 | 393 |
# <ram:SpecifiedTaxRegistration> |
394 | 394 |
$params{xml}->startTag("ram:SpecifiedTaxRegistration"); |
395 |
$params{xml}->dataElement("ram:ID", _u8($ustid_nr), "schemeID" => "VA");
|
|
395 |
$params{xml}->dataElement("ram:ID", _u8($ustid_nr), schemeID => "VA");
|
|
396 | 396 |
$params{xml}->endTag; |
397 | 397 |
# </ram:SpecifiedTaxRegistration> |
398 | 398 |
} |
... | ... | |
504 | 504 |
$params{xml}->startTag("ram:ActualDeliverySupplyChainEvent"); |
505 | 505 |
|
506 | 506 |
$params{xml}->startTag("ram:OccurrenceDateTime"); |
507 |
$params{xml}->dataElement("udt:DateTimeString", ($self->deliverydate // $self->transdate)->strftime('%Y%m%d'), "format" => "102");
|
|
507 |
$params{xml}->dataElement("udt:DateTimeString", ($self->deliverydate // $self->transdate)->strftime('%Y%m%d'), format => "102");
|
|
508 | 508 |
$params{xml}->endTag; |
509 | 509 |
|
510 | 510 |
$params{xml}->endTag; |
Auch abrufbar als: Unified diff
ZUGFeRD: Kosmetik