- Date Range:
+ #invoices.Date_Range#
|
Index: openacs-4/packages/invoices/lib/offer-items-list.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/invoices/lib/offer-items-list.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/invoices/lib/offer-items-list.tcl 3 Nov 2005 21:09:24 -0000 1.2
+++ openacs-4/packages/invoices/lib/offer-items-list.tcl 3 Nov 2005 22:49:12 -0000 1.3
@@ -18,7 +18,7 @@
}
if { [exists_and_not_null date_range] } {
- set date_range [lc_time_fmt $date_range %y-%m-%d]
+ catch { set date_range [lc_time_fmt $date_range %y-%m-%d] } errMsg
}
if {![info exist filters_p] } {
@@ -83,7 +83,7 @@
lappend multirow_extend category_$cat_id
if { [exists_and_not_null category_id] } {
set label "$cat_name"
- append label " (clear)"
+ append label " ([_ invoices.clear])"
} else {
set label "$cat_name"
}
@@ -93,20 +93,20 @@
}
}
-lappend elements item_title [list label "Offer Item Title"] \
- final_amount [list label "Final Ammount"] \
- offer_title [list label "Offer Title" \
+lappend elements item_title [list label "[_ invoices.Offer_Item_Title]"] \
+ final_amount [list label "[_ invoices.Final_Amount]"] \
+ offer_title [list label "[_ invoices.Offer_Title]" \
display_template {
@offer_items.offer_title@
} ] \
- rebate [list label "Rebate" \
+ rebate [list label "[_ invoices.Rebate]" \
display_template {
@offer_items.rebate@ %
}
] \
- item_id [list label "Item Id"] \
- offer_item_id [list label "Offer Item Id"] \
- creation_date [list label "Creation Date"] \
+ item_id [list label "[_ invoices.Item_Id]"] \
+ offer_item_id [list label "[_ invoices.Offer_Item_Id]"] \
+ creation_date [list label "[_ invoices.Creation_Date]"] \
month [list label ""]
@@ -135,9 +135,9 @@
set groupby_values {
- { "Customer" { { groupby organization_id } { orderby organization_id,desc } } }
- { "Category" { { groupby category_id } { orderby cateogory_id,desc } } }
- { "Month" { { groupby month } { orderby time_stamp,desc } } }
+ { "#invoices.Customer#" { { groupby organization_id } { orderby organization_id,desc } } }
+ { "#invoices.Category#" { { groupby category_id } { orderby cateogory_id,desc } } }
+ { "#invoices.Month#" { { groupby month } { orderby time_stamp,desc } } }
}
@@ -151,12 +151,12 @@
-orderby_name offer_items_orderby \
-orderby {
item_title {
- label {Offer Item Title}
+ label { [_ invoices.Offer_Item_Title] }
orderby_desc { lower(oi.title) desc }
orderby_asc { lower(oi.title) asc }
}
offer_title {
- label "Offer Title"
+ label "[_ invoices.Offer_Title]"
orderby_desc { lower(o.title) desc }
orderby_asc { lower(o.title) asc }
}
@@ -167,7 +167,7 @@
-page_query_name "offer_items_paginated" \
-pass_properties return_url \
-groupby {
- label "Group By"
+ label "[_ invoices.Group_by]:"
type multivar
values $groupby_values
} \
@@ -186,7 +186,7 @@
db_multirow -extend $multirow_extend offer_items offer_items { } {
set final_amount [expr [expr $price_per_unit * $item_units] - [expr $rebate * $price_per_unit * $item_units]]
if { $categories_p } {
- set category_$category_id "Mapped"
+ set category_$category_id "[_ invoices.Mapped]"
}
set project_item_id [lindex [application_data_link::get_linked -from_object_id $item_id -to_object_type content_item] 0]
if { $project_status_p } {
Index: openacs-4/packages/invoices/lib/offer-list.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/invoices/lib/offer-list.tcl,v
diff -u -r1.7 -r1.8
--- openacs-4/packages/invoices/lib/offer-list.tcl 21 Oct 2005 16:13:29 -0000 1.7
+++ openacs-4/packages/invoices/lib/offer-list.tcl 3 Nov 2005 22:49:12 -0000 1.8
@@ -21,7 +21,8 @@
}
}
}
-# set status_id 2
+
+#set status_id 2
# db_1row get_offer_status_id {}
if {![info exists status_id]} {
db_1row get_offer_status_id {}
Index: openacs-4/packages/invoices/lib/offer-list.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/invoices/lib/offer-list.xql,v
diff -u -r1.6 -r1.7
--- openacs-4/packages/invoices/lib/offer-list.xql 14 Oct 2005 06:25:03 -0000 1.6
+++ openacs-4/packages/invoices/lib/offer-list.xql 3 Nov 2005 22:49:12 -0000 1.7
@@ -21,7 +21,8 @@
to_char(t.accepted_date, :timestamp_format) as accepted_date,
to_char(t.finish_date, :timestamp_format) as finish_date,
pi.item_id as project_id, pr.title as project_title, t.status,
- pp.contact_id, p2.first_names as contact_first_names,
+ pp.contact_id,
+ p2.first_names as contact_first_names,
p2.last_name as contact_last_name
from cr_folders cf, cr_revisions cr, iv_offers t,
acs_objects o, persons p, cr_items ci, acs_rels r,
Index: openacs-4/packages/invoices/www/invoice-ae.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/invoices/www/invoice-ae.tcl,v
diff -u -r1.11 -r1.12
--- openacs-4/packages/invoices/www/invoice-ae.tcl 27 Oct 2005 18:11:24 -0000 1.11
+++ openacs-4/packages/invoices/www/invoice-ae.tcl 3 Nov 2005 22:49:12 -0000 1.12
@@ -87,8 +87,8 @@
set recipient_options [db_list_of_lists credit_recipients {}]
} else {
# normal invoice: get recipients from projects
- # set recipient_options [db_list_of_lists recipients {}]
- set recipient_options [wieners::get_recipients -customer_id $organization_id]
+ set recipient_options [db_list_of_lists recipients {}]
+ #set recipient_options [wieners::get_recipients -customer_id $organization_id]
}
Index: openacs-4/packages/invoices/www/invoice-items.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/invoices/www/invoice-items.adp,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/invoices/www/invoice-items.adp 2 Nov 2005 23:11:05 -0000 1.1
+++ openacs-4/packages/invoices/www/invoice-items.adp 3 Nov 2005 22:49:12 -0000 1.2
@@ -3,4 +3,15 @@
@context;noquote@
Index: openacs-4/packages/invoices/www/invoice-items.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/invoices/www/invoice-items.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/invoices/www/invoice-items.tcl 2 Nov 2005 23:11:05 -0000 1.1
+++ openacs-4/packages/invoices/www/invoice-items.tcl 3 Nov 2005 22:49:12 -0000 1.2
@@ -1,2 +1,23 @@
-set page_title ""
-set context [list $page_title]
\ No newline at end of file
+# /packages/invoices/www/invoice-items.tcl
+
+ad_page_contract {
+ Show all invoices items
+
+ @author Miguel Marin (miguelmarin@viaro.net)
+ @author Viaro Networks www.viaro.net
+} {
+ {page "1"}
+ {iv_items_orderby ""}
+ {category_id ""}
+ {filter_package_id ""}
+ {customer_id ""}
+ {date_range ""}
+ {project_status_id ""}
+ {groupby ""}
+}
+
+set page_title "[_ invoices.Invoices_items]"
+set context [list $page_title]
+
+set elements [list item_title final_amount invoice_title rebate categories]
+set filters_p 1
\ No newline at end of file
|