From 1524c2a5b6f2a2643aa4f564891be514b2d519f3 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 15 Mar 2013 17:42:45 +0530 Subject: [PATCH] create return jv --- stock/doctype/stock_entry/stock_entry.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/stock/doctype/stock_entry/stock_entry.py b/stock/doctype/stock_entry/stock_entry.py index 80756b40ed..d5764fa54e 100644 --- a/stock/doctype/stock_entry/stock_entry.py +++ b/stock/doctype/stock_entry/stock_entry.py @@ -769,6 +769,19 @@ def make_return_jv(stock_entry): }) se = webnotes.bean("Stock Entry", stock_entry) + ref = get_return_reference_details(se.doc.fields) + + for se_item in se.doclist.get({"parentfield": "mtn_details"}): + # find item in ref.doclist + ref_item = ref.doclist.getone({"item_code": se_item.item_code}) + + # add row for customer/supplier account + + # find income account and value and add corresponding rows + + # find tax account and value and add corresponding rows + + pass if not webnotes.response.get("docs"): webnotes.response["docs"] = []