please solve the under mention problem :-
A vendor is issued a purchase order for 200 pieces at 10 UNI/pc and 10% tax. there was a goods receipt of 140 pieces. the vendor sends an invoice for 200 pieces at 12 UNI/pc. The purchase manage decides on a partial reduction with quantity reduction with quantity variance. What will be accounting entries for the invoice and credit memo?.