To get Batch Number automatically for every warehouse with date

Hi,

I have a use case wherein I get mangoes to my company from 10 different farmers of three different locations (Warehouses) every week and I want to differentiate each week as a new batch by generating batch number automatically in the PINV based on the warehouse name and date something like WH.YYYYMMDD.

Can anyone plz suggest how can this be achieved.

Thanks,
Prasanna

1 Like

We can generate batch number based on current document info (For instance invoice number can be Supplier_Name.YYMM.###) but your requirement needs more than that. I think best approach is using hooks. You can generate new name based on purchase invoice info.

Thank you… will try your suggestion of hooks.