Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Dec 4, 2023
1 parent 259ee3d commit 36e1288
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import com.helger.phase4.dump.AS4IncomingDumperFileBased;
import com.helger.phase4.dump.AS4OutgoingDumperFileBased;
import com.helger.phase4.dump.AS4RawResponseConsumerWriteToFile;
import com.helger.phase4.http.HttpRetrySettings;
import com.helger.phase4.peppol.Phase4PeppolSender;
import com.helger.phase4.sender.AbstractAS4UserMessageBuilder.ESimpleUserMessageSendResult;
import com.helger.servlet.mock.MockServletContext;
Expand Down Expand Up @@ -63,6 +64,7 @@ public static void main (final String [] args)
final IParticipantIdentifier aReceiverID = Phase4PeppolSender.IF.createParticipantIdentifierWithDefaultScheme ("9915:test");
final ESimpleUserMessageSendResult eResult;
eResult = Phase4PeppolSender.builder ()
.httpRetrySettings (new HttpRetrySettings ().setMaxRetries (0))
.documentTypeID (Phase4PeppolSender.IF.createDocumentTypeIdentifierWithDefaultScheme ("urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0::2.1"))
.processID (Phase4PeppolSender.IF.createProcessIdentifierWithDefaultScheme ("urn:fdc:peppol.eu:2017:poacc:billing:01:1.0"))
.senderParticipantID (Phase4PeppolSender.IF.createParticipantIdentifierWithDefaultScheme ("9915:phase4-test-sender"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ THE SOFTWARE.
<!-- Die Rechnungsnummer: -->
<!-- The invoice number: -->
<cbc:ID>ERB_UBL_INVOICE_001</cbc:ID>
<cbc:IssueDate>2022-01-01</cbc:IssueDate>
<cbc:IssueDate>2023-01-01</cbc:IssueDate>
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
<cbc:Note>Das ist ein globaler Kommentar zur Rechnung.</cbc:Note>
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
Expand Down Expand Up @@ -142,7 +142,7 @@ THE SOFTWARE.
<cbc:PaymentMeansCode>31</cbc:PaymentMeansCode>
<!-- Fälligkeitsdatum: -->
<!-- Expected payment date without discount: -->
<cbc:PaymentDueDate>2022-12-31</cbc:PaymentDueDate>
<cbc:PaymentDueDate>2023-12-31</cbc:PaymentDueDate>
<cbc:PaymentChannelCode>IBAN</cbc:PaymentChannelCode>
<cbc:InstructionNote>Sofort fällig</cbc:InstructionNote>
<cac:PayeeFinancialAccount>
Expand All @@ -161,8 +161,8 @@ THE SOFTWARE.
<cbc:Note>3% Skonto bei Zahlung in 5 Tagen/3% discount when paid in 5 days</cbc:Note>
<cbc:SettlementDiscountPercent>3.00</cbc:SettlementDiscountPercent>
<cac:SettlementPeriod>
<cbc:StartDate>2022-01-01</cbc:StartDate>
<cbc:EndDate>2022-12-30</cbc:EndDate>
<cbc:StartDate>2023-01-01</cbc:StartDate>
<cbc:EndDate>2023-12-30</cbc:EndDate>
</cac:SettlementPeriod>
</cac:PaymentTerms>
<cac:AllowanceCharge>
Expand Down

0 comments on commit 36e1288

Please sign in to comment.