Different HSN code for sales and Purchase

I have situation where item is book where printing book has one HSN and same item for sales has different HSN. i can not use print and selling item different because printing (supplier/printer) is considered as a company warehouse so when printing is finished then stock of those books will be credited in supplier warehouse (company’s) over purchase reciept. how can i can manage this situation ?