Coder Social home page Coder Social logo

Comments (7)

shtrip avatar shtrip commented on August 18, 2024

Which property did you use to update the amount? As far as I know the amount can't be changed directly, it is calculated from price, quantity and discount.

Indeed PATCH would be the correct verb for partial updates but the current implementation of the service is handling this through PUT requests.

from exactonline-api-dotnet-client.

martijnboland avatar martijnboland commented on August 18, 2024

My bad, I meant quantity instead of amount.

from exactonline-api-dotnet-client.

shtrip avatar shtrip commented on August 18, 2024

My test application is failing to cooperate so I'm having some trouble reproducing this. A test using Postman worked fine, the unit price and discount were not cleared.

Did you do a GET on the SalesOrderLine after updating the quantity ? Did you also check these values in the Exact Online web application ?

from exactonline-api-dotnet-client.

martijnboland avatar martijnboland commented on August 18, 2024

I checked in the Exact Online web application. I'll try if I can reproduce
an example PUT request.

On Friday, April 17, 2015, shtrip [email protected] wrote:

My test application is failing to cooperate so I'm having some trouble
reproducing this. A test using Postman worked fine, the unit price and
discount were not cleared.

Did you do a GET on the SalesOrderLine after updating the quantity ? Did
you also check these values in the Exact Online web application ?


Reply to this email directly or view it on GitHub
#7 (comment).

from exactonline-api-dotnet-client.

martijnboland avatar martijnboland commented on August 18, 2024

The following json payload is generated by the client sdk when only the quantity of a SalesOrderLine has changed:

{
    "AmountDC": null,
    "AmountFC": null,
    "Quantity": 2.0,
    "QuantityDelivered": null,
    "QuantityInvoiced": null,
    "UnitCode": null,
    "VATAmount": null,
    "VATCodeDescription": null,
    "VATPercentage": null
}

After this, the Unit price and net price are reset to 0.00.

from exactonline-api-dotnet-client.

shtrip avatar shtrip commented on August 18, 2024

Thanks, this is very clear. Only the Quantity should be in there. This is a bug.

from exactonline-api-dotnet-client.

shtrip avatar shtrip commented on August 18, 2024

This is fixed through pull request 57.

from exactonline-api-dotnet-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.