edusource / quickbooks.net Goto Github PK
View Code? Open in Web Editor NEWAPI Client for QuickBooks written for Dotnet Core
License: MIT License
API Client for QuickBooks written for Dotnet Core
License: MIT License
Can This Be Used With QuickBooks Desktop And QuickBooks Desktop Web Connector?
Basically what the title states...
Have absolutely no idea on how to fix this issue.
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.
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.
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?)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.