def oc_se_changed(doc, method=None): for row in doc.get('mtn_details'): update_item_qty(row.get('item_code'))
def oc_dn_canceled(doc, method=None): for row in doc.get('delivery_note_details'): update_item_qty(row.get('item_code'))
def oc_pr_canceled(doc, method=None): for row in doc.get('purchase_receipt_details'): update_item_qty(row.get('item_code'))