Index: openacs-4/packages/invoices/www/offer-ae.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/invoices/www/offer-ae.tcl,v diff -u -r1.21 -r1.22 --- openacs-4/packages/invoices/www/offer-ae.tcl 15 Mar 2006 17:05:06 -0000 1.21 +++ openacs-4/packages/invoices/www/offer-ae.tcl 2 Apr 2006 22:08:02 -0000 1.22 @@ -131,6 +131,7 @@ {title:text {label "[_ invoices.iv_offer_Title]"} {html {size 80 maxlength 1000}} {help_text "[_ invoices.iv_offer_Title_help]"}} {description:text(textarea),optional {label "[_ invoices.iv_offer_Description]"} {html {rows 5 cols 80}} {help_text "[_ invoices.iv_offer_Description_help]"}} {comment:text(textarea),optional {label "[_ invoices.iv_offer_comment]"} {html {rows 5 cols 80}} {help_text "[_ invoices.iv_offer_comment_help]"}} + {reservation:text(textarea),optional {label "[_ invoices.iv_offer_reservation]"} {html {rows 5 cols 80}} {help_text "[_ invoices.iv_offer_reservation_help]"}} } if {![empty_string_p [category_tree::get_mapped_trees $container_objects(offer_id)]]} { @@ -273,6 +274,13 @@ } else { # we are just displaying an offer + if {![empty_string_p $_credit_percent] && $_credit_percent > 0} { + set _credit_percent [format "%.1f" $_credit_percent] + ad_form -extend -name iv_offer_form -form { + {credit_percent:float {label "[_ invoices.iv_offer_credit_percent]"} {html {size 5 maxlength 10}} {help_text "[_ invoices.iv_offer_credit_percent_help]"} {value $_credit_percent} {after_html {%}}} + } + } + # display uploaded files if {[exists_and_not_null files]} { ad_form -extend -name iv_offer_form -form { @@ -686,6 +694,7 @@ -title $title \ -description $description \ -comment $comment \ + -reservation $reservation \ -offer_nr $offer_nr \ -organization_id $organization_id \ -amount_total $amount_total \ @@ -730,8 +739,9 @@ set new_offer_rev_id [iv::offer::edit \ -offer_id $offer_id \ -title $title \ - -description $description \ + -description $description \ -comment $comment \ + -reservation $reservation \ -offer_nr $offer_nr \ -organization_id $organization_id \ -amount_total $amount_total \