Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-12896

Price datatype fromString takes VAT id as flag wether VAT is included in the price or not

    XMLWordPrintable

Details

    Description

      From http://pubsvn.ez.no/nextgen/trunk/doc/features/3.9/to_from_string_datatype_functionality.txt:

      ezprice
      '|' separated list of price, VAT id, and flag wether VAT is included to the price or not.

      in eZPriceType::fromString(...):

              $priceData = explode( '|', $string );
      ...
              $dataText = $priceData[1] . ',' . $priceData[1];
              $price = $priceData[0];
      
              $contentObjectAttribute->setAttribute( "data_float", $price );
              $contentObjectAttribute->setAttribute( 'data_text', $dataText );
      

      $dataText = $priceData[1] . ',' . $priceData[1]; should be:

      $dataText = $priceData[1] . ',' . $priceData[2];
      

      Attachments

        Activity

          People

            cyberwolf cyberwolf
            cyberwolf cyberwolf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: