blob: fe28c7ea971938a888624814d162719e10320301 [file] [log] [blame]
Rushabh Mehta3daa49a2014-10-21 16:16:30 +05301# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
2# License: GNU General Public License v3. See license.txt
3
4from __future__ import unicode_literals
5import frappe
6from shopping_cart.templates.utils import get_currency_context
7
8no_cache = 1
9no_sitemap = 1
10
11def get_context(context):
12 shipments_context = get_currency_context()
13 shipments_context.update({
14 "title": "Shipments",
15 "method": "shopping_cart.templates.pages.shipments.get_shipments",
16 "icon": "icon-truck",
17 "empty_list_message": "No Shipments Found",
18 "page": "shipment"
19 })
20 return shipments_context
21
22@frappe.whitelist()
23def get_shipments(start=0):
24 from shopping_cart.templates.utils import get_transaction_list
25 return get_transaction_list("Delivery Note", start)