Menu

Both netto and bruto price

Help 2.02
2003-05-07
2003-05-07
  • De Potter Rudy

    De Potter Rudy - 2003-05-07

    Is it possible to show both bruto price (including VAT) and netto price (no VAT) in "detail.php" line 46 ?

     
    • Andreas Kansok

      Andreas Kansok - 2003-05-07

      Different ways are possible:

      - Copy function showprice() (located in functions.inc.php) into shownettoprice() and remove all VAT calculatings.
      Then you can output this value anywhere like showprice() does now.

      - You include Netto-price creation into function showprice(). But then both price are visible also in product overview and so on. I don't now, if you need this.

      - Output the result of  SQLquery "SELECT price.value FROM price WHERE price.itemID='$art' AND price.curID='$curID'" directly in detail.php somewhere. I think that' not so nice, because you have the value only in detail.php. Perhaps you need Netto-price next month somewehere else ;-)

      First way is recommended.

      Greetings,
      Andreas.

       
      • De Potter Rudy

        De Potter Rudy - 2003-05-07

        The second part is the best thing, with the Netto)price creation into function showprice.

         
        • Andreas Kansok

          Andreas Kansok - 2003-05-07

          As you like it ;-)
          But show_item* uses also showprice().

           

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.