Can't submit Delivery Note with same item used twice

Hi


I can create and submit a Sales Order with same item but with different valuations listed twice. But while making delivery I can’t do so. Why??

Satish Gupta



You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

I can't replicate that, the system is giving duplicate item message but allowing me to save and submit delivery note. What is the message you are getting on saving delivery note?


On 05-Aug-2013, at 7:02 PM, Satish wrote:

Hi

I can create and submit a Sales Order with same item but with different valuations listed twice. But while making delivery I can't do so. Why??

Satish Gupta



You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 




You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

Attached is the screenshot.





On Tuesday, 6 August 2013 11:26:09 UTC+5:30, Nabin Hait wrote:
I can’t replicate that, the system is giving duplicate item message but allowing me to save and submit delivery note. What is the message you are getting on saving delivery note?


On 05-Aug-2013, at 7:02 PM, Satish wrote:

Hi

I can create and submit a Sales Order with same item but with different valuations listed twice. But while making delivery I can’t do so. Why??

Satish Gupta



You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 




You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

Looking like there are some other error coming after this validation. Can you please attach error trace from console?

On 06-Aug-2013, at 12:29 PM, Satish wrote:

Attached is the screenshot.




On Tuesday, 6 August 2013 11:26:09 UTC+5:30, Nabin Hait wrote:
I can't replicate that, the system is giving duplicate item message but allowing me to save and submit delivery note. What is the message you are getting on saving delivery note?


On 05-Aug-2013, at 7:02 PM, Satish wrote:

Hi

I can create and submit a Sales Order with same item but with different valuations listed twice. But while making delivery I can't do so. Why??

Satish Gupta



You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 





You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 




You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

Traceback (innermost last):
File “…/lib/webnotes/handler.py”, line 113, in handle
execute_cmd(cmd)
File “…/lib/webnotes/handler.py”, line 153, in execute_cmd
ret = call(method, webnotes.form_dict)
File “…/lib/webnotes/handler.py”, line 170, in call
return fn(**newargs)
File “…/lib/webnotes/widgets/form/save.py”, line 26, in savedocs
raise e
Exception: [WNF] Warehouse Warehouse does not exist



It says warehouse does not exist. But I am using this warehouse elsewhere and it is working.



On Tuesday, 6 August 2013 12:40:46 UTC+5:30, Nabin Hait wrote:
Looking like there are some other error coming after this validation. Can you please attach error trace from console?

On 06-Aug-2013, at 12:29 PM, Satish wrote:

Attached is the screenshot.




On Tuesday, 6 August 2013 11:26:09 UTC+5:30, Nabin Hait wrote:
I can’t replicate that, the system is giving duplicate item message but allowing me to save and submit delivery note. What is the message you are getting on saving delivery note?


On 05-Aug-2013, at 7:02 PM, Satish wrote:

Hi

I can create and submit a Sales Order with same item but with different valuations listed twice. But while making delivery I can’t do so. Why??

Satish Gupta



You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 





You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 




You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

Satish,

Is this the full traceback?

Also, do you have any custom script in Delivery Note?

Thanks,
Anand.

On 06-Aug-2013, at 1:45 PM, Satish <sa...@gmail.com> wrote:

Traceback (innermost last): File "../lib/webnotes/handler.py", line 113, in handle execute_cmd(cmd) File "../lib/webnotes/handler.py", line 153, in execute_cmd ret = call(method, webnotes.form_dict) File "../lib/webnotes/handler.py", line 170, in call return fn(**newargs) File "../lib/webnotes/widgets/form/save.py", line 26, in savedocs raise e Exception: [WNF] Warehouse Warehouse does not exist


It says warehouse does not exist. But I am using this warehouse elsewhere and it is working.



On Tuesday, 6 August 2013 12:40:46 UTC+5:30, Nabin Hait wrote:
Looking like there are some other error coming after this validation. Can you please attach error trace from console?

On 06-Aug-2013, at 12:29 PM, Satish wrote:

Attached is the screenshot.




On Tuesday, 6 August 2013 11:26:09 UTC+5:30, Nabin Hait wrote:
I can't replicate that, the system is giving duplicate item message but allowing me to save and submit delivery note. What is the message you are getting on saving delivery note?


On 05-Aug-2013, at 7:02 PM, Satish wrote:

Hi

I can create and submit a Sales Order with same item but with different valuations listed twice. But while making delivery I can't do so. Why??

Satish Gupta



You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 





You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 





You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 




You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

I don’t have any custom scripts running. I think following is the full traceback:


Traceback (innermost last):
File “…/lib/webnotes/widgets/form/save.py”, line 17, in savedocs
getattr(wrapper, action.lower())()
File “…/lib/webnotes/model/bean.py”, line 311, in submit
self.run_method(‘on_submit’)
File “…/lib/webnotes/model/bean.py”, line 223, in run_method
getattr(self.controller, method)()
File “…/app/stock/doctype/delivery_note/delivery_note.py”, line 203, in on_submit
self.update_stock_ledger(update_stock = 1)
File “…/app/stock/doctype/delivery_note/delivery_note.py”, line 300, in update_stock_ledger
get_obj(“Warehouse”, d[“reserved_warehouse”]).update_bin(args)
File “…/lib/webnotes/model/code.py”, line 136, in get_obj
doclist = webnotes.model.doc.get(dt, dn, with_children = 0, from_controller=1)
File “…/lib/webnotes/model/doc.py”, line 617, in get
doc = Document(dt, dn, prefix=prefix)
File “…/lib/webnotes/model/doc.py”, line 83, in init
self._loadfromdb(doctype, name)
File “…/lib/webnotes/model/doc.py”, line 136, in _loadfromdb
raise Exception, ‘[WNF] %s %s does not exist’ % (self.doctype, self.name)
Exception: [WNF] Warehouse Warehouse does not exist
all-app.min.js:238
Traceback (innermost last):
File “…/lib/webnotes/handler.py”, line 113, in handle
execute_cmd(cmd)
File “…/lib/webnotes/handler.py”, line 153, in execute_cmd
ret = call(method, webnotes.form_dict)
File “…/lib/webnotes/handler.py”, line 170, in call
return fn(**newargs)
File “…/lib/webnotes/widgets/form/save.py”, line 26, in savedocs
raise e
Exception: [WNF] Warehouse Warehouse does not exist

On Tuesday, 6 August 2013 14:25:12 UTC+5:30, Anand Doshi wrote:
Satish,

Is this the full traceback?

Also, do you have any custom script in Delivery Note?

Thanks,
Anand.

On 06-Aug-2013, at 1:45 PM, Satish <sa…@gmail.com> wrote:

Traceback (innermost last):
File “…/lib/webnotes/handler.py”, line 113, in handle
execute_cmd(cmd)
File “…/lib/webnotes/handler.py”, line 153, in execute_cmd
ret = call(method, webnotes.form_dict)
File “…/lib/webnotes/handler.py”, line 170, in call
return fn(**newargs)
File “…/lib/webnotes/widgets/form/save.py”, line 26, in savedocs
raise e
Exception: [WNF] Warehouse Warehouse does not exist


It says warehouse does not exist. But I am using this warehouse elsewhere and it is working.



On Tuesday, 6 August 2013 12:40:46 UTC+5:30, Nabin Hait wrote:
Looking like there are some other error coming after this validation. Can you please attach error trace from console?

On 06-Aug-2013, at 12:29 PM, Satish wrote:

Attached is the screenshot.




On Tuesday, 6 August 2013 11:26:09 UTC+5:30, Nabin Hait wrote:
I can’t replicate that, the system is giving duplicate item message but allowing me to save and submit delivery note. What is the message you are getting on saving delivery note?


On 05-Aug-2013, at 7:02 PM, Satish wrote:

Hi

I can create and submit a Sales Order with same item but with different valuations listed twice. But while making delivery I can’t do so. Why??

Satish Gupta



You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 





You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 





You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 




You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

The error is coming because "Reserved Warehouse" is not mentioned in associated Sales Order. May be the item has been changed to "Stock Item" from "Non-stock Item" after making SO. I have added a validation which will check reserved warehouse in SO on submission of delivery note.

On 06-Aug-2013, at 2:45 PM, Satish wrote:

I don't have any custom scripts running. I think following is the full traceback:

Traceback (innermost last): File "../lib/webnotes/widgets/form/save.py", line 17, in savedocs getattr(wrapper, action.lower())() File "../lib/webnotes/model/bean.py", line 311, in submit self.run_method('on_submit') File "../lib/webnotes/model/bean.py", line 223, in run_method getattr(self.controller, method)() File "../app/stock/doctype/delivery_note/delivery_note.py", line 203, in on_submit self.update_stock_ledger(update_stock = 1) File "../app/stock/doctype/delivery_note/delivery_note.py", line 300, in update_stock_ledger get_obj("Warehouse", d["reserved_warehouse"]).update_bin(args) File "../lib/webnotes/model/code.py", line 136, in get_obj doclist = webnotes.model.doc.get(dt, dn, with_children = 0, from_controller=1) File "../lib/webnotes/model/doc.py", line 617, in get doc = Document(dt, dn, prefix=prefix) File "../lib/webnotes/model/doc.py", line 83, in __init__ self._loadfromdb(doctype, name) File "../lib/webnotes/model/doc.py", line 136, in _loadfromdb raise Exception, '[WNF] %s %s does not exist' % (self.doctype, self.name) Exception: [WNF] Warehouse Warehouse does not exist all-app.min.js:238
Traceback (innermost last): File "../lib/webnotes/handler.py", line 113, in handle execute_cmd(cmd) File "../lib/webnotes/handler.py", line 153, in execute_cmd ret = call(method, webnotes.form_dict) File "../lib/webnotes/handler.py", line 170, in call return fn(**newargs) File "../lib/webnotes/widgets/form/save.py", line 26, in savedocs raise e Exception: [WNF] Warehouse Warehouse does not exist

On Tuesday, 6 August 2013 14:25:12 UTC+5:30, Anand Doshi wrote:
Satish,

Is this the full traceback?

Also, do you have any custom script in Delivery Note?

Thanks,
Anand.

On 06-Aug-2013, at 1:45 PM, Satish <sa...@gmail.com> wrote:

Traceback (innermost last): File "../lib/webnotes/handler.py", line 113, in handle execute_cmd(cmd) File "../lib/webnotes/handler.py", line 153, in execute_cmd ret = call(method, webnotes.form_dict) File "../lib/webnotes/handler.py", line 170, in call return fn(**newargs) File "../lib/webnotes/widgets/form/save.py", line 26, in savedocs raise e Exception: [WNF] Warehouse Warehouse does not exist


It says warehouse does not exist. But I am using this warehouse elsewhere and it is working.



On Tuesday, 6 August 2013 12:40:46 UTC+5:30, Nabin Hait wrote:
Looking like there are some other error coming after this validation. Can you please attach error trace from console?

On 06-Aug-2013, at 12:29 PM, Satish wrote:

Attached is the screenshot.




On Tuesday, 6 August 2013 11:26:09 UTC+5:30, Nabin Hait wrote:
I can't replicate that, the system is giving duplicate item message but allowing me to save and submit delivery note. What is the message you are getting on saving delivery note?


On 05-Aug-2013, at 7:02 PM, Satish wrote:

Hi

I can create and submit a Sales Order with same item but with different valuations listed twice. But while making delivery I can't do so. Why??

Satish Gupta



You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 





You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 





You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 





You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 




You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

You are right. I changed the item from a non-stock item to stock item. 

Now on submitting delivery note it says reserved warehouse not mentioned in SO.

But now there is another problem. I am unable to cancel SO.

Following is the traceback:

Traceback (innermost last):
File “…/lib/webnotes/widgets/form/save.py”, line 33, in cancel
wrapper.cancel()
File “…/lib/webnotes/model/bean.py”, line 324, in cancel
self.run_method(‘on_cancel’)
File “…/lib/webnotes/model/bean.py”, line 223, in run_method
getattr(self.controller, method)()
File “…/app/selling/doctype/sales_order/sales_order.py”, line 204, in on_cancel
self.update_stock_ledger(update_stock = -1)
File “…/app/selling/doctype/sales_order/sales_order.py”, line 270, in update_stock_ledger
get_obj(‘Warehouse’, d[‘reserved_warehouse’]).update_bin(args)
File “…/lib/webnotes/model/code.py”, line 136, in get_obj
doclist = webnotes.model.doc.get(dt, dn, with_children = 0, from_controller=1)
File “…/lib/webnotes/model/doc.py”, line 617, in get
doc = Document(dt, dn, prefix=prefix)
File “…/lib/webnotes/model/doc.py”, line 83, in init
self._loadfromdb(doctype, name)
File “…/lib/webnotes/model/doc.py”, line 136, in _loadfromdb
raise Exception, ‘[WNF] %s %s does not exist’ % (self.doctype, self.name)
Exception: [WNF] Warehouse Warehouse does not exist
all-app.min.js:238
Traceback (innermost last):
File “…/lib/webnotes/handler.py”, line 113, in handle
execute_cmd(cmd)
File “…/lib/webnotes/handler.py”, line 153, in execute_cmd
ret = call(method, webnotes.form_dict)
File “…/lib/webnotes/handler.py”, line 170, in call
return fn(**newargs)
File “…/lib/webnotes/widgets/form/save.py”, line 39, in cancel
raise e
Exception: [WNF] Warehouse Warehouse does not exist





On Tuesday, 6 August 2013 16:13:29 UTC+5:30, Nabin Hait wrote:
The error is coming because “Reserved Warehouse” is not mentioned in associated Sales Order. May be the item has been changed to “Stock Item” from “Non-stock Item” after making SO. I have added a validation which will check reserved warehouse in SO on submission of delivery note.

On 06-Aug-2013, at 2:45 PM, Satish wrote:

I don’t have any custom scripts running. I think following is the full traceback:

Traceback (innermost last):
File “…/lib/webnotes/widgets/form/save.py”, line 17, in savedocs
getattr(wrapper, action.lower())()
File “…/lib/webnotes/model/bean.py”, line 311, in submit
self.run_method(‘on_submit’)
File “…/lib/webnotes/model/bean.py”, line 223, in run_method
getattr(self.controller, method)()
File “…/app/stock/doctype/delivery_note/delivery_note.py”, line 203, in on_submit
self.update_stock_ledger(update_stock = 1)
File “…/app/stock/doctype/delivery_note/delivery_note.py”, line 300, in update_stock_ledger
get_obj(“Warehouse”, d[“reserved_warehouse”]).update_bin(args)
File “…/lib/webnotes/model/code.py”, line 136, in get_obj
doclist = webnotes.model.doc.get(dt, dn, with_children = 0, from_controller=1)
File “…/lib/webnotes/model/doc.py”, line 617, in get
doc = Document(dt, dn, prefix=prefix)
File “…/lib/webnotes/model/doc.py”, line 83, in init
self._loadfromdb(doctype, name)
File “…/lib/webnotes/model/doc.py”, line 136, in _loadfromdb
raise Exception, ‘[WNF] %s %s does not exist’ % (self.doctype, self.name)
Exception: [WNF] Warehouse Warehouse does not exist
all-app.min.js:238
Traceback (innermost last):
File “…/lib/webnotes/handler.py”, line 113, in handle
execute_cmd(cmd)
File “…/lib/webnotes/handler.py”, line 153, in execute_cmd
ret = call(method, webnotes.form_dict)
File “…/lib/webnotes/handler.py”, line 170, in call
return fn(**newargs)
File “…/lib/webnotes/widgets/form/save.py”, line 26, in savedocs
raise e
Exception: [WNF] Warehouse Warehouse does not exist

On Tuesday, 6 August 2013 14:25:12 UTC+5:30, Anand Doshi wrote:
Satish,

Is this the full traceback?

Also, do you have any custom script in Delivery Note?

Thanks,
Anand.

On 06-Aug-2013, at 1:45 PM, Satish <sa…@gmail.com> wrote:

Traceback (innermost last):
File “…/lib/webnotes/handler.py”, line 113, in handle
execute_cmd(cmd)
File “…/lib/webnotes/handler.py”, line 153, in execute_cmd
ret = call(method, webnotes.form_dict)
File “…/lib/webnotes/handler.py”, line 170, in call
return fn(**newargs)
File “…/lib/webnotes/widgets/form/save.py”, line 26, in savedocs
raise e
Exception: [WNF] Warehouse Warehouse does not exist


It says warehouse does not exist. But I am using this warehouse elsewhere and it is working.



On Tuesday, 6 August 2013 12:40:46 UTC+5:30, Nabin Hait wrote:
Looking like there are some other error coming after this validation. Can you please attach error trace from console?

On 06-Aug-2013, at 12:29 PM, Satish wrote:

Attached is the screenshot.




On Tuesday, 6 August 2013 11:26:09 UTC+5:30, Nabin Hait wrote:
I can’t replicate that, the system is giving duplicate item message but allowing me to save and submit delivery note. What is the message you are getting on saving delivery note?


On 05-Aug-2013, at 7:02 PM, Satish wrote:

Hi

I can create and submit a Sales Order with same item but with different valuations listed twice. But while making delivery I can’t do so. Why??

Satish Gupta



You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 





You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 





You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 





You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 




You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

Change item to non-stock and cancel the sales order, then again change it to stock item.

On 06-Aug-2013, at 4:48 PM, Satish wrote:

You are right. I changed the item from a non-stock item to stock item. 
Now on submitting delivery note it says reserved warehouse not mentioned in SO.

But now there is another problem. I am unable to cancel SO.

Following is the traceback:

Traceback (innermost last): File "../lib/webnotes/widgets/form/save.py", line 33, in cancel wrapper.cancel() File "../lib/webnotes/model/bean.py", line 324, in cancel self.run_method('on_cancel') File "../lib/webnotes/model/bean.py", line 223, in run_method getattr(self.controller, method)() File "../app/selling/doctype/sales_order/sales_order.py", line 204, in on_cancel self.update_stock_ledger(update_stock = -1) File "../app/selling/doctype/sales_order/sales_order.py", line 270, in update_stock_ledger get_obj('Warehouse', d['reserved_warehouse']).update_bin(args) File "../lib/webnotes/model/code.py", line 136, in get_obj doclist = webnotes.model.doc.get(dt, dn, with_children = 0, from_controller=1) File "../lib/webnotes/model/doc.py", line 617, in get doc = Document(dt, dn, prefix=prefix) File "../lib/webnotes/model/doc.py", line 83, in __init__ self._loadfromdb(doctype, name) File "../lib/webnotes/model/doc.py", line 136, in _loadfromdb raise Exception, '[WNF] %s %s does not exist' % (self.doctype, self.name) Exception: [WNF] Warehouse Warehouse does not exist all-app.min.js:238
Traceback (innermost last): File "../lib/webnotes/handler.py", line 113, in handle execute_cmd(cmd) File "../lib/webnotes/handler.py", line 153, in execute_cmd ret = call(method, webnotes.form_dict) File "../lib/webnotes/handler.py", line 170, in call return fn(**newargs) File "../lib/webnotes/widgets/form/save.py", line 39, in cancel raise e Exception: [WNF] Warehouse Warehouse does not exist





On Tuesday, 6 August 2013 16:13:29 UTC+5:30, Nabin Hait wrote:
The error is coming because "Reserved Warehouse" is not mentioned in associated Sales Order. May be the item has been changed to "Stock Item" from "Non-stock Item" after making SO. I have added a validation which will check reserved warehouse in SO on submission of delivery note.

On 06-Aug-2013, at 2:45 PM, Satish wrote:

I don't have any custom scripts running. I think following is the full traceback:

Traceback (innermost last): File "../lib/webnotes/widgets/form/save.py", line 17, in savedocs getattr(wrapper, action.lower())() File "../lib/webnotes/model/bean.py", line 311, in submit self.run_method('on_submit') File "../lib/webnotes/model/bean.py", line 223, in run_method getattr(self.controller, method)() File "../app/stock/doctype/delivery_note/delivery_note.py", line 203, in on_submit self.update_stock_ledger(update_stock = 1) File "../app/stock/doctype/delivery_note/delivery_note.py", line 300, in update_stock_ledger get_obj("Warehouse", d["reserved_warehouse"]).update_bin(args) File "../lib/webnotes/model/code.py", line 136, in get_obj doclist = webnotes.model.doc.get(dt, dn, with_children = 0, from_controller=1) File "../lib/webnotes/model/doc.py", line 617, in get doc = Document(dt, dn, prefix=prefix) File "../lib/webnotes/model/doc.py", line 83, in __init__ self._loadfromdb(doctype, name) File "../lib/webnotes/model/doc.py", line 136, in _loadfromdb raise Exception, '[WNF] %s %s does not exist' % (self.doctype, self.name) Exception: [WNF] Warehouse Warehouse does not exist all-app.min.js:238
Traceback (innermost last): File "../lib/webnotes/handler.py", line 113, in handle execute_cmd(cmd) File "../lib/webnotes/handler.py", line 153, in execute_cmd ret = call(method, webnotes.form_dict) File "../lib/webnotes/handler.py", line 170, in call return fn(**newargs) File "../lib/webnotes/widgets/form/save.py", line 26, in savedocs raise e Exception: [WNF] Warehouse Warehouse does not exist

On Tuesday, 6 August 2013 14:25:12 UTC+5:30, Anand Doshi wrote:
Satish,

Is this the full traceback?

Also, do you have any custom script in Delivery Note?

Thanks,
Anand.

On 06-Aug-2013, at 1:45 PM, Satish <sa...@gmail.com> wrote:

Traceback (innermost last): File "../lib/webnotes/handler.py", line 113, in handle execute_cmd(cmd) File "../lib/webnotes/handler.py", line 153, in execute_cmd ret = call(method, webnotes.form_dict) File "../lib/webnotes/handler.py", line 170, in call return fn(**newargs) File "../lib/webnotes/widgets/form/save.py", line 26, in savedocs raise e Exception: [WNF] Warehouse Warehouse does not exist


It says warehouse does not exist. But I am using this warehouse elsewhere and it is working.



On Tuesday, 6 August 2013 12:40:46 UTC+5:30, Nabin Hait wrote:
Looking like there are some other error coming after this validation. Can you please attach error trace from console?

On 06-Aug-2013, at 12:29 PM, Satish wrote:

Attached is the screenshot.




On Tuesday, 6 August 2013 11:26:09 UTC+5:30, Nabin Hait wrote:
I can't replicate that, the system is giving duplicate item message but allowing me to save and submit delivery note. What is the message you are getting on saving delivery note?


On 05-Aug-2013, at 7:02 PM, Satish wrote:

Hi

I can create and submit a Sales Order with same item but with different valuations listed twice. But while making delivery I can't do so. Why??

Satish Gupta



You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 





You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 





You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 





You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 





You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 




You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

Hi,

Sorry for the late reply. I was out for two days.
I would like to change the item from stock item to non-stock item. But it is greyed out. When I try to delete the item it won't let me.
How can I edit the item to be a non-stock item from a stock item.

Satish Gupta


On Tuesday, 6 August 2013 16:58:45 UTC+5:30, Nabin Hait wrote:
Change item to non-stock and cancel the sales order, then again change it to stock item.

On 06-Aug-2013, at 4:48 PM, Satish wrote:

You are right. I changed the item from a non-stock item to stock item. 
Now on submitting delivery note it says reserved warehouse not mentioned in SO.

But now there is another problem. I am unable to cancel SO.

Following is the traceback:

Traceback (innermost last): File "../lib/webnotes/widgets/form/save.py", line 33, in cancel wrapper.cancel() File "../lib/webnotes/model/bean.py", line 324, in cancel self.run_method('on_cancel') File "../lib/webnotes/model/bean.py", line 223, in run_method getattr(self.controller, method)() File "../app/selling/doctype/sales_order/sales_order.py", line 204, in on_cancel self.update_stock_ledger(update_stock = -1) File "../app/selling/doctype/sales_order/sales_order.py", line 270, in update_stock_ledger get_obj('Warehouse', d['reserved_warehouse']).update_bin(args) File "../lib/webnotes/model/code.py", line 136, in get_obj doclist = webnotes.model.doc.get(dt, dn, with_children = 0, from_controller=1) File "../lib/webnotes/model/doc.py", line 617, in get doc = Document(dt, dn, prefix=prefix) File "../lib/webnotes/model/doc.py", line 83, in __init__ self._loadfromdb(doctype, name) File "../lib/webnotes/model/doc.py", line 136, in _loadfromdb raise Exception, '[WNF] %s %s does not exist' % (self.doctype, self.name) Exception: [WNF] Warehouse Warehouse does not exist all-app.min.js:238
Traceback (innermost last): File "../lib/webnotes/handler.py", line 113, in handle execute_cmd(cmd) File "../lib/webnotes/handler.py", line 153, in execute_cmd ret = call(method, webnotes.form_dict) File "../lib/webnotes/handler.py", line 170, in call return fn(**newargs) File "../lib/webnotes/widgets/form/save.py", line 39, in cancel raise e Exception: [WNF] Warehouse Warehouse does not exist





On Tuesday, 6 August 2013 16:13:29 UTC+5:30, Nabin Hait wrote:
The error is coming because "Reserved Warehouse" is not mentioned in associated Sales Order. May be the item has been changed to "Stock Item" from "Non-stock Item" after making SO. I have added a validation which will check reserved warehouse in SO on submission of delivery note.

On 06-Aug-2013, at 2:45 PM, Satish wrote:

I don't have any custom scripts running. I think following is the full traceback:

Traceback (innermost last): File "../lib/webnotes/widgets/form/save.py", line 17, in savedocs getattr(wrapper, action.lower())() File "../lib/webnotes/model/bean.py", line 311, in submit self.run_method('on_submit') File "../lib/webnotes/model/bean.py", line 223, in run_method getattr(self.controller, method)() File "../app/stock/doctype/delivery_note/delivery_note.py", line 203, in on_submit self.update_stock_ledger(update_stock = 1) File "../app/stock/doctype/delivery_note/delivery_note.py", line 300, in update_stock_ledger get_obj("Warehouse", d["reserved_warehouse"]).update_bin(args) File "../lib/webnotes/model/code.py", line 136, in get_obj doclist = webnotes.model.doc.get(dt, dn, with_children = 0, from_controller=1) File "../lib/webnotes/model/doc.py", line 617, in get doc = Document(dt, dn, prefix=prefix) File "../lib/webnotes/model/doc.py", line 83, in __init__ self._loadfromdb(doctype, name) File "../lib/webnotes/model/doc.py", line 136, in _loadfromdb raise Exception, '[WNF] %s %s does not exist' % (self.doctype, self.name) Exception: [WNF] Warehouse Warehouse does not exist all-app.min.js:238
Traceback (innermost last): File "../lib/webnotes/handler.py", line 113, in handle execute_cmd(cmd) File "../lib/webnotes/handler.py", line 153, in execute_cmd ret = call(method, webnotes.form_dict) File "../lib/webnotes/handler.py", line 170, in call return fn(**newargs) File "../lib/webnotes/widgets/form/save.py", line 26, in savedocs raise e Exception: [WNF] Warehouse Warehouse does not exist

On Tuesday, 6 August 2013 14:25:12 UTC+5:30, Anand Doshi wrote:
Satish,

Is this the full traceback?

Also, do you have any custom script in Delivery Note?

Thanks,
Anand.

On 06-Aug-2013, at 1:45 PM, Satish <sa...@gmail.com> wrote:

Traceback (innermost last): File "../lib/webnotes/handler.py", line 113, in handle execute_cmd(cmd) File "../lib/webnotes/handler.py", line 153, in execute_cmd ret = call(method, webnotes.form_dict) File "../lib/webnotes/handler.py", line 170, in call return fn(**newargs) File "../lib/webnotes/widgets/form/save.py", line 26, in savedocs raise e Exception: [WNF] Warehouse Warehouse does not exist


It says warehouse does not exist. But I am using this warehouse elsewhere and it is working.



On Tuesday, 6 August 2013 12:40:46 UTC+5:30, Nabin Hait wrote:
Looking like there are some other error coming after this validation. Can you please attach error trace from console?

On 06-Aug-2013, at 12:29 PM, Satish wrote:

Attached is the screenshot.




On Tuesday, 6 August 2013 11:26:09 UTC+5:30, Nabin Hait wrote:
I can't replicate that, the system is giving duplicate item message but allowing me to save and submit delivery note. What is the message you are getting on saving delivery note?


On 05-Aug-2013, at 7:02 PM, Satish wrote:

Hi

I can create and submit a Sales Order with same item but with different valuations listed twice. But while making delivery I can't do so. Why??

Satish Gupta



You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 





You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 





You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 





You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 





You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 




You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

You should cancel all transactions for that item which affects stock balance and creates "Stock Ledger Entry". Then "Is Stock Item" field will be editable. After changing it to non-stock item and amending SO, you should revert it to "Stock" item and amend all the transactions you have cancelled earlier.

On 09-Aug-2013, at 12:32 PM, Satish wrote:

he item to be a non-stock item from a stock item.

Satish Gupta




You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.