blob: 350b3e45a8341b3caa632b3ac56887124c6ad1b3 [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
Neil Trini Lasradod718c932014-10-22 15:56:38 +05306from erpnext.templates.utils import get_currency_context
Rushabh Mehta3daa49a2014-10-21 16:16:30 +05307
8no_cache = 1
9no_sitemap = 1
10
11def get_context(context):
12 shipments_context = get_currency_context()
13 shipments_context.update({
14 "title": "Shipments",
Neil Trini Lasradod718c932014-10-22 15:56:38 +053015 "method": "erpnext.templates.pages.shipments.get_shipments",
Rushabh Mehta3daa49a2014-10-21 16:16:30 +053016 "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):
Neil Trini Lasradod718c932014-10-22 15:56:38 +053024 from erpnext.templates.utils import get_transaction_list
Rushabh Mehta3daa49a2014-10-21 16:16:30 +053025 return get_transaction_list("Delivery Note", start)