mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 06:59:20 +00:00
[design] mobile
This commit is contained in:
@@ -14,5 +14,6 @@ frappe.listview_settings['Sales Invoice'] = {
|
|||||||
} else if (doc.outstanding_amount > 0 && doc.due_date <= frappe.datetime.get_today()) {
|
} else if (doc.outstanding_amount > 0 && doc.due_date <= frappe.datetime.get_today()) {
|
||||||
return [__("Overdue"), "red", "oustanding_amount,>,0|due_date,<=,Today"]
|
return [__("Overdue"), "red", "oustanding_amount,>,0|due_date,<=,Today"]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
right_column: "grand_total_export"
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ frappe.provide('erpnext');
|
|||||||
$(document).bind('toolbar_setup', function() {
|
$(document).bind('toolbar_setup', function() {
|
||||||
frappe.app.name = "ERPNext";
|
frappe.app.name = "ERPNext";
|
||||||
|
|
||||||
$('.navbar-brand').html('ERPNext');
|
$('.navbar-brand').html('<i class="octicon octicon-home visible-xs"></i><span class="hidden-xs">ERPNext</span>');
|
||||||
|
|
||||||
$('[data-link="docs"]').attr("href", "https://erpnext.com/user-guide")
|
$('[data-link="docs"]').attr("href", "https://erpnext.com/user-guide")
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
|
|
||||||
{% if(!doc) { %}
|
{% if(!doc) { %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-6">{%= __("Items") %}</div>
|
<div class="col-sm-6 col-xs-8">{%= __("Items") %}</div>
|
||||||
<div class="col-sm-2 text-right">{%= __("Qty") %}</div>
|
<div class="col-sm-2 hidden-xs text-right">{%= __("Qty") %}</div>
|
||||||
<div class="col-sm-2 text-right">{%= __("Rate") %}</div>
|
<div class="col-sm-2 hidden-xs text-right">{%= __("Rate") %}</div>
|
||||||
<div class="col-sm-2 text-right">{%= __("Amount") %}</div>
|
<div class="col-sm-2 col-xs-4 text-right">{%= __("Amount") %}</div>
|
||||||
</div>
|
</div>
|
||||||
{% } else { %}
|
{% } else { %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-6"><strong>{%= doc.item_code %}</strong>
|
<div class="col-sm-6 col-xs-8"><strong>{%= doc.item_code %}</strong>
|
||||||
{% if(doc.item_name != doc.item_code) { %}
|
{% if(doc.item_name != doc.item_code) { %}
|
||||||
<br>{%= doc.item_name %}{% } %}
|
<br>{%= doc.item_name %}{% } %}
|
||||||
{% if(doc.item_name != doc.description) { %}
|
{% if(doc.item_name != doc.description) { %}
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- qty -->
|
<!-- qty -->
|
||||||
<div class="col-sm-2 text-right">
|
<div class="col-sm-2 hidden-xs text-right">
|
||||||
{%= doc.get_formatted("qty") %}
|
{%= doc.get_formatted("qty") %}
|
||||||
<br><small>{%= doc.uom || doc.stock_uom %}</small>
|
<br><small>{%= doc.uom || doc.stock_uom %}</small>
|
||||||
{% if(in_list(["Sales Order Item", "Purchase Order Item"],
|
{% if(in_list(["Sales Order Item", "Purchase Order Item"],
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- rate -->
|
<!-- rate -->
|
||||||
<div class="col-sm-2 text-right">
|
<div class="col-sm-2 hidden-xs text-right">
|
||||||
{% if (!frappe.perm.is_visible("rate", doc, frm.perm)) { %}
|
{% if (!frappe.perm.is_visible("rate", doc, frm.perm)) { %}
|
||||||
<span class="text-muted">{%= __("hidden") %}</span>
|
<span class="text-muted">{%= __("hidden") %}</span>
|
||||||
{% } else { %}
|
{% } else { %}
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- amount -->
|
<!-- amount -->
|
||||||
<div class="col-sm-2 text-right">
|
<div class="col-sm-2 col-xs-4 text-right">
|
||||||
{% if (!frappe.perm.is_visible("amount", doc, frm.perm)) { %}
|
{% if (!frappe.perm.is_visible("amount", doc, frm.perm)) { %}
|
||||||
<span class="text-muted">{%= __("hidden") %}</span>
|
<span class="text-muted">{%= __("hidden") %}</span>
|
||||||
{% } else { %}
|
{% } else { %}
|
||||||
@@ -102,6 +102,13 @@
|
|||||||
<br><small> </small>
|
<br><small> </small>
|
||||||
{% include "templates/form_grid/includes/progress.html" %}
|
{% include "templates/form_grid/includes/progress.html" %}
|
||||||
{% } %}
|
{% } %}
|
||||||
|
|
||||||
|
{% if (frappe.perm.is_visible("rate", doc, frm.perm)) { %}
|
||||||
|
<div class="visible-xs text-muted">
|
||||||
|
{%= doc.get_formatted("qty") %} <small>{%= doc.uom || doc.stock_uom %}</small>
|
||||||
|
x {%= doc.get_formatted("rate") %}
|
||||||
|
</div>
|
||||||
|
{% } %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% } %}
|
{% } %}
|
||||||
|
|||||||
@@ -5,13 +5,13 @@
|
|||||||
|
|
||||||
{% if(!doc) { %}
|
{% if(!doc) { %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-8">{%= __("Item") %}</div>
|
<div class="col-sm-8 col-xs-6">{%= __("Item") %}</div>
|
||||||
<div class="col-sm-2 text-right">{%= __("Qty") %}</div>
|
<div class="col-sm-2 col-xs-2 text-right">{%= __("Qty") %}</div>
|
||||||
<div class="col-sm-2 text-right">{%= __("Amount") %}</div>
|
<div class="col-sm-2 col-xs-4 text-right">{%= __("Amount") %}</div>
|
||||||
</div>
|
</div>
|
||||||
{% } else { %}
|
{% } else { %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-8"><strong>{%= doc.item_code %}</strong>
|
<div class="col-sm-8 col-xs-6"><strong>{%= doc.item_code %}</strong>
|
||||||
{% if(doc.item_name != doc.item_code) { %}
|
{% if(doc.item_name != doc.item_code) { %}
|
||||||
<br>{%= doc.item_name %}{% } %}
|
<br>{%= doc.item_name %}{% } %}
|
||||||
{% if(doc.item_name != doc.description) { %}
|
{% if(doc.item_name != doc.description) { %}
|
||||||
@@ -31,13 +31,13 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- qty -->
|
<!-- qty -->
|
||||||
<div class="col-sm-2 text-right">
|
<div class="col-sm-2 col-xs-2 text-right">
|
||||||
{%= doc.get_formatted("qty") %}
|
{%= doc.get_formatted("qty") %}
|
||||||
<br><small>{%= doc.uom || doc.stock_uom %}</small>
|
<br><small>{%= doc.uom || doc.stock_uom %}</small>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- amount -->
|
<!-- amount -->
|
||||||
<div class="col-sm-2 text-right">
|
<div class="col-sm-2 col-xs-4 text-right">
|
||||||
{%= doc.get_formatted("amount") %}
|
{%= doc.get_formatted("amount") %}
|
||||||
<div class="small text-muted">
|
<div class="small text-muted">
|
||||||
{%= doc.get_formatted("incoming_rate") %}
|
{%= doc.get_formatted("incoming_rate") %}
|
||||||
|
|||||||
Reference in New Issue
Block a user