goma smile Posted August 5, 2013 Report Share Posted August 5, 2013 Sēžu otro vakaru un neliek mierā viena problēma īsāk sakot, ir prece, daudzums, +PVN 21% oky to apreiķināt izdodās, bet ir vēl iespēja ka ir papildus atlaide kkāds % no preces + Daudzums, kā to apreiķināt $kopa = ($cena * $daudzums) * 1.21; un es nevaru vidū iestampāt to bonusa atlaidīti... Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted August 5, 2013 Report Share Posted August 5, 2013 5% atlaide = 100% - 5% = 95% no cenas = cena * 0.95 Quote Link to comment Share on other sites More sharing options...
Kavacky Posted August 5, 2013 Report Share Posted August 5, 2013 Labāk būtu sēdējis skolā. Quote Link to comment Share on other sites More sharing options...
goma smile Posted August 5, 2013 Author Report Share Posted August 5, 2013 Labāk būtu sēdējis skolā. Labāk būtu nerakstījis $value->price * $value->discount / 100 Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted August 5, 2013 Report Share Posted August 5, 2013 Ko tu ar to rindiņu vēlējies pateikt? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.