At the time of the purchase, inventory is an asset, so assets increases. The obligation to pay within in credit is a liability, so liabilities increase. At the time of the payment, when payment is made since cash is an asset, so the payment in cash decreases assets. On the other hand, obligation to pay was a liability, so the payment in cash decreases liabilities.