Class PrecedingInvoiceReference

java.lang.Object
com.fourjs.report.facturx.profiles.basic.PrecedingInvoiceReference
All Implemented Interfaces:
Reference

public class PrecedingInvoiceReference extends Object implements Reference
BG-3 PRECEDING INVOICE REFERENCE — A group of business terms providing information on one or more preceding Invoices.

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

Business terms and groups implemented
RepresentsBG-3
Business terms (value fields)BT-25, BT-26, BT-26-0

Documentation of the represented business group:

BG-3 — PRECEDING INVOICE REFERENCE
DescriptionENA group of business terms providing information on one or more preceding Invoices.
FRGroupe de termes métiers fournissant des informations sur une Facture antérieure qui doit être rectifiée ou faire l’objet d’une facture d’avoir.
Usage noteENTo be used in case: - a preceding invoice is corrected - preceding partial invoices are refered to from a final invoice - preceding pre-payment invoices are refered to from a final invoice
FRÀ utiliser dans les cas suivants : - la correction d'une facture précédente- la facture finale faisant référence à des factures partielles précédentes- la facture finale faisant référence à des factures de pré-paiement précédentes
Conditions (CIUS)ENThis business group is mandatory in case of a Credit Note in order to reference the invoices it credits, unless the Credit Note refers to a period which must then be present in group BG-14.
FRCe groupe est obligatoire en cas d'avoir pour référencer la ou les facture(s) auxquelle(s) l'avoir se réfère, sauf si l'avoir se réfère à une période qui doit alors être renseignée dans le groupe BG-14.
Since:
1.0.06/2.2
  • Method Details

    • setID

      public PrecedingInvoiceReference setID(String value)
      Sets BT-25 Preceding Invoice reference — The identification of an Invoice that was previously sent by the Seller.

      Rule: BR-55: Each Preceding Invoice reference (BG-3) shall contain a Preceding Invoice reference (BT-25).

      XPath: /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceReferencedDocument/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 PrecedingInvoiceReference for chaining
      Since:
      1.09.2/2.5.2
    • setDate

      public PrecedingInvoiceReference setDate(LocalDate value)
      Sets BT-26 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:InvoiceReferencedDocument/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 PrecedingInvoiceReference for chaining
      Since:
      1.09.2/2.5.2
    • getID

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

      Rule: BR-55: Each Preceding Invoice reference (BG-3) shall contain a Preceding Invoice reference (BT-25).

      XPath: /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceReferencedDocument/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-25 value
      Since:
      1.09.2/2.5.2
    • getDate

      public LocalDate getDate()
      Returns BT-26 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:InvoiceReferencedDocument/ram:FormattedIssueDateTime/qdt:DateTimeString

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

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

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

      Usage: Only value "102"

      Rule: Only value "102"

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

      FR: Format

      Returns:
      the BT-26-0 value
      Throws:
      ComputationException
      Since:
      1.0.06/2.2