Menu

currency

tango73
2014-10-31
2014-11-03
  • tango73

    tango73 - 2014-10-31

    Hi there,

    I would like to add CHF currency for the contract management. Do you know how to do this ?
    I tried to change the mysql table "contracts" :
    8 cost_currency enum('dollars', 'euros', 'chf')

    but it changed nothing in iTop...

    Thanks,

    Davy

     
  • Thomas

    Thomas - 2014-10-31

    Create and install a new extension (see: https://wiki.openitop.org/doku.php?id=2_0_3:customization:start)

    Add the refinement to your extensions:

     
    ...
    <field id="user-content-cost_currency" xsi:type="AttributeEnum" _delta="redefine">
              <values>
                <value>dollars</value>
                <value>euros</value>
                <value>chf</value>
              </values>
              <sql>cost_currency</sql>
              <default_value>
              <is_null_allowed>true</is_null_allowed>
              <display_style>list</display_style>
            </default_value></field>
    ...
    

    Create a dict file for formatting the new Value with:

    ...
        'Class:Contract/Attribute:cost_currency/Value:chf' => 'CHF',
        'Class:Contract/Attribute:cost_currency/Value:chf+' => '',
    ..
    

    Reinstall iTop or use the toolkit

     
    • Anwar Ahmat

      Anwar Ahmat - 2014-11-03

      Hi Thomas,

      To Create and install a new extension, I have followed the steps which was described on the web,but when I reinstall iTop,iTop could not show the new extension. I have checked the location of generated files( is in the correct place:C:\Program Files\wamp\www\itop\web\extensions\monitor),but I could not find the reason why the iTOP did not show my new extension .

      Could you help me please ?

      Thanks a lot for your help !

       
  • tango73

    tango73 - 2014-11-03

    okay, I'm going to try that ;) thanks !

     

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.