Version 6.x.x Source

Class StatusUpdater

Inherits from frappe.model.document.Document

Updates the status of the calling records Delivery Note: Update Delivered Qty, Update Percent and Validate over delivery Sales Invoice: Update Billed Amt, Update Percent and Validate over billing Installation Note: Update Installed Qty, Update Percent Qty and Validate over installation

_update_children (self, args)

Update quantities or amount in child table


_update_percent_field (self, args)

Update percent field in parent transaction


check_overflow_with_tolerance (self, item, args)

Checks if there is overflow condering a relaxation tolerance


set_status (self, update=False, status=None, update_modified=True)

No docs


update_billing_status (self, zero_amount_refdoc, ref_dt, ref_fieldname)

No docs


update_billing_status_for_zero_amount_refdoc (self, ref_dt)

No docs


update_prevdoc_status (self)

No docs


update_qty (self, change_modified=True)

Updates qty or amount at row level

Parameters:


validate_qty (self)

Validates qty at row level



erpnext.controllers.status_updater.get_tolerance_for (item_code, item_tolerance={}, global_tolerance=None)

Returns the tolerance for the item, if not set, returns global tolerance


erpnext.controllers.status_updater.validate_status (status, options)

No docs