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