Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Guys
I need help the discount for Selling Form the total and the profit of goods,

for example: (
export invoice
)

Total: 303000 US
Discount: 3000 US
Remaining Total: 300000 US

Profit: 2500 US
Discount: 3000 US
Remaining Profit: ?????
How will be the remaining profit will be.

I wrote this formula in my code is this right?

What I have tried:

Profit = Profit - (Discount / Total)
Posted
Updated 8-Apr-22 5:03am

1 solution

Profit isn't related directly to the total price or to a discount: it's the amount left when you subtract the cost of manufacture and cost of sales from the price sold for.

So a discount will reduce profit, but you need to know the cost before you can work out by how much!

If you know the profit and the discount, you can't estimate what a "remaining profit" might be without knowing either the cost or the sales price.
 
Share this answer
 
Comments
Karam Ibrahim 8-Apr-22 15:27pm    
Yes, I know the profit is (selling price - buying price) * quantity, so, when I discount the amount from the total invoice, I cannot do it for profit invoice?
However, I want it to discount each item automatically because I know how to get the profit for each good. As I mention, I want to discount each item.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900