Au maximum une remise sur le prix brut

Erreur FX-SCH-A-000274 Factur-X

La variante d'élément 'ram:AppliedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator="false"]' ne peut apparaître qu'une fois au maximum.

Règle obligatoire : tant qu'elle n'est pas respectée, la facture est invalide et sera rejetée par les validateurs.
Ce qui ne va pas

Plus d’un élément ram:AppliedTradeAllowanceCharge avec ram:ChargeIndicator égal à false est présent sous ram:GrossPriceProductTradePrice. Cela indique plusieurs remises sur ce prix brut.

Ce que signifie la règle

La règle limite à un le nombre d’éléments ram:AppliedTradeAllowanceCharge marqués comme remise sur le prix brut d’une ligne de facture.

Veuillez indiquer au maximum une remise sur le prix brut

Plusieurs remises sont indiquées sur le prix brut d’une ligne de facture. Vous pouvez limiter cette information à une seule remise.

Que faire ?
  1. Repérez ram:GrossPriceProductTradePrice de la ligne de facture concernée.
  2. Comptez les éléments ram:AppliedTradeAllowanceCharge dont ram:ChargeIndicator a la valeur false et n’en conservez pas plus d’un.
  3. Générez à nouveau la facture et vérifiez-la de nouveau.
À quoi cela ressemble
✗ Déclenche le message
<ram:GrossPriceProductTradePrice>
  <ram:AppliedTradeAllowanceCharge>
    <ram:ChargeIndicator>
      <udt:Indicator>false</udt:Indicator>
    </ram:ChargeIndicator>
  </ram:AppliedTradeAllowanceCharge>
  <ram:AppliedTradeAllowanceCharge>
    <ram:ChargeIndicator>
      <udt:Indicator>false</udt:Indicator>
    </ram:ChargeIndicator>
  </ram:AppliedTradeAllowanceCharge>
</ram:GrossPriceProductTradePrice>
✓ Correct
<ram:GrossPriceProductTradePrice>
  <ram:AppliedTradeAllowanceCharge>
    <ram:ChargeIndicator>
      <udt:Indicator>false</udt:Indicator>
    </ram:ChargeIndicator>
  </ram:AppliedTradeAllowanceCharge>
</ram:GrossPriceProductTradePrice>
Détails techniques

Le contrôle compte les éléments ram:AppliedTradeAllowanceCharge avec ram:ChargeIndicator/udt:Indicator="false" sous ram:GrossPriceProductTradePrice ; le nombre ne doit pas dépasser un.

Où la règle s'applique

La règle s’applique à ram:GrossPriceProductTradePrice d’une ligne de facture. Elle concerne les éléments enfants ram:AppliedTradeAllowanceCharge dont ram:ChargeIndicator a la valeur false.

Message d'origine du Schematron
Element variant 'ram:AppliedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator="false"]' may occur at maximum 1 times.
Contexte (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeAgreement/ram:GrossPriceProductTradePrice
Expression de contrôle (assert/@test)
count(ram:AppliedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator="false"])<=1