Le prix net de l'article DOIT être égal à (prix brut - montant de la remise) lorsque le prix brut est fourni.
Si ram:ChargeAmount est renseigné pour le prix brut, le ram:ChargeAmount du prix net n’est pas égal au prix brut moins le premier ram:ActualAmount de remise disponible. En l’absence de montant de remise, le calcul utilise zéro.
Le prix net est obtenu à partir du prix brut diminué de la remise appliquée au prix. La concordance des montants garantit que le prix net indiqué découle bien des données de prix.
Le prix net ne correspond pas au prix brut diminué de la remise indiquée au niveau du prix. Assurez-vous que ces montants concordent sur le plan arithmétique.
- Comparez
ram:ChargeAmountdansram:GrossPriceProductTradePriceavecram:ChargeAmountdansram:NetPriceProductTradePrice. - Tenez compte du premier
ram:ActualAmountde remise disponible. - Assurez-vous que le prix net est égal au prix brut diminué de cette remise.
- Générez à nouveau la facture et vérifiez-la.
<ram:GrossPriceProductTradePrice> <ram:ChargeAmount>100</ram:ChargeAmount> <ram:AppliedTradeAllowanceCharge> <ram:ActualAmount>10</ram:ActualAmount> </ram:AppliedTradeAllowanceCharge> </ram:GrossPriceProductTradePrice> <ram:NetPriceProductTradePrice> <ram:ChargeAmount>95</ram:ChargeAmount> </ram:NetPriceProductTradePrice>
<ram:GrossPriceProductTradePrice> <ram:ChargeAmount>100</ram:ChargeAmount> <ram:AppliedTradeAllowanceCharge> <ram:ActualAmount>10</ram:ActualAmount> </ram:AppliedTradeAllowanceCharge> </ram:GrossPriceProductTradePrice> <ram:NetPriceProductTradePrice> <ram:ChargeAmount>90</ram:ChargeAmount> </ram:NetPriceProductTradePrice>
Détails techniques
Si ram:ChargeAmount est absent du prix brut, le test est satisfait. Sinon, il compare le ram:ChargeAmount du prix net au prix brut diminué du premier ram:ActualAmount ; u:decimalOrZero traite un montant de remise absent comme zéro.
La règle s’applique à ram:GrossPriceProductTradePrice d’une ligne de facture et compare son ram:ChargeAmount au ram:ChargeAmount du ram:NetPriceProductTradePrice associé.
rule/@context)assert/@test)