mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-31 22:04:06 +08:00
1 parent
bbd8a03cbc
commit
a62b108eb1
2 files changed
+18
-7
No files matched your search
@@ -7552,10 +7552,10 @@ function renderInvoiceSettings() {
|
||||
const choices = candidates.map(entry => [entry.key, entry.invoice.number || entry.invoice.code || `${entry.invoice.kind} · ${entry.index + 1}`]);
|
||||
if (invoicePanel.drafts.has("new")) choices.push(["new", "新建"]);
|
||||
if (choices.length) settingsSelect(context, "发票", "InvoiceEntry", choices, invoicePanel.key, value => { invoicePanel.key = value; loadDocumentSettings(); });
|
||||
const actions = document.createElement("div");
|
||||
actions.className = "invoice-actions";
|
||||
context.append(actions);
|
||||
if (state.editing) {
|
||||
const actions = document.createElement("div");
|
||||
actions.className = "invoice-actions";
|
||||
context.append(actions);
|
||||
settingsButton("新建", newInvoiceDraft, false, "InvoiceNew", actions);
|
||||
settingsButton("导入", () => readInvoiceFile(async text => {
|
||||
const value = await newInvoiceDraft();
|
||||
|
||||
Reference in new issue
Block a user