Hello,
I'm building a JobBoard like Database.Fellows can put in the jobs they
have done, the time they need(for scanning or programming) and the budget of
the project should be updated depending on the job and the time they needed.  
Building the instances was no problem but my problem is the budgetupdate.
This is the script;  Thanks!!     ->
without the if-statement it's working!!
<dtml-call "REQUEST.set('job', job)">
<dtml-call "REQUEST.set('time',time)">
<dtml-call "REQUEST.set('user',_.str(REQUEST['AUTHENTICATED_USER']))">
<dtml-call "REQUEST.set('title', user +' - '+ TS )">
<dtml-call "REQUEST.set('value',REQUEST.form['value'])">


<dtml- if "_.str(REQUEST['job']) == _.str('scanning')>
   <dtml-call "REQUEST.set('valueAfter',value - (20*time))">
<else>
   <dtml-call "REQUEST.set('valueAfter',value - (10*time))">
</dtml- if>
<dtml-call "REQUEST.set('Budget',valueAfter)">
<dtml-with "manage_addProduct['DBank']">

<dtml-call "eingang_DB_add (_.None, _, NoRedir=1)">
</dtml-with>


-- 
Sent through GMX FreeMail - http://www.gmx.net


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to