Class PrecedingInvoiceReferenceForAdvancePayment

java.lang.Object
com.fourjs.report.facturx.profiles.extended.PrecedingInvoiceReferenceForAdvancePayment
All Implemented Interfaces:
Reference

public class PrecedingInvoiceReferenceForAdvancePayment extends Object implements Reference
BG-X-85 PRECEDING INVOICE REFERENCE FOR ADVANCE PAYMENT — A group of business terms providing information on the advance payment related preceding invoice. The individual invoide shall be stated so that combined payments need to be split per invoice.

The EN 16931 business terms and groups implemented by this class:

Business terms and groups implemented
RepresentsBG-X-85
Business terms (value fields)BT-X-558, BT-X-559, BT-X-560, BT-X-560-0

Documentation of the represented business group:

BG-X-85 — PRECEDING INVOICE REFERENCE FOR ADVANCE PAYMENT
DescriptionENA group of business terms providing information on the advance payment related preceding invoice. The individual invoide shall be stated so that combined payments need to be split per invoice.
FRGroupe de termes commerciaux fournissant des informations sur le paiement anticipé lié à la facture précédente. La facture individuelle doit être mentionnée de manière à ce que les paiements combinés doivent être répartis par facture.
Usage noteENTo be used in case: - preceding partial invoices are refered to from a final invoice - preceding pre-payment invoices are refered to from a final invoice
FRA utiliser au cas où : - les factures partielles précédentes sont référencées dans une facture finale - les factures de prépaiement précédentes sont référencées dans une facture finale
Since:
1.09.2/2.5.2
  • Method Details

    • setID

      Sets BT-X-558 Preceding Invoice reference — The identification of an Invoice that was previously sent by the Seller.

      XPath: /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedAdvancePayment/ram:InvoiceSpecifiedReferencedDocument/ram:IssuerAssignedID

      FR: Numéro de facture antérieure — Numéro de facture antérieure Identification d'une Facture précédemment envoyée par le Vendeur.

      Parameters:
      value - the value to set
      Returns:
      this PrecedingInvoiceReferenceForAdvancePayment for chaining
      Since:
      1.09.2/2.5.2
    • setPrecedingInvoiceTypeCode

      public PrecedingInvoiceReferenceForAdvancePayment setPrecedingInvoiceTypeCode(Codes.InvoiceTypeCode value)
      Sets BT-X-559 Preceding invoice type code — The type of preceding Invoice Document

      Usage: Can be used in case of final invoive after prepaid invoice, in order to refernce the previous prepaid invoices.Codelist UNCL 1001 restricted like BT-3

      XPath: /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedAdvancePayment/ram:InvoiceSpecifiedReferencedDocument/ram:TypeCode

      FR: Type de facture antérieure — Le type de la facture antérieure

      Parameters:
      value - the value to set
      Returns:
      this PrecedingInvoiceReferenceForAdvancePayment for chaining
      Since:
      1.09.2/2.5.2
    • setDate

      Sets BT-X-560 Preceding Invoice issue date — The date when the Preceding Invoice was issued.

      Usage: The Preceding Invoice issue date shall be provided in case the Preceding Invoice identifier is not unique.

      XPath: /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedAdvancePayment/ram:InvoiceSpecifiedReferencedDocument/ram:FormattedIssueDateTime/qdt:DateTimeString

      FR: Date d'émission de facture antérieure — Date à laquelle la Facture antérieure a été émise.

      Parameters:
      value - the value to set
      Returns:
      this PrecedingInvoiceReferenceForAdvancePayment for chaining
      Since:
      1.09.2/2.5.2
    • getID

      public String getID()
      Returns BT-X-558 Preceding Invoice reference — The identification of an Invoice that was previously sent by the Seller.

      XPath: /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedAdvancePayment/ram:InvoiceSpecifiedReferencedDocument/ram:IssuerAssignedID

      FR: Numéro de facture antérieure — Numéro de facture antérieure Identification d'une Facture précédemment envoyée par le Vendeur.

      Returns:
      the BT-X-558 value
      Since:
      1.09.2/2.5.2
    • getPrecedingInvoiceTypeCode

      public Codes.InvoiceTypeCode getPrecedingInvoiceTypeCode()
      Returns BT-X-559 Preceding invoice type code — The type of preceding Invoice Document

      Usage: Can be used in case of final invoive after prepaid invoice, in order to refernce the previous prepaid invoices.Codelist UNCL 1001 restricted like BT-3

      XPath: /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedAdvancePayment/ram:InvoiceSpecifiedReferencedDocument/ram:TypeCode

      FR: Type de facture antérieure — Le type de la facture antérieure

      Returns:
      the BT-X-559 value
      Since:
      1.09.2/2.5.2
    • getDate

      public LocalDate getDate()
      Returns BT-X-560 Preceding Invoice issue date — The date when the Preceding Invoice was issued.

      Usage: The Preceding Invoice issue date shall be provided in case the Preceding Invoice identifier is not unique.

      XPath: /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedAdvancePayment/ram:InvoiceSpecifiedReferencedDocument/ram:FormattedIssueDateTime/qdt:DateTimeString

      FR: Date d'émission de facture antérieure — Date à laquelle la Facture antérieure a été émise.

      Returns:
      the BT-X-560 value
      Since:
      1.09.2/2.5.2
    • getDateFormat

      public Codes.DateFormat getDateFormat() throws ComputationException
      Returns BT-X-560-0 Date format.

      Usage: Only value "102"

      Rule: Only value "102"

      XPath: /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedAdvancePayment/ram:InvoiceSpecifiedReferencedDocument/ram:FormattedIssueDateTime/qdt:DateTimeString/@format

      FR: Format

      Returns:
      the BT-X-560-0 value
      Throws:
      ComputationException
      Since:
      1.09.2/2.5.2