Dear Sir / Madam, I have attached a code which is intended to automatically post a stock journal. The stock journal moves the stock from the current loaction (after purchase) to a new location called "Lab". The code is triggered as soon as we save the purchase voucher. The code is not working, showing a error that collection batch allocation does not exist. Kindly advice. Regards Vinod