Jump to content
  • 0

Prijsberekening artikel voor een standaardhoeveelheid


Grysard

Question

Posted

Gegroet FM'ers,

 

Hoe kan onderstaand probleem opgelost worden ?

 

INGAVE:

Artikelnaam: Blik, Petfles, Reep, ...

Arikelmerk: Coca Cola, Fanta, Callebaut, ...

Eenheid: 33 cl., 500 ml., 50 gr., ...

Prijs etiket: € 1,20 - € 0,50 - ...

 

BEREKENING, vermelding op etiket:

Artikelnaam CALC: Coca Cola Blik 33 cl.

--> calculatie van merk / artikelnaam / eenheid

Prijs per standaardhoeveelheid: € 3,63636363636363636363 / Lt.

--> calculatie is correct maar toont het niet correct

--> moet tonen & printen: € 3,64 / Lt.)

 

Ter verduidelijking van het probleem heb ik het bestand 'article.fp5' als voorbeeld meegestuurd.

 

Heeft iemand hieromtrent een oplossing of wat doe ik verkeerd ?

 

Mijn oprechte dank :lol::lol:

Grysard

article.fp5

4 answers to this question

Recommended Posts

  • 0
Posted

maak van het veld "total_quantity"

 

Round(

Case(

IsEmpty(quantity) or IsEmpty(unit_quantity) ; "" ;

unit_quantity = "gr." or unit_quantity = "ml." or unit_quantity = "mm." ; art_psale_etiket / quantity * 1000 ;

unit_quantity = "cl." or unit_quantity = "cm." ; art_psale_etiket / quantity * 100

)

;2)

 

hth,

Stef

  • 0
Posted

Dank U Stef

 

Die 'grote lamp' boven mij wilde maar niet oplichten deze morgen ...

Had nochtans in het uitgebreide article-bestand gewerkt met een global om de round function op te geven ...

 

Er is echter een bijkomend euvel !

Calculatie is nu correct voor resultaten met meer dan 2 cijfers na de komma, bij gehele getallen alsook bij getallen met 1 cijfer na de komma zou het resultaat toch moeten kunnen getoont worden als bvb. € 10,00 / Kg. ipv € 10 / Kg. of € 2,40 / Lt. ipv € 2,4 / Lt.

 

Bestaat er hier een manier voor ?

 

Grysard

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...