Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
	
Ejemplo n.º 4
0
def get_shipments(start=0):
    from portal.utils import get_transaction_list
    return get_transaction_list("Delivery Note", start)
Ejemplo n.º 5
0
def get_shipments(start=0):
	from portal.utils import get_transaction_list
	return get_transaction_list("Delivery Note", start)