Changeset 12762 for main/waeup.ikoba/trunk/src/waeup/ikoba/customers
- Timestamp:
- 14 Mar 2015, 13:49:29 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba/customers
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser.py
r12760 r12762 50 50 payment_states 51 51 ) 52 from waeup.ikoba.payments.catalog import search as search_payments 52 53 from waeup.ikoba.widgets.hrefwidget import HREFDisplayWidget 53 54 from waeup.ikoba.utils.helpers import ( … … 59 60 IContractSelectProduct, 60 61 ) 61 from waeup.ikoba.customers.catalog import search 62 from waeup.ikoba.customers.catalog import search as search_customers 62 63 from waeup.ikoba.customers.workflow import PAYMENT_TRANSITIONS 63 64 … … 160 161 type="danger") 161 162 return 162 self.hitlist = search (query=self.searchterm,163 self.hitlist = search_customers(query=self.searchterm, 163 164 searchtype=self.searchtype, view=self) 164 165 if not self.hitlist: … … 203 204 return 204 205 if not 'entries' in form: 205 self.hitlist = search (query=self.searchterm,206 self.hitlist = search_customers(query=self.searchterm, 206 207 searchtype=self.searchtype, view=self) 207 208 if not self.hitlist: … … 218 219 del self.context[entry] 219 220 deleted.append(entry) 220 self.hitlist = search (query=self.searchterm,221 self.hitlist = search_customers(query=self.searchterm, 221 222 searchtype=self.searchtype, view=self) 222 223 if len(deleted): … … 1729 1730 1730 1731 def payments(self): 1731 values = [] 1732 payable = None 1733 for payment in get_payments_from_payer_id( 1734 self.context.customer.customer_id): 1735 payable_object = find_payable_from_payable_id(payment.payable_id) 1736 if payable_object is not None: 1737 payable = IPayable(payable_object) 1738 values.append((payment, payable, payable_object)) 1739 return values 1732 return search_payments( 1733 query=self.context.customer_id, searchtype='payer_id') -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser_templates/paymentspage.pt
r12757 r12762 1 1 <br /> 2 <table class="ikoba-data-table dataTable Manage">2 <table class="ikoba-data-table dataTable"> 3 3 <thead> 4 4 <tr> … … 20 20 <td tal:content="python: view.gateway_services[value[0].gateway_service].title">SERVICE</td> 21 21 <td tal:content="python: value[0].amount">AMOUNT</td> 22 <td tal:content="python: value[0].currency"> AMOUNT</td>22 <td tal:content="python: value[0].currency">CURRENCY</td> 23 23 <td tal:content="python: view.payment_states.getTerm(value[0].state).title">STATE</td> 24 24 <td> -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/viewlets.py
r12757 r12762 166 166 text = _(u'Documents') 167 167 168 168 169 class CustomerManagePaymentsLink(CustomerManageLink): 169 170 grok.order(5)
Note: See TracChangeset for help on using the changeset viewer.