Hello everyone I have created a sub from in Material in voucher from which multiple "Production(new voucher type)" entries will be created. But when I am putting the values in the form the Quantity of Stock items is not coming according to the unit allocated in the respective stock item. The code and company are attached. Please Help.
With my limited knowledge in function, I think it is because in the Function you have defined QTY variable as a NUMBER.