I have to make accounting module for pharmacy. Tell me whether I'm making rite entry or not

Event is "Purchase of stock from manufacture on credit"
Account are
Manufacture_account Credit
Inventory Debit

Also tell me what will be its closing entry, is it correct

Manufacture_account Debit
Purchase_account Credit

Or I have to close manufacture_account in A/P