Beispiel #1
0
def get_invoices(start=0):
	from portal.utils import get_transaction_list
	from accounts.doctype.sales_invoice.templates.pages.invoice import modify_status
	invoices = get_transaction_list("Sales Invoice", start, ["outstanding_amount"])
	for d in invoices:
		modify_status(d)
	return invoices
Beispiel #2
0
def get_orders(start=0):
    from portal.utils import get_transaction_list
    from selling.doctype.sales_order.templates.pages.order import modify_status
    orders = get_transaction_list("Sales Order", start,
                                  ["per_billed", "per_delivered"])
    for d in orders:
        modify_status(d)

    return orders
Beispiel #3
0
def get_orders(start=0):
	from portal.utils import get_transaction_list
	from selling.doctype.sales_order.templates.pages.order import modify_status
	orders = get_transaction_list("Sales Order", start, ["per_billed", "per_delivered"])
	for d in orders:
		modify_status(d)
		
	return orders
	
Beispiel #4
0
def get_shipments(start=0):
    from portal.utils import get_transaction_list
    return get_transaction_list("Delivery Note", start)
Beispiel #5
0
def get_shipments(start=0):
	from portal.utils import get_transaction_list
	return get_transaction_list("Delivery Note", start)