Coder Social home page Coder Social logo

quickbooks.net's People

Contributors

benaduggan avatar chrismeller avatar rszemplinski avatar ryandanthony avatar tory-harter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

quickbooks.net's Issues

CreateSalesReceiptAsync fails with any discount line.

I was trying to create a sales receipt and found that no matter how I coded it up it was always throwing a Quickbooks error:
"You can't set both an amount and a discount percentage if the amount is not the sum of the discount percentage and the subtotal."

I struggled with this for some time trying different things to try and get around the error.

  1. Tried removing the line amount and only putting in a discount percentage. This did not work, the same error persisted.
  2. Tried removing the discount line details.
  3. Tried adding a DiscountAccountRef.

I then went into Postman and ran a few tests. Posting a successful discount line and then duplicating what I thought was happening by posting a discount line with both an amount and a percentage of 0. And sure enough it came back with the same error.
What I think is happening is the DiscountLineDetail object has the DiscountPercent property set as a non-nullable type of decimal. When the JSON serializer, serializes this object it defaults the DiscountPercent value to 0. When the request is sent to Quickbooks it always throws an error since it is always sending both a line amount and a discount percentage.
Making either or, both the Amount property and the DiscountPercent property to be nullable type decimal datatypes should correct the problem.

Target of netcore does not allow to be used in full framework...

I wanted to use your API wrapper in a full .net framework implementation. However, because you targeted .netcore specifically, it does not allow to be used in a full environment. Did you mean to target netstandard instead?

Is there a reason this could not run on a full .net framework (such as 4.6.x?)

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.