Skip to content

Multiple allowances on one item #395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
WorkProg opened this issue Sep 30, 2024 · 0 comments
Closed

Multiple allowances on one item #395

WorkProg opened this issue Sep 30, 2024 · 0 comments

Comments

@WorkProg
Copy link

WorkProg commented Sep 30, 2024

An item with multiple allowances seems to be allowed by the standard AFAIK, but is rejected by this validator with "ActualAmount should exist maximum once".
The offending line is probably

<assert id="CII-SR-440" flag="fatal" test="count(ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge/ram:ActualAmount) &lt;= 1">[CII-SR-440] - ActualAmount should exist maximum once</assert>
as this only checks that there is one ActualAmount per item but not per allowance (AppliedTradeAllowanceCharge) on an item.

<ram:SpecifiedLineTradeAgreement>
  <ram:GrossPriceProductTradePrice>
    <ram:ChargeAmount>30.0000</ram:ChargeAmount>
    <ram:BasisQuantity unitCode="C62">1.0000</ram:BasisQuantity>
    <ram:AppliedTradeAllowanceCharge>
      <ram:ChargeIndicator>
        <udt:Indicator>false</udt:Indicator>
      </ram:ChargeIndicator>
      <ram:ActualAmount>3.0000</ram:ActualAmount>
      <ram:Reason>Voucher Name</ram:Reason>
    </ram:AppliedTradeAllowanceCharge>
    <ram:AppliedTradeAllowanceCharge>
      <ram:ChargeIndicator>
        <udt:Indicator>false</udt:Indicator>
      </ram:ChargeIndicator>
      <ram:ActualAmount>2.0000</ram:ActualAmount>
    </ram:AppliedTradeAllowanceCharge>
  </ram:GrossPriceProductTradePrice>
  <ram:NetPriceProductTradePrice>
    <ram:ChargeAmount>25.0000</ram:ChargeAmount>
    <ram:BasisQuantity unitCode="C62">1.0000</ram:BasisQuantity>
  </ram:NetPriceProductTradePrice>
</ram:SpecifiedLineTradeAgreement>
@oriol oriol added this to the 1.3.13 (Nov-24) milestone Oct 3, 2024
@oriol oriol closed this as completed in bef4697 Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants