There is another theory that this term originated from a phrase, 'Take the (last) amiable attitude (toward a customer),' said to a hostess by a chef who received an offer for the bill.
また、かつて会計を頼まれた際女将などに対して「（お客さんに最後の）愛想をすませといて」と言ったのが元という説もある