[design] mobile
This commit is contained in:
parent
b942cb86ae
commit
f02e142d5d
@ -14,5 +14,6 @@ frappe.listview_settings['Sales Invoice'] = {
|
||||
} else if (doc.outstanding_amount > 0 && doc.due_date <= frappe.datetime.get_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() {
|
||||
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")
|
||||
});
|
||||
|
@ -2,14 +2,14 @@
|
||||
|
||||
{% if(!doc) { %}
|
||||
<div class="row">
|
||||
<div class="col-sm-6">{%= __("Items") %}</div>
|
||||
<div class="col-sm-2 text-right">{%= __("Qty") %}</div>
|
||||
<div class="col-sm-2 text-right">{%= __("Rate") %}</div>
|
||||
<div class="col-sm-2 text-right">{%= __("Amount") %}</div>
|
||||
<div class="col-sm-6 col-xs-8">{%= __("Items") %}</div>
|
||||
<div class="col-sm-2 hidden-xs text-right">{%= __("Qty") %}</div>
|
||||
<div class="col-sm-2 hidden-xs text-right">{%= __("Rate") %}</div>
|
||||
<div class="col-sm-2 col-xs-4 text-right">{%= __("Amount") %}</div>
|
||||
</div>
|
||||
{% } else { %}
|
||||
<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) { %}
|
||||
<br>{%= doc.item_name %}{% } %}
|
||||
{% if(doc.item_name != doc.description) { %}
|
||||
@ -56,7 +56,7 @@
|
||||
</div>
|
||||
|
||||
<!-- qty -->
|
||||
<div class="col-sm-2 text-right">
|
||||
<div class="col-sm-2 hidden-xs text-right">
|
||||
{%= doc.get_formatted("qty") %}
|
||||
<br><small>{%= doc.uom || doc.stock_uom %}</small>
|
||||
{% if(in_list(["Sales Order Item", "Purchase Order Item"],
|
||||
@ -72,7 +72,7 @@
|
||||
</div>
|
||||
|
||||
<!-- 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)) { %}
|
||||
<span class="text-muted">{%= __("hidden") %}</span>
|
||||
{% } else { %}
|
||||
@ -86,7 +86,7 @@
|
||||
</div>
|
||||
|
||||
<!-- 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)) { %}
|
||||
<span class="text-muted">{%= __("hidden") %}</span>
|
||||
{% } else { %}
|
||||
@ -102,6 +102,13 @@
|
||||
<br><small> </small>
|
||||
{% 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>
|
||||
{% } %}
|
||||
|
@ -5,13 +5,13 @@
|
||||
|
||||
{% if(!doc) { %}
|
||||
<div class="row">
|
||||
<div class="col-sm-8">{%= __("Item") %}</div>
|
||||
<div class="col-sm-2 text-right">{%= __("Qty") %}</div>
|
||||
<div class="col-sm-2 text-right">{%= __("Amount") %}</div>
|
||||
<div class="col-sm-8 col-xs-6">{%= __("Item") %}</div>
|
||||
<div class="col-sm-2 col-xs-2 text-right">{%= __("Qty") %}</div>
|
||||
<div class="col-sm-2 col-xs-4 text-right">{%= __("Amount") %}</div>
|
||||
</div>
|
||||
{% } else { %}
|
||||
<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) { %}
|
||||
<br>{%= doc.item_name %}{% } %}
|
||||
{% if(doc.item_name != doc.description) { %}
|
||||
@ -31,13 +31,13 @@
|
||||
</div>
|
||||
|
||||
<!-- qty -->
|
||||
<div class="col-sm-2 text-right">
|
||||
<div class="col-sm-2 col-xs-2 text-right">
|
||||
{%= doc.get_formatted("qty") %}
|
||||
<br><small>{%= doc.uom || doc.stock_uom %}</small>
|
||||
</div>
|
||||
|
||||
<!-- amount -->
|
||||
<div class="col-sm-2 text-right">
|
||||
<div class="col-sm-2 col-xs-4 text-right">
|
||||
{%= doc.get_formatted("amount") %}
|
||||
<div class="small text-muted">
|
||||
{%= doc.get_formatted("incoming_rate") %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user