Class ContractReference

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

public class ContractReference extends Object implements Reference
BT-12-00 (CONTRACT REFERENCE).

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

Business terms and groups implemented
RepresentsBT-12-00
Business terms (value fields)BT-X-148, BT-X-148-0, BT-X-405, BT-12
Since:
1.0.06/2.2
  • Method Details

    • setID

      public ContractReference setID(String value)
      Sets BT-12 Contract reference — The identification of a contract.

      Usage: The contract identifier should be unique in the context of the specific trading relationship and for a defined time period.

      Conditions (CIUS): CHORUSPRO : This is the "numéro de Marché" (contract number)

      XPath: /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:ContractReferencedDocument/ram:IssuerAssignedID

      FR: Identifiant de contrat — Identifiant d'un contrat.

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

      public ContractReference setDate(LocalDate value)
      Sets BT-X-148 Contract date.

      XPath: /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:ContractReferencedDocument/ram:FormattedIssueDateTime/qdt:DateTimeString

      FR: Date du contrat, valeur

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

      public ContractReference setContractCodeType(Codes.ReferenceCodeIdentifier value)
      Sets BT-X-405 Contract Code Type — Type of contract

      Usage: Use codes from UNTDID 1153

      Conditions (CIUS): CHORUSPRO: To qualify a contract (CT) or a procurement contract "Marché" (BC)

      XPath: /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:ContractReferencedDocument/ram:ReferenceTypeCode

      FR: Code de type de Contrat — Qualifie le type de Contrat

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

      public String getID()
      Returns BT-12 Contract reference — The identification of a contract.

      Usage: The contract identifier should be unique in the context of the specific trading relationship and for a defined time period.

      Conditions (CIUS): CHORUSPRO : This is the "numéro de Marché" (contract number)

      XPath: /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:ContractReferencedDocument/ram:IssuerAssignedID

      FR: Identifiant de contrat — Identifiant d'un contrat.

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

      public LocalDate getDate()
      Returns BT-X-148 Contract date.

      XPath: /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:ContractReferencedDocument/ram:FormattedIssueDateTime/qdt:DateTimeString

      FR: Date du contrat, valeur

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

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

      Usage: Only value "102"

      Rule: Only value "102"

      XPath: /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:ContractReferencedDocument/ram:FormattedIssueDateTime/qdt:DateTimeString/@format

      FR: Date, format

      Returns:
      the BT-X-148-0 value
      Throws:
      ComputationException
      Since:
      1.09.2/2.5.2
    • getContractCodeType

      public Codes.ReferenceCodeIdentifier getContractCodeType()
      Returns BT-X-405 Contract Code Type — Type of contract

      Usage: Use codes from UNTDID 1153

      Conditions (CIUS): CHORUSPRO: To qualify a contract (CT) or a procurement contract "Marché" (BC)

      XPath: /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:ContractReferencedDocument/ram:ReferenceTypeCode

      FR: Code de type de Contrat — Qualifie le type de Contrat

      Returns:
      the BT-X-405 value
      Since:
      1.09.2/2.5.2