Merge branch 'develop' into develop
This commit is contained in:
@@ -100,7 +100,12 @@ function load_erpnext_slides() {
|
||||
fy = ["01-01", "12-31"];
|
||||
next_year = current_year;
|
||||
}
|
||||
|
||||
|
||||
var year_start_date = current_year + "-" + fy[0];
|
||||
if(year_start_date > get_today()) {
|
||||
next_year = current_year
|
||||
current_year -= 1;
|
||||
}
|
||||
slide.get_field("fy_start_date").set_input(current_year + "-" + fy[0]);
|
||||
slide.get_field("fy_end_date").set_input(next_year + "-" + fy[1]);
|
||||
}
|
||||
|
||||
@@ -1,20 +1,23 @@
|
||||
<p><button class="btn btn-xs btn-default btn-contact">
|
||||
{{ __("New Contact") }}</button></p>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<ol>
|
||||
{% for(var i=0, l=contact_list.length; i<l; i++) { %}
|
||||
<p class="h6">
|
||||
{%= i+1 %}. {%= contact_list[i].first_name %} {%= contact_list[i].last_name %}
|
||||
{% if(contact_list[i].is_primary_contact) { %}
|
||||
<span class="text-muted">({%= __("Primary") %})</span>
|
||||
{% } %}
|
||||
{% if(contact_list[i].designation){ %}
|
||||
<span class="text-muted">– {%= contact_list[i].designation %}</span>
|
||||
{% } %}
|
||||
<a href="#Form/Contact/{%= encodeURIComponent(contact_list[i].name) %}"
|
||||
class="btn btn-xs btn-default pull-right">
|
||||
{%= __("Edit") %}</a>
|
||||
</p>
|
||||
<li>
|
||||
{%= contact_list[i].first_name %} {%= contact_list[i].last_name %}
|
||||
{% if(contact_list[i].is_primary_contact) { %}
|
||||
<span class="text-muted">({%= __("Primary") %})</span>
|
||||
{% } %}
|
||||
{% if(contact_list[i].designation){ %}
|
||||
<span class="text-muted">– {%= contact_list[i].designation %}</span>
|
||||
{% } %}
|
||||
<a href="#Form/Contact/{%= encodeURIComponent(contact_list[i].name) %}"
|
||||
class="btn btn-xs btn-default pull-right">
|
||||
{%= __("Edit") %}</a>
|
||||
</li>
|
||||
</p>
|
||||
|
||||
<div style="padding-left: 15px;">
|
||||
<p style="padding-top: 5px; font-size: 12px;">
|
||||
{% if(contact_list[i].phone) { %}
|
||||
@@ -29,6 +32,7 @@
|
||||
</p>
|
||||
</div>
|
||||
{% } %}
|
||||
</ol>
|
||||
{% if(!contact_list.length) { %}
|
||||
<p class="text-muted">{%= __("No contacts added yet.") %}</p>
|
||||
{% } %}
|
||||
{% } %}
|
||||
Reference in New Issue
Block a user