I need your assistance on the posting entries created when we post Purchase credit memo with discount. In my setup i have Purchase account same as Direct cost acccount in essense they zero-ize, when we post Purchase Invoice it then posts to inventory account, payables and disccount received correctly. However when we reverse (purchase credit-memo) the entries created are somehow wrong, it posts back into that account of Purchase & Direct costs, hence i have balance in that account.
How do we get it correct?