Hi Rahul,
Please check line item 2 for the difference in LC1 and LC2.
Splitting was not balanced therefore system exercised the Zero Balance account. The transfer of $840 was correct in LC2, however, when situation arises like this system creates zero balance item with the actual amount that got split. Now the point where account payable account came from is the configuration your system carries in Classify G/L accounts for document splitting. System is looking to settle the $0.01 against the balance sheet account associated with the transaction $840. In your case account payable account was picked and needed to be increased by $0.01 to balance the characteristics or balance sheet.
Thanks
Naseem