fix MS SQL script error

Suoritettu Julkaistu 2 vuotta sitten Maksettu toimituksen yhteydessä
Suoritettu Maksettu toimituksen yhteydessä

Hi,

We have a script to calculate Item price and VAT.

We get a wrong result in terms of precision.

IMPORTANT: variable must be the type of decimal(9, 4) and using of TRUNCATE is not allowed

Let's say the unit price Includes tax = 2.1, and Exclude tax = 1.8261,

we need 1000 items so the total cost Includes VAT should be 2100 (Unit price Inc. VAT * Quantity).

Now, let us calculate it by the unit price excluding the VAT.

First, we find the taxable amount which is (Unit price * quantity) is 1826.1

The tax is 15%, so we compute the VAT, which is (taxable amount * tax rate) is 273.9150

Finally, we need to find the total include tax which is (Taxable amount + VAT) the result is 2100.02

That's unexpected! We expect 2100.

How to solve this issue

Microsoft SQL Server SQL Tietokannan hallinto

Projektin tunnus: #32229441

Tietoa projektista

8 ehdotusta Etäprojekti Aktiivinen 2 vuotta sitten

Myönnetty käyttäjälle:

Ghazik

Hello I am ready to work on your fix MS SQL script error task. please send me message for further discussion. Thanks

$10 USD 7 päivässä
(0 Arvostelua)
0.0

8 freelanceria on tarjonnut keskimäärin $21 tähän työhön

aap31374

I have more than 15 years of experience in SQL Server database modelling, design, development, and Administration. I have worked for database designing and modelling of complex business an efficient way. I have very g Lisää

$25 USD 7 päivässä
(5 arvostelua)
3.3
skyappweb

Mobile Apps Development expert with several apps listed in own Google Play Store Account Start-to-end Web & Mobile apps development We’re empowering teams to achieve greatness together. We are a passionate team of s Lisää

$25 USD 3 päivässä
(0 arvostelua)
0.0
akiramayya05

I have strong knowledge on SQL tables. I have created 50+ tables and Stored Procedures I have written lot of complex queries also. Please contact through chat, i will start your work if you ok .

$20 USD 7 päivässä
(0 arvostelua)
0.0
rsinghrahul

I am a certified MySQL developer. Working as a professional software Engineer in TCS. I have good and long term experience in writing sql queries.

$20 USD 5 päivässä
(0 arvostelua)
0.0
abmojahed

dear, im expert at mssql server i can help you to rezovled you problem a full stack developer with more than 20+ years of experience. Regards

$30 USD 2 päivässä
(0 arvostelua)
0.0
m7almasoud

Hello I am a database developer and I have done something like that before. For more details contact me.

$10 USD 1 päivässä
(1 arvostelu)
0.0