if(partner.address){
str += '|' + partner.address;
}
+ if(partner.phone){
+ str += '|' + partner.phone.split(' ').join('');
+ }
+ if(partner.mobile){
+ str += '|' + partner.mobile.split(' ').join('');
+ }
+ if(partner.email){
+ str += '|' + partner.email;
+ }
return str + '\n';
},
add_partners: function(partners){
perform_search: function(query, associate_result){
if(query){
var customers = this.pos.db.search_partner(query);
- console.log(customers);
this.display_client_details('hide');
if ( associate_result && customers.length === 1){
this.new_client = customers[0];
<tr class='client-line' t-att-data-id='partner.id'>
<td><t t-esc='partner.name' /></td>
<td><t t-esc='partner.address' /></td>
+ <td><t t-esc='partner.phone or partner.mobile or ""' /></td>
</tr>
</t>
<tr>
<th>Name</th>
<th>Address</th>
+ <th>Phone</th>
</tr>
</thead>
<tbody class='client-list-contents'>