Class ExtendedPrecedingInvoiceReference


  • public class ExtendedPrecedingInvoiceReference
    extends Object
    EXT:PRECEDING INVOICE REFERENCE

    A group of business terms providing information on one preceding Invoice (in case of multiple preceding invoice)

    To be used in case:- a preceding invoice is corrected- preceding partial invoices are referred to from a final invoice-preceding pre-payment invoices are referred to from a final invoice

    This business group is mandatory in case of a Credit Note which needs to reference more than one invoices it credits, unless the Credit Note refers to a period which must then be present in group BG-14.

    XPath:/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:InvoiceReferencedDocument

    • Method Detail

      • setPrecedingInvoiceReference

        public ExtendedPrecedingInvoiceReference setPrecedingInvoiceReference​(DocumentReference value)
        Parameters:
        value - EXT:Preceding Invoice reference

        The identification of an Invoice that was previously sent by the Seller.

        XPath:/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:InvoiceReferencedDocument/ram:IssuerAssignedID

        Returns:
        ExtendedPrecedingInvoiceReference
      • setPrecedingInvoiceTypecode

        public ExtendedPrecedingInvoiceReference setPrecedingInvoiceTypecode​(Codes.InvoiceTypeCode value)
        Parameters:
        value - EXT:Preceding invoive TypeCode

        The type of preceding Invoice Document

        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:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:InvoiceReferencedDocument/ram:TypeCode

        Returns:
        ExtendedPrecedingInvoiceReference
      • setPrecedingInvoiceIssueDate

        public ExtendedPrecedingInvoiceReference setPrecedingInvoiceIssueDate​(LocalDate value)
        Parameters:
        value - EXT:Preceding Invoice issue date

        The date when the Preceding Invoice was issued.

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

        XPath:/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:InvoiceReferencedDocument/ram:FormattedIssueDateTime/qdt:DateTimeString

        Returns:
        ExtendedPrecedingInvoiceReference
      • getPrecedingInvoiceReference

        public DocumentReference getPrecedingInvoiceReference()
        EXT:Preceding Invoice reference

        The identification of an Invoice that was previously sent by the Seller.

        Returns:
        the value /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:InvoiceReferencedDocument/ram:IssuerAssignedID
      • getPrecedingInvoiceTypecode

        public Codes.InvoiceTypeCode getPrecedingInvoiceTypecode()
        EXT:Preceding invoive TypeCode

        The type of preceding Invoice Document

        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

        Returns:
        the value /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:InvoiceReferencedDocument/ram:TypeCode
      • getDateFormat

        public Codes.DateFormat getDateFormat()
                                       throws ComputationException
        EXT:Date format

        Value = 102

        Only value "102"

        Returns:
        a computed value unless an explicit value has been set and Invoice.setRecompute(boolean) has been called with a value of false in which case the value /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:InvoiceReferencedDocument/ram:FormattedIssueDateTime/qdt:DateTimeString/@format is returned
        Throws:
        ComputationException
      • getPrecedingInvoiceIssueDate

        public LocalDate getPrecedingInvoiceIssueDate()
        EXT:Preceding Invoice issue date

        The date when the Preceding Invoice was issued.

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

        Returns:
        the value /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:InvoiceReferencedDocument/ram:FormattedIssueDateTime/qdt:DateTimeString