Split Payment with same method in POS

Is there a way how to do split payment with same method for 1 POS Invoice?

Let’s say we use POS for restaurant business and now we have POS Invoice with total $70.
And customer want to split the payment with their friend.
So $70 need to splitted into 2 payments:
Customer A : Cash $30
Friend of Customer A : Cash $40

I tried to create POS Invoice and input 2 records of payments “Cash”. but in the POS Closing Entry, the second “cash” data is not calculated.

here one of my pos invoice

this is how my closing entry looks like