La variante d'élément 'ram:AppliedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator="false"]' ne peut apparaître qu'une fois au maximum.
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.
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.
Plusieurs remises sont indiquées sur le prix brut d’une ligne de facture. Vous pouvez limiter cette information à une seule remise.
- Repérez
ram:GrossPriceProductTradePricede la ligne de facture concernée. - Comptez les éléments
ram:AppliedTradeAllowanceChargedontram:ChargeIndicatora la valeurfalseet n’en conservez pas plus d’un. - Générez à nouveau la facture et vérifiez-la de nouveau.
<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>
<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.
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.
rule/@context)assert/@test)