Hi,
benötige bitte wieder eure Hilfe.
Wie kann ich den Wert unter "ItemDeliveryInformation.DeliveredQuantity" summieren, wenn die LineNumDeliveryNote, PackingSlipId und DeliveryDate ident sind? Weiters sollen anschließend die Nodes, welche für die Berechnung verwendet wurden entfernt werden:
aktuell:
<?xml version="1.0" encoding="utf-8"?>
<SALESINVOICE>
<Interchange>
<Recipient>1234</Recipient>
</Interchange>
<HeaderInformation>
<OrigInvoiceNumber>1</OrigInvoiceNumber>
</HeaderInformation>
<LineInformation>
<Item>
<LineNum>1</LineNum>
<ItemDeliveryInformation>
<LineNumDeliveryNote>1</LineNumDeliveryNote>
<PackingSlipId>PAC0029040</PackingSlipId>
<DeliveryDate>2021-01-08</DeliveryDate>
<DeliveredQuantity>4.00</DeliveredQuantity>
</ItemDeliveryInformation>
<ItemDeliveryInformation>
<LineNumDeliveryNote>1</LineNumDeliveryNote>
<PackingSlipId>PAC0029040</PackingSlipId>
<DeliveryDate>2021-01-08</DeliveryDate>
<DeliveredQuantity>2.00</DeliveredQuantity>
</ItemDeliveryInformation>
<ItemDeliveryInformation>
<LineNumDeliveryNote>1</LineNumDeliveryNote>
<PackingSlipId>PAC0029040</PackingSlipId>
<DeliveryDate>2021-01-08</DeliveryDate>
<DeliveredQuantity>4.00</DeliveredQuantity>
</ItemDeliveryInformation>
<ItemDeliveryInformation>
<LineNumDeliveryNote>1</LineNumDeliveryNote>
<PackingSlipId>PAC0029040</PackingSlipId>
<DeliveryDate>2021-01-08</DeliveryDate>
<DeliveredQuantity>4.00</DeliveredQuantity>
</ItemDeliveryInformation>
<ItemDeliveryInformation>
<LineNumDeliveryNote>1</LineNumDeliveryNote>
<PackingSlipId>PAC0029041</PackingSlipId>
<DeliveryDate>2021-01-08</DeliveryDate>
<DeliveredQuantity>4.00</DeliveredQuantity>
</ItemDeliveryInformation>
</Item>
</LineInformation>
</SALESINVOICE>
Korrekt:
<?xml version="1.0" encoding="utf-8"?>
<SALESINVOICE>
<Interchange>
<Recipient>1234</Recipient>
</Interchange>
<HeaderInformation>
<OrigInvoiceNumber>1</OrigInvoiceNumber>
</HeaderInformation>
<LineInformation>
<Item>
<LineNum>1</LineNum>
<ItemDeliveryInformation>
<LineNumDeliveryNote>1</LineNumDeliveryNote>
<PackingSlipId>PAC0029040</PackingSlipId>
<DeliveryDate>2021-01-08</DeliveryDate>
<DeliveredQuantity>14.00</DeliveredQuantity>
</ItemDeliveryInformation>
<ItemDeliveryInformation>
<LineNumDeliveryNote>1</LineNumDeliveryNote>
<PackingSlipId>PAC0029041</PackingSlipId>
<DeliveryDate>2021-01-08</DeliveryDate>
<DeliveredQuantity>4.00</DeliveredQuantity>
</ItemDeliveryInformation>
</Item>
</LineInformation>
</SALESINVOICE>
Danke & LG Julian