Skip to content
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

ActualAmount should exist maximum once; Invalid xml #663

Open
ozonni opened this issue Jan 10, 2025 · 5 comments
Open

ActualAmount should exist maximum once; Invalid xml #663

ozonni opened this issue Jan 10, 2025 · 5 comments

Comments

@ozonni
Copy link

ozonni commented Jan 10, 2025

having allowance and charge for the same line item, generates invalid xml

<ram:AppliedTradeAllowanceCharge>
            <ram:ChargeIndicator>
              <udt:Indicator>false</udt:Indicator>
            </ram:ChargeIndicator>
            <ram:ActualAmount>0.8000</ram:ActualAmount>
            <ram:Reason>WAT Reason 10</ram:Reason>
          </ram:AppliedTradeAllowanceCharge>
          <ram:AppliedTradeAllowanceCharge>
            <ram:ChargeIndicator>
              <udt:Indicator>true</udt:Indicator>
            </ram:ChargeIndicator>
            <ram:ActualAmount>0.6000</ram:ActualAmount>
            <ram:Reason>WAT Reason 150</ram:Reason>
          </ram:AppliedTradeAllowanceCharge>

image

@ozonni
Copy link
Author

ozonni commented Jan 10, 2025

@oriol
Copy link

oriol commented Jan 11, 2025

Hi @ozonni, In case you are trying to add a charge, shouldn't you use this?

BT-141 1..1 Invoice line charge amount - The amount of a charge, without VAT.

/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ActualAmount

@ozonni
Copy link
Author

ozonni commented Jan 11, 2025

@oriol how to do it in Mustang?

@ozonni
Copy link
Author

ozonni commented Jan 11, 2025

i'm using this APIs https://www.mustangproject.org/invoice-class/#charges and that's the result i get

@oriol
Copy link

oriol commented Jan 11, 2025

looks like Mustang should correct his mapping for the charges...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants