cancel
Showing results for 
Search instead for 
Did you mean: 

Supplier Invoice - Calculate Total Amounts via Webservice

4NDR
Explorer
0 Kudos

Hello,

I'm creating a supplier invoice via webservice.

I have an operational problem: the invoice is created with net amounts and uses the taxation codes existing inside bydesign.

When the document is created the Total Gross Amount isn't determined automatically, and I would prefer to avoid calculating the total gross amount for the service call, as I do not have the percentage of taxation corresponding to the tax codes available.

Is there a way in the service call itself to tell bydesign to calculate the total gross amount, or is a call to "calculategrossamount" inside the before-save the only possible way?

Accepted Solutions (0)

Answers (1)

Answers (1)

arunml
Advisor
Advisor
0 Kudos

Hello Andrea,

I think you can try adding below tags to your payload while creating Supplier invoice.

<InvoicingPeriod>

<DocumentItemGrossAmountIndicator>true</DocumentItemGrossAmountIndicator>

<GrossAmount currencyCode="inf">1000.00</GrossAmount>

<TaxAmount currencyCode="ten">1000.00</TaxAmount>

Best Regards,

Arun

4NDR
Explorer
0 Kudos

Hello Arun,

unfortunately I do not have the gross amount available, nor the taxation percentages.

If I calculate manually the gross amount I run the risk of obtaining an approximate value that would make the supplier invoice with exception status.