purchase invoice is using debit to Account value from the account of warehouse not from the list of accounts i selected . it happens when the update stock checkbox is checked
Try to check the expense account set in your Item Master for the item in question.