brotherton-erpnext/erpnext/templates/includes/cart/cart_items.html

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.3 KiB
HTML
Raw Normal View History

{% for d in doc.items %}
<tr data-name="{{ d.name }}">
<td>
2021-01-20 12:22:54 +00:00
<div class="item-title mb-1">
{{ d.item_name }}
</div>
2021-01-20 12:22:54 +00:00
<div class="item-subtitle">
{{ d.item_code }}
</div>
{%- set variant_of = frappe.db.get_value('Item', d.item_code, 'variant_of') %}
{% if variant_of %}
2021-01-20 12:22:54 +00:00
<span class="item-subtitle">
{{ _('Variant of') }} <a href="{{frappe.db.get_value('Item', variant_of, 'route')}}">{{ variant_of }}</a>
</span>
{% endif %}
<div class="mt-2">
<textarea data-item-code="{{d.item_code}}" class="form-control" rows="2" placeholder="{{ _('Add notes') }}">{{d.additional_notes or ''}}</textarea>
</div>
</td>
<td class="text-right">
<div class="input-group number-spinner">
<span class="input-group-prepend d-none d-sm-inline-block">
2021-01-20 12:22:54 +00:00
<button class="btn cart-btn" data-dir="dwn"></button>
</span>
2021-01-20 12:22:54 +00:00
<input class="form-control text-center cart-qty" value="{{ d.get_formatted('qty') }}" data-item-code="{{ d.item_code }}">
<span class="input-group-append d-none d-sm-inline-block">
2021-01-20 12:22:54 +00:00
<button class="btn cart-btn" data-dir="up">+</button>
</span>
</div>
</td>
{% if cart_settings.enable_checkout %}
2021-01-20 12:22:54 +00:00
<td class="text-right item-subtotal">
<div>
{{ d.get_formatted('amount') }}
</div>
2021-01-20 12:22:54 +00:00
<span class="item-rate">
{{ _('Rate:') }} {{ d.get_formatted('rate') }}
</span>
</td>
{% endif %}
</tr>
{% endfor %}