What is the textbook 发展汉语：高级口语（I) referring to about the etymology of 买单? From the textbook 发展汉语：高级口语（I) page 82 (image), we have the following:

据统计，现代汉语中每年大概要出现1000个左右新词新语。有的是随着新事物、新现象、新观念的出现而产生的，如“手机”“宽带”；有的是来自外语或汉语方言的，如“脱口秀”“买单”；有的是旧词语有了新的用法和含义，如“下课”“菜单”;还有的是词语衍生或缩略形成的，如由“白领”“蓝领”衍生的“金领”“粉领”、“个人演唱会”的缩略形成“个唱”。
菜单 (cài​dān)：指列有各种菜肴的清单。现在指电脑程序进行中出现在显示屏上的选顶列表。

I'm curious as to what it's referring to in regards to 买单.

买单 (mǎi​dān)
CC-CEDICT: to pay the restaurant bill

Question: What is the textbook referring to about the etymology of 买单?
Google indicates a relationship between 买单 and 埋单:

埋单 (mái​dān)
CC-CEDICT: to pay the bill (in a restaurant etc) (loanword from Cantonese) / (fig.) to bear responsibility

So maybe 买单 is a variant of 埋单 which is a loanword of something from Cantonese.  I don't really know.
In short, 買單 comes from 埋單 because Cantonese 埋 (tone 4, 陽平, contour 21 or 11) sounds very similar to Mandarin 買 (tone 3, 上聲, contour 214) where the ending rise isn't sounded when followed by 單.
Here Cantonese 埋 means to &quot;settle&quot;, &quot;finish off&quot;, or &quot;draw near&quot;. E.g. 埋數 (finish off the numbers / do accounting), 埋位 (settle in to a seat), 埋口 (heal up an open wound).
The below are from references in Wikipedia 埋單, mentioned by @水巷孑蠻. Translations mine.
Lau Tin Chi (劉天賜)
Wen Wei Po 2003-02-08, &quot;俗語趣談：埋單&quot; (archived version)

解釋：結賬、算賬，也有俗解成死亡、完結。現在內地、台灣等地方漸受香港語言影響，亦以「埋單」表示結賬。但用錯了字，以為是「買單」，殊不知「埋」字是廣府話的神髓。


Explanation: to pay a bill, to settle a bill [or score]; also popularly interpreted as [causing] death, finishing off. Nowadays in Mainland, Taiwan, etc., being gradually influenced by Hong Kong language [usage], &quot;埋單&quot; is also used to express paying of a bill. But the wrong word is used, it is thought to be &quot;買單&quot;, and hardly known that &quot;埋&quot; is quintessence of Cantonese.

Dr Lam Kin Ping (林建平博士)
Archived version of CUHK 普通話速遞 No. 48, &quot;衣食住行AA制&quot;

「買單」源自「埋單」
上文提到「買單」，原為粵方言詞，寫作「埋單」。「埋」是收攏、靠攏的意思，埋單就是把消費的帳單收攏在一起最後結帳。粵語的「埋單」和普通話的「買單」讀音相合：「埋」（mai），粵語是個低平調（陽平），一般認為調值是21；「買」（mai），普通話單唸是個降升調，但在「買單」一詞中，則讀作半三聲，調值211，與粵語的低平調非常脗合。因此，「埋單」進入普通話後，多寫作「買單」。可以說，普通話的「買單」，借用了粵語的音，然後另起爐灶，造了「買單」這個新詞。


&quot;買單&quot; sourced from &quot;埋單&quot;
&quot;買單&quot; mentioned in the text above is originally a Cantonese phrase, written &quot;埋單&quot;. &quot;埋&quot; has the meaning of gathering, drawing close; 埋單 is to gather in the bills of expenses together for a final paying of the bill. Cantonese &quot;埋單&quot; and Mandarin &quot;買單&quot; have matching pronunciations: &quot;埋&quot; (mai) in Cantonese has lower level tone (light level) [i.e. tone 4], commonly held to have tone value 21; &quot;買&quot; (mai) read alone in Mandarin has falling-rising tone, but in the phrase &quot;買單&quot;, is read in half-third-tone, tone value 211, quite a match with Cantonese lower level tone. Thus, &quot;埋單&quot; after entering Mandarin [usage], is mostly written &quot;買單&quot;. One may say, Mandarin's &quot;買單&quot; has borrowed the pronunciation in Cantonese, then set up its own shop, creating the new phrase &quot;買單&quot;.