@things-factory/invoice 10.1.298 → 10.1.302
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-client/document/document-form.js +3 -1
- package/dist-client/pages/invoice-editor.js +4 -2
- package/dist-server/service/invoice/commercial-document.d.ts +2 -0
- package/dist-server/service/invoice/commercial-document.js +10 -0
- package/dist-server/service/invoice/invoice-document-file.d.ts +7 -0
- package/dist-server/service/invoice/invoice-query.js +2 -0
- package/dist-server/service/invoice/invoice-rules.d.ts +3 -1
- package/dist-server/service/invoice/invoice-rules.js +2 -0
- package/dist-server/service/invoice/invoice-type.d.ts +2 -0
- package/dist-server/service/invoice/invoice-type.js +8 -0
- package/dist-shared/document-print.d.ts +30 -5
- package/dist-shared/document-print.js +159 -35
- package/package.json +9 -9
- package/translations/en.json +10 -1
- package/translations/es.json +10 -1
- package/translations/ja.json +10 -1
- package/translations/ko.json +10 -1
- package/translations/ms.json +10 -1
- package/translations/zh.json +10 -1
|
@@ -6,9 +6,11 @@ export const HEAD_FIELDS = [
|
|
|
6
6
|
{ name: 'number', label: 'field.invoice-number' },
|
|
7
7
|
{ name: 'issueDate', label: 'field.invoice-issue-date' },
|
|
8
8
|
{ name: 'supplierName', label: 'field.invoice-party-name' },
|
|
9
|
+
{ name: 'supplierContact', label: 'field.invoice-party-contact' },
|
|
9
10
|
{ name: 'supplierRegistrationNumber', label: 'field.invoice-party-registration-number' },
|
|
10
11
|
{ name: 'supplierAddress', label: 'field.invoice-party-address', prose: true },
|
|
11
12
|
{ name: 'buyerName', label: 'field.invoice-party-name' },
|
|
13
|
+
{ name: 'buyerContact', label: 'field.invoice-party-contact' },
|
|
12
14
|
{ name: 'buyerRegistrationNumber', label: 'field.invoice-party-registration-number' },
|
|
13
15
|
{ name: 'buyerAddress', label: 'field.invoice-party-address', prose: true },
|
|
14
16
|
{ name: 'purchaseOrder', label: 'field.invoice-purchase-order' },
|
|
@@ -165,7 +167,7 @@ export function renderDocumentHead(value, editable, change, dates = nothing, num
|
|
|
165
167
|
const other = value.direction === 'PURCHASE' ? 'supplier' : 'buyer';
|
|
166
168
|
const party = (side, legend) => html `<fieldset class="form">
|
|
167
169
|
<legend>${i18next.t(legend)}</legend>
|
|
168
|
-
${side === other ? picker : nothing} ${['Name', 'RegistrationNumber', 'Address'].map(part => input(field(`${side}${part}`)))}
|
|
170
|
+
${side === other ? picker : nothing} ${['Name', 'Contact', 'RegistrationNumber', 'Address'].map(part => input(field(`${side}${part}`)))}
|
|
169
171
|
</fieldset>`;
|
|
170
172
|
return html `<div class="form">
|
|
171
173
|
${input({ ...field('number'), label: numberLabel })} ${input(field('issueDate'))}
|
|
@@ -25,8 +25,8 @@ import { previewInvoice } from '../invoice-preview';
|
|
|
25
25
|
import '../invoice-files';
|
|
26
26
|
import '@things-factory/biz-base/dist-client';
|
|
27
27
|
const FIELDS = `
|
|
28
|
-
id number status direction currency language counterpartyId counterparty { id name } supplierName supplierAddress supplierRegistrationNumber buyerName buyerAddress
|
|
29
|
-
buyerRegistrationNumber issueDate dueDate purchaseOrder paymentTerms bankDetails notes sourceReference taxBasis voidReason
|
|
28
|
+
id number status direction currency language counterpartyId counterparty { id name } supplierName supplierAddress supplierRegistrationNumber supplierContact buyerName buyerAddress
|
|
29
|
+
buyerRegistrationNumber buyerContact issueDate dueDate purchaseOrder paymentTerms bankDetails notes sourceReference taxBasis voidReason
|
|
30
30
|
discountAmount lineSupplyAmount supplyAmount taxAmount totalAmount taxRounding currencyDigits
|
|
31
31
|
items { position description quantity unit unitPrice discount taxKind taxRate supplyAmount receivedTaxAmount }
|
|
32
32
|
taxGroups { taxKind taxRate supplyAmount taxAmount }
|
|
@@ -40,9 +40,11 @@ const HEAD = [
|
|
|
40
40
|
'supplierName',
|
|
41
41
|
'supplierAddress',
|
|
42
42
|
'supplierRegistrationNumber',
|
|
43
|
+
'supplierContact',
|
|
43
44
|
'buyerName',
|
|
44
45
|
'buyerAddress',
|
|
45
46
|
'buyerRegistrationNumber',
|
|
47
|
+
'buyerContact',
|
|
46
48
|
'issueDate',
|
|
47
49
|
'dueDate',
|
|
48
50
|
'purchaseOrder',
|
|
@@ -11,9 +11,11 @@ export declare abstract class CommercialDocument {
|
|
|
11
11
|
supplierName: string;
|
|
12
12
|
supplierAddress?: string;
|
|
13
13
|
supplierRegistrationNumber?: string;
|
|
14
|
+
supplierContact?: string;
|
|
14
15
|
buyerName: string;
|
|
15
16
|
buyerAddress?: string;
|
|
16
17
|
buyerRegistrationNumber?: string;
|
|
18
|
+
buyerContact?: string;
|
|
17
19
|
issueDate?: string;
|
|
18
20
|
purchaseOrder?: string;
|
|
19
21
|
paymentTerms?: string;
|
|
@@ -56,6 +56,11 @@ tslib_1.__decorate([
|
|
|
56
56
|
(0, type_graphql_1.Field)({ nullable: true, description: 'Supplier business or tax registration number' }),
|
|
57
57
|
tslib_1.__metadata("design:type", String)
|
|
58
58
|
], CommercialDocument.prototype, "supplierRegistrationNumber", void 0);
|
|
59
|
+
tslib_1.__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
61
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The person on the supplier side the document comes from, as printed' }),
|
|
62
|
+
tslib_1.__metadata("design:type", String)
|
|
63
|
+
], CommercialDocument.prototype, "supplierContact", void 0);
|
|
59
64
|
tslib_1.__decorate([
|
|
60
65
|
(0, typeorm_1.Column)(),
|
|
61
66
|
(0, type_graphql_1.Field)({ description: 'Buyer name as printed' }),
|
|
@@ -71,6 +76,11 @@ tslib_1.__decorate([
|
|
|
71
76
|
(0, type_graphql_1.Field)({ nullable: true, description: 'Buyer business or tax registration number' }),
|
|
72
77
|
tslib_1.__metadata("design:type", String)
|
|
73
78
|
], CommercialDocument.prototype, "buyerRegistrationNumber", void 0);
|
|
79
|
+
tslib_1.__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
81
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The person on the buyer side the document is for, as printed' }),
|
|
82
|
+
tslib_1.__metadata("design:type", String)
|
|
83
|
+
], CommercialDocument.prototype, "buyerContact", void 0);
|
|
74
84
|
tslib_1.__decorate([
|
|
75
85
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
76
86
|
(0, type_graphql_1.Field)({ nullable: true, description: 'Issue date, YYYY-MM-DD' }),
|
|
@@ -17,4 +17,11 @@ export declare function documentFileOf(document: PrintedDocument, format: Docume
|
|
|
17
17
|
value?: string | null;
|
|
18
18
|
}[];
|
|
19
19
|
numberLabel?: string;
|
|
20
|
+
totalLabel?: string;
|
|
21
|
+
bandLabel?: string;
|
|
22
|
+
linesTitle?: string;
|
|
23
|
+
notesTitle?: string;
|
|
24
|
+
letter?: {
|
|
25
|
+
greeting: string;
|
|
26
|
+
};
|
|
20
27
|
}): Promise<DocumentFile>;
|
|
@@ -62,6 +62,8 @@ let InvoiceQuery = class InvoiceQuery {
|
|
|
62
62
|
return (0, invoice_document_file_1.documentFileOf)(invoice, format, {
|
|
63
63
|
...print,
|
|
64
64
|
title: print.t('title.invoice-print'),
|
|
65
|
+
linesTitle: print.t('text.invoice-print-lines'),
|
|
66
|
+
notesTitle: print.t('text.invoice-print-notes'),
|
|
65
67
|
terms: [{ label: print.t('field.invoice-due-date'), value: invoice.dueDate }]
|
|
66
68
|
});
|
|
67
69
|
}
|
|
@@ -60,7 +60,7 @@ export declare function taxGroupsOf(document: SavedDocument): TaxGroup[];
|
|
|
60
60
|
/** The lines' supply of a saved document before its discount, read back from its lines. */
|
|
61
61
|
export declare function lineSupplyOf(document: SavedDocument): number;
|
|
62
62
|
/** The fields every commercial document prints in its head, in the order the snapshot keeps them. */
|
|
63
|
-
export declare const HEADER_KEYS: readonly ["number", "direction", "currency", "language", "supplierName", "buyerName", "issueDate", "supplierAddress", "supplierRegistrationNumber", "buyerAddress", "buyerRegistrationNumber", "purchaseOrder", "paymentTerms", "bankDetails", "notes", "sourceReference"];
|
|
63
|
+
export declare const HEADER_KEYS: readonly ["number", "direction", "currency", "language", "supplierName", "buyerName", "issueDate", "supplierAddress", "supplierRegistrationNumber", "supplierContact", "buyerAddress", "buyerRegistrationNumber", "buyerContact", "purchaseOrder", "paymentTerms", "bankDetails", "notes", "sourceReference"];
|
|
64
64
|
/** The head of a document, trimmed and checked. */
|
|
65
65
|
export declare function normalizedHeader(input: Record<string, any>): {
|
|
66
66
|
number: string;
|
|
@@ -70,9 +70,11 @@ export declare function normalizedHeader(input: Record<string, any>): {
|
|
|
70
70
|
supplierName: any;
|
|
71
71
|
supplierAddress: any;
|
|
72
72
|
supplierRegistrationNumber: any;
|
|
73
|
+
supplierContact: any;
|
|
73
74
|
buyerName: any;
|
|
74
75
|
buyerAddress: any;
|
|
75
76
|
buyerRegistrationNumber: any;
|
|
77
|
+
buyerContact: any;
|
|
76
78
|
issueDate: any;
|
|
77
79
|
purchaseOrder: any;
|
|
78
80
|
paymentTerms: any;
|
|
@@ -108,8 +108,10 @@ exports.HEADER_KEYS = [
|
|
|
108
108
|
'issueDate',
|
|
109
109
|
'supplierAddress',
|
|
110
110
|
'supplierRegistrationNumber',
|
|
111
|
+
'supplierContact',
|
|
111
112
|
'buyerAddress',
|
|
112
113
|
'buyerRegistrationNumber',
|
|
114
|
+
'buyerContact',
|
|
113
115
|
'purchaseOrder',
|
|
114
116
|
'paymentTerms',
|
|
115
117
|
'bankDetails',
|
|
@@ -20,9 +20,11 @@ export declare abstract class DocumentInput {
|
|
|
20
20
|
supplierName: string;
|
|
21
21
|
supplierAddress?: string;
|
|
22
22
|
supplierRegistrationNumber?: string;
|
|
23
|
+
supplierContact?: string;
|
|
23
24
|
buyerName: string;
|
|
24
25
|
buyerAddress?: string;
|
|
25
26
|
buyerRegistrationNumber?: string;
|
|
27
|
+
buyerContact?: string;
|
|
26
28
|
issueDate?: string;
|
|
27
29
|
purchaseOrder?: string;
|
|
28
30
|
paymentTerms?: string;
|
|
@@ -76,6 +76,10 @@ tslib_1.__decorate([
|
|
|
76
76
|
(0, type_graphql_1.Field)({ nullable: true, description: 'Supplier business or tax registration number' }),
|
|
77
77
|
tslib_1.__metadata("design:type", String)
|
|
78
78
|
], DocumentInput.prototype, "supplierRegistrationNumber", void 0);
|
|
79
|
+
tslib_1.__decorate([
|
|
80
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The person on the supplier side the document comes from, as printed' }),
|
|
81
|
+
tslib_1.__metadata("design:type", String)
|
|
82
|
+
], DocumentInput.prototype, "supplierContact", void 0);
|
|
79
83
|
tslib_1.__decorate([
|
|
80
84
|
(0, type_graphql_1.Field)({ description: 'Buyer name as printed' }),
|
|
81
85
|
tslib_1.__metadata("design:type", String)
|
|
@@ -88,6 +92,10 @@ tslib_1.__decorate([
|
|
|
88
92
|
(0, type_graphql_1.Field)({ nullable: true, description: 'Buyer business or tax registration number' }),
|
|
89
93
|
tslib_1.__metadata("design:type", String)
|
|
90
94
|
], DocumentInput.prototype, "buyerRegistrationNumber", void 0);
|
|
95
|
+
tslib_1.__decorate([
|
|
96
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The person on the buyer side the document is for, as printed' }),
|
|
97
|
+
tslib_1.__metadata("design:type", String)
|
|
98
|
+
], DocumentInput.prototype, "buyerContact", void 0);
|
|
91
99
|
tslib_1.__decorate([
|
|
92
100
|
(0, type_graphql_1.Field)({ nullable: true, description: 'Issue date, YYYY-MM-DD' }),
|
|
93
101
|
tslib_1.__metadata("design:type", String)
|
|
@@ -18,16 +18,41 @@ export type PrintOptions = {
|
|
|
18
18
|
}[];
|
|
19
19
|
/** How the kind names its number. */
|
|
20
20
|
numberLabel?: string;
|
|
21
|
+
/** How the kind names what the buyer pays - 「청구 금액」, 「견적 금액」. */
|
|
22
|
+
totalLabel?: string;
|
|
23
|
+
/**
|
|
24
|
+
* How the band at the top names the supply, tax apart: 「공급가액」 on an invoice, so the amount due reads once, with
|
|
25
|
+
* tax, in the totals (the user 2026-11-20); a quotation names it 「견적 금액」.
|
|
26
|
+
*/
|
|
27
|
+
bandLabel?: string;
|
|
28
|
+
/** The heading over the lines - 「청구 내역」, 「견적 내역」 - in the print's language. */
|
|
29
|
+
linesTitle?: string;
|
|
30
|
+
/** The heading over the terms and notes - 「비고」, 「특기 사항」 - in the print's language. */
|
|
31
|
+
notesTitle?: string;
|
|
32
|
+
/**
|
|
33
|
+
* A letter's head, as a quotation is written (2026-11-20, the user: 「견적서에서는 "공급받는자"라고 용어를 사용하지는
|
|
34
|
+
* 않을 것」 · 「회사와 담당자 000 님 귀하」): the buyer is addressed - its name and its person - not listed as a party, and
|
|
35
|
+
* the sentence under it says what the sheet offers. The amount follows as a band of its own. Without it, the two
|
|
36
|
+
* parties stand side by side as an invoice lists them.
|
|
37
|
+
*/
|
|
38
|
+
letter?: {
|
|
39
|
+
greeting: string;
|
|
40
|
+
};
|
|
21
41
|
};
|
|
22
|
-
|
|
23
|
-
export declare const DOCUMENT_CSS = "\n @page{size:A4;margin:18mm}\n body{font:13px/1.5 system-ui,sans-serif;color:#000}\n h1{font-size:26px;margin:0}\n h2{font-size:13px;color:#555;margin:0 0 4px}\n header,.parties{display:flex;justify-content:space-between;gap:32px}\n .parties section{flex:1}\n table{width:100%;border-collapse:collapse;margin:24px 0}\n th,td{padding:8px;border-bottom:1px solid #999;text-align:right;font-variant-numeric:tabular-nums}\n th:first-child,td:first-child{text-align:left}\n .text{white-space:pre-wrap}\n .totals{width:50%;margin-left:auto}\n .grand td{font-weight:600;font-size:15px}\n tr{break-inside:avoid}\n";
|
|
42
|
+
export declare const DOCUMENT_CSS = "\n @page{size:A4;margin:16mm 15mm}\n *{box-sizing:border-box}\n body{margin:0;font:10pt/1.55 'NanumGothic','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic','Noto Sans CJK KR',sans-serif;color:#1d2329;word-break:keep-all;overflow-wrap:anywhere;\n -webkit-print-color-adjust:exact;print-color-adjust:exact}\n p{margin:0}\n .muted{color:#66707a}\n .num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}\n .mid{text-align:center;white-space:nowrap}\n .head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;padding-bottom:10px;border-bottom:2px solid #1d2329}\n .head h1{margin:0;font-size:24pt;font-weight:700;letter-spacing:.25em}\n .meta{border-collapse:collapse}\n .meta th{padding:1px 12px 1px 0;font-weight:400;color:#66707a;text-align:left;white-space:nowrap}\n .meta td{padding:1px 0;text-align:left;white-space:nowrap}\n .parties{display:flex;gap:12px;margin:14px 0 0}\n .party{flex:1;border:1.5px solid #1d2329}\n .party h2{margin:0;padding:5px 10px;font-size:9pt;font-weight:700;color:#3d464f;background:#f1f3f5;border-bottom:1px solid #9aa3ab}\n .party table{width:100%;border-collapse:collapse}\n .party th{width:7.5em;padding:4px 8px;font-weight:400;color:#66707a;text-align:left;vertical-align:top;white-space:nowrap;background:#f7f8f9;border-right:1px solid #dde2e6}\n .party td{padding:4px 8px;vertical-align:top}\n .party tr + tr th,.party tr + tr td{border-top:1px solid #dde2e6}\n .party .name td{font-weight:700}\n .reference{margin-top:10px}\n .lines{width:100%;border-collapse:collapse;margin:18px 0 0;border:1.5px solid #1d2329}\n .lines th,.lines td{border:1px solid #9aa3ab}\n .lines th{padding:6px 8px;font-size:9pt;font-weight:700;color:#3d464f;background:#f1f3f5;border-bottom:1.5px solid #1d2329;text-align:center;white-space:nowrap}\n .lines td{padding:7px 8px;vertical-align:top}\n .lines td.text{white-space:pre-wrap}\n .totals{width:56%;margin:10px 0 0 auto;border-collapse:collapse;border:1.5px solid #1d2329}\n .totals th,.totals td{border:1px solid #9aa3ab}\n .totals th{padding:5px 8px;font-size:9pt;font-weight:700;color:#3d464f;background:#f1f3f5;text-align:center}\n .totals td{padding:5px 8px}\n .totals td:first-child{background:#f7f8f9}\n .totals .grand td{padding:9px 8px;font-size:13pt;font-weight:700;border-top:1.5px solid #1d2329;background:#f1f3f5}\n .totals .grand small{display:block;font-size:8pt;font-weight:400;color:#66707a}\n .terms{padding:10px 12px;border:1.5px solid #1d2329}\n .part{margin:0 0 6px;padding-left:8px;font-size:10.5pt;font-weight:700;border-left:4px solid #1d2329;line-height:1.2;text-align:left}\n caption.part{caption-side:top}\n .notes{margin-top:20px}\n .title{padding-bottom:10px;border-bottom:2px solid #1d2329;text-align:center}\n .title h1{margin:0;font-size:26pt;font-weight:700;letter-spacing:.5em;text-indent:.5em}\n .letter{display:flex;gap:14px;margin-top:16px;align-items:stretch}\n .addressee{flex:1;display:flex;flex-direction:column;gap:6px}\n .addressee .to{font-size:15pt;font-weight:700;padding-bottom:4px;border-bottom:1px solid #1d2329}\n .addressee .attn{font-size:11.5pt}\n .addressee .meta{margin-top:4px}\n .addressee .greeting{margin-top:auto;padding-top:8px}\n .letter .party{flex:1.1}\n .band{width:100%;margin-top:14px;border-collapse:collapse;border:1.5px solid #1d2329}\n .band th{width:28%;padding:10px 12px;font-size:11pt;font-weight:700;text-align:left;background:#f1f3f5;border-right:1px solid #9aa3ab}\n .band th small{display:block;font-size:8pt;font-weight:400;color:#66707a}\n .band td{padding:10px 12px;font-size:12pt;font-weight:700}\n .band td.words{letter-spacing:.05em}\n .band td.num{font-size:14pt}\n .terms p{white-space:pre-wrap}\n .terms p + p{margin-top:8px}\n /*\n * When the page turns, no part is cut in two (the user 2026-11-20: \u300C\uD398\uC774\uC9C0\uAC00 \uB118\uC5B4\uAC00\uB294 \uACBD\uC6B0 \uC911\uAC04\uC5D0 \uC139\uC158\uC774 \uC798\uB9AC\uC9C0 \uC54A\uB3C4\uB85D\u300D):\n * the head, the parties, the band and the totals stay whole; a heading is part of what it heads (the lines'\n * caption, the notes' section); the lines turn between rows, their header row printed again on the next page; the\n * notes stay whole unless longer than a page, then turn between paragraphs.\n */\n .head,.title,.letter,.parties,.party,.band,.totals,.notes,.terms p,tr{break-inside:avoid;page-break-inside:avoid}\n .part{break-after:avoid;page-break-after:avoid}\n .lines thead{display:table-header-group}\n .lines + .totals{break-before:avoid;page-break-before:avoid}\n";
|
|
24
43
|
/**
|
|
25
44
|
* On a screen, the page as a sheet of A4 on a grey desk with the print's margins - the preview reads as the PDF will.
|
|
26
45
|
* Printing and the PDF read the print media, where none of this applies.
|
|
27
46
|
*/
|
|
28
|
-
export declare const DOCUMENT_SCREEN_CSS = "\n@media screen {\n html{background:#e9edf1}\n body{margin:0;padding:24px 0}\n .sheet{box-sizing:border-box;width:210mm;min-height:297mm;margin:0 auto;padding:
|
|
29
|
-
/**
|
|
30
|
-
export declare function
|
|
47
|
+
export declare const DOCUMENT_SCREEN_CSS = "\n@media screen {\n html{background:#e9edf1}\n body{margin:0;padding:24px 0}\n .sheet{box-sizing:border-box;width:210mm;min-height:297mm;margin:0 auto;padding:16mm 15mm;background:#fff;\n box-shadow:0 1px 3px rgba(23,36,44,.12),0 8px 24px rgba(23,36,44,.08)}\n}\n@media screen and (max-width:210mm) {\n .sheet{width:auto;min-height:0;margin:0 8px;padding:8mm}\n}\n";
|
|
48
|
+
/** 330000000 as Korean words - 「삼억삼천만」 - the way an amount is written out under a figure on a quotation. */
|
|
49
|
+
export declare function koreanAmountWords(value: number): string;
|
|
50
|
+
/**
|
|
51
|
+
* The document's sheet - the head, the parties, the amount, the lines, the totals and the terms - without a page around
|
|
52
|
+
* it. Each part stands in its own box under its own heading. A column every line leaves empty (no unit, no discount,
|
|
53
|
+
* one taxation for all) is left out; the taxation then reads once, in the totals.
|
|
54
|
+
*/
|
|
55
|
+
export declare function documentBody(document: PrintedDocument, { language, t: word, title, terms, numberLabel, totalLabel, bandLabel, linesTitle, notesTitle, letter }: PrintOptions): string;
|
|
31
56
|
/**
|
|
32
57
|
* The document as one HTML page - what the preview shows and the browser prints. Only escaped business data enters
|
|
33
58
|
* the page.
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DOCUMENT_SCREEN_CSS = exports.DOCUMENT_CSS = exports.PRINT_LANGUAGES = void 0;
|
|
4
4
|
exports.printLanguageOf = printLanguageOf;
|
|
5
|
+
exports.koreanAmountWords = koreanAmountWords;
|
|
5
6
|
exports.documentBody = documentBody;
|
|
6
7
|
exports.documentHtml = documentHtml;
|
|
7
8
|
exports.documentFileName = documentFileName;
|
|
@@ -13,21 +14,77 @@ function printLanguageOf(language) {
|
|
|
13
14
|
return exports.PRINT_LANGUAGES.includes(language) ? language : undefined;
|
|
14
15
|
}
|
|
15
16
|
const escape = (text) => String(text ?? '').replace(/[&<>"']/g, c => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);
|
|
16
|
-
|
|
17
|
+
/*
|
|
18
|
+
* The look of the printed page - A4 with its margins. One family for the Hangul, the Latin and the digits: NanumGothic
|
|
19
|
+
* is TrueType, so the PDF keeps it as a real font (Noto CJK's OpenType collection went in as Type 3 glyphs beside
|
|
20
|
+
* DejaVu digits, 2026-11-20); the others are what a reader's own machine has for the preview.
|
|
21
|
+
*/
|
|
17
22
|
exports.DOCUMENT_CSS = `
|
|
18
|
-
@page{size:A4;margin:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
.
|
|
28
|
-
.
|
|
29
|
-
.
|
|
30
|
-
|
|
23
|
+
@page{size:A4;margin:16mm 15mm}
|
|
24
|
+
*{box-sizing:border-box}
|
|
25
|
+
body{margin:0;font:10pt/1.55 'NanumGothic','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic','Noto Sans CJK KR',sans-serif;color:#1d2329;word-break:keep-all;overflow-wrap:anywhere;
|
|
26
|
+
-webkit-print-color-adjust:exact;print-color-adjust:exact}
|
|
27
|
+
p{margin:0}
|
|
28
|
+
.muted{color:#66707a}
|
|
29
|
+
.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
|
|
30
|
+
.mid{text-align:center;white-space:nowrap}
|
|
31
|
+
.head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;padding-bottom:10px;border-bottom:2px solid #1d2329}
|
|
32
|
+
.head h1{margin:0;font-size:24pt;font-weight:700;letter-spacing:.25em}
|
|
33
|
+
.meta{border-collapse:collapse}
|
|
34
|
+
.meta th{padding:1px 12px 1px 0;font-weight:400;color:#66707a;text-align:left;white-space:nowrap}
|
|
35
|
+
.meta td{padding:1px 0;text-align:left;white-space:nowrap}
|
|
36
|
+
.parties{display:flex;gap:12px;margin:14px 0 0}
|
|
37
|
+
.party{flex:1;border:1.5px solid #1d2329}
|
|
38
|
+
.party h2{margin:0;padding:5px 10px;font-size:9pt;font-weight:700;color:#3d464f;background:#f1f3f5;border-bottom:1px solid #9aa3ab}
|
|
39
|
+
.party table{width:100%;border-collapse:collapse}
|
|
40
|
+
.party th{width:7.5em;padding:4px 8px;font-weight:400;color:#66707a;text-align:left;vertical-align:top;white-space:nowrap;background:#f7f8f9;border-right:1px solid #dde2e6}
|
|
41
|
+
.party td{padding:4px 8px;vertical-align:top}
|
|
42
|
+
.party tr + tr th,.party tr + tr td{border-top:1px solid #dde2e6}
|
|
43
|
+
.party .name td{font-weight:700}
|
|
44
|
+
.reference{margin-top:10px}
|
|
45
|
+
.lines{width:100%;border-collapse:collapse;margin:18px 0 0;border:1.5px solid #1d2329}
|
|
46
|
+
.lines th,.lines td{border:1px solid #9aa3ab}
|
|
47
|
+
.lines th{padding:6px 8px;font-size:9pt;font-weight:700;color:#3d464f;background:#f1f3f5;border-bottom:1.5px solid #1d2329;text-align:center;white-space:nowrap}
|
|
48
|
+
.lines td{padding:7px 8px;vertical-align:top}
|
|
49
|
+
.lines td.text{white-space:pre-wrap}
|
|
50
|
+
.totals{width:56%;margin:10px 0 0 auto;border-collapse:collapse;border:1.5px solid #1d2329}
|
|
51
|
+
.totals th,.totals td{border:1px solid #9aa3ab}
|
|
52
|
+
.totals th{padding:5px 8px;font-size:9pt;font-weight:700;color:#3d464f;background:#f1f3f5;text-align:center}
|
|
53
|
+
.totals td{padding:5px 8px}
|
|
54
|
+
.totals td:first-child{background:#f7f8f9}
|
|
55
|
+
.totals .grand td{padding:9px 8px;font-size:13pt;font-weight:700;border-top:1.5px solid #1d2329;background:#f1f3f5}
|
|
56
|
+
.totals .grand small{display:block;font-size:8pt;font-weight:400;color:#66707a}
|
|
57
|
+
.terms{padding:10px 12px;border:1.5px solid #1d2329}
|
|
58
|
+
.part{margin:0 0 6px;padding-left:8px;font-size:10.5pt;font-weight:700;border-left:4px solid #1d2329;line-height:1.2;text-align:left}
|
|
59
|
+
caption.part{caption-side:top}
|
|
60
|
+
.notes{margin-top:20px}
|
|
61
|
+
.title{padding-bottom:10px;border-bottom:2px solid #1d2329;text-align:center}
|
|
62
|
+
.title h1{margin:0;font-size:26pt;font-weight:700;letter-spacing:.5em;text-indent:.5em}
|
|
63
|
+
.letter{display:flex;gap:14px;margin-top:16px;align-items:stretch}
|
|
64
|
+
.addressee{flex:1;display:flex;flex-direction:column;gap:6px}
|
|
65
|
+
.addressee .to{font-size:15pt;font-weight:700;padding-bottom:4px;border-bottom:1px solid #1d2329}
|
|
66
|
+
.addressee .attn{font-size:11.5pt}
|
|
67
|
+
.addressee .meta{margin-top:4px}
|
|
68
|
+
.addressee .greeting{margin-top:auto;padding-top:8px}
|
|
69
|
+
.letter .party{flex:1.1}
|
|
70
|
+
.band{width:100%;margin-top:14px;border-collapse:collapse;border:1.5px solid #1d2329}
|
|
71
|
+
.band th{width:28%;padding:10px 12px;font-size:11pt;font-weight:700;text-align:left;background:#f1f3f5;border-right:1px solid #9aa3ab}
|
|
72
|
+
.band th small{display:block;font-size:8pt;font-weight:400;color:#66707a}
|
|
73
|
+
.band td{padding:10px 12px;font-size:12pt;font-weight:700}
|
|
74
|
+
.band td.words{letter-spacing:.05em}
|
|
75
|
+
.band td.num{font-size:14pt}
|
|
76
|
+
.terms p{white-space:pre-wrap}
|
|
77
|
+
.terms p + p{margin-top:8px}
|
|
78
|
+
/*
|
|
79
|
+
* When the page turns, no part is cut in two (the user 2026-11-20: 「페이지가 넘어가는 경우 중간에 섹션이 잘리지 않도록」):
|
|
80
|
+
* the head, the parties, the band and the totals stay whole; a heading is part of what it heads (the lines'
|
|
81
|
+
* caption, the notes' section); the lines turn between rows, their header row printed again on the next page; the
|
|
82
|
+
* notes stay whole unless longer than a page, then turn between paragraphs.
|
|
83
|
+
*/
|
|
84
|
+
.head,.title,.letter,.parties,.party,.band,.totals,.notes,.terms p,tr{break-inside:avoid;page-break-inside:avoid}
|
|
85
|
+
.part{break-after:avoid;page-break-after:avoid}
|
|
86
|
+
.lines thead{display:table-header-group}
|
|
87
|
+
.lines + .totals{break-before:avoid;page-break-before:avoid}
|
|
31
88
|
`;
|
|
32
89
|
/**
|
|
33
90
|
* On a screen, the page as a sheet of A4 on a grey desk with the print's margins - the preview reads as the PDF will.
|
|
@@ -37,39 +94,106 @@ exports.DOCUMENT_SCREEN_CSS = `
|
|
|
37
94
|
@media screen {
|
|
38
95
|
html{background:#e9edf1}
|
|
39
96
|
body{margin:0;padding:24px 0}
|
|
40
|
-
.sheet{box-sizing:border-box;width:210mm;min-height:297mm;margin:0 auto;padding:
|
|
97
|
+
.sheet{box-sizing:border-box;width:210mm;min-height:297mm;margin:0 auto;padding:16mm 15mm;background:#fff;
|
|
41
98
|
box-shadow:0 1px 3px rgba(23,36,44,.12),0 8px 24px rgba(23,36,44,.08)}
|
|
42
99
|
}
|
|
43
100
|
@media screen and (max-width:210mm) {
|
|
44
101
|
.sheet{width:auto;min-height:0;margin:0 8px;padding:8mm}
|
|
45
102
|
}
|
|
46
103
|
`;
|
|
47
|
-
/**
|
|
48
|
-
function
|
|
104
|
+
/** 330000000 as Korean words - 「삼억삼천만」 - the way an amount is written out under a figure on a quotation. */
|
|
105
|
+
function koreanAmountWords(value) {
|
|
106
|
+
const digits = ['', '일', '이', '삼', '사', '오', '육', '칠', '팔', '구'];
|
|
107
|
+
const places = ['', '십', '백', '천'];
|
|
108
|
+
const groups = ['', '만', '억', '조', '경'];
|
|
109
|
+
let rest = Math.floor(Math.abs(Number(value) || 0));
|
|
110
|
+
if (!rest)
|
|
111
|
+
return '영';
|
|
112
|
+
const words = [];
|
|
113
|
+
for (let group = 0; rest > 0 && group < groups.length; group++) {
|
|
114
|
+
const four = rest % 10000;
|
|
115
|
+
rest = Math.floor(rest / 10000);
|
|
116
|
+
if (!four)
|
|
117
|
+
continue;
|
|
118
|
+
let part = '';
|
|
119
|
+
for (let place = 3; place >= 0; place--) {
|
|
120
|
+
const digit = Math.floor(four / 10 ** place) % 10;
|
|
121
|
+
if (digit)
|
|
122
|
+
part += digits[digit] + places[place];
|
|
123
|
+
}
|
|
124
|
+
words.unshift(part + groups[group]);
|
|
125
|
+
}
|
|
126
|
+
return words.join('');
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* The document's sheet - the head, the parties, the amount, the lines, the totals and the terms - without a page around
|
|
130
|
+
* it. Each part stands in its own box under its own heading. A column every line leaves empty (no unit, no discount,
|
|
131
|
+
* one taxation for all) is left out; the taxation then reads once, in the totals.
|
|
132
|
+
*/
|
|
133
|
+
function documentBody(document, { language, t: word, title, terms, numberLabel = 'field.invoice-number', totalLabel = 'field.invoice-total-amount', bandLabel = 'field.invoice-supply-amount', linesTitle, notesTitle, letter }) {
|
|
49
134
|
const t = (key) => escape(word(key));
|
|
50
135
|
/* A table's cells carry numbers; the total carries its currency, as the print's language writes money. */
|
|
51
136
|
const amount = (value) => escape((0, document_money_js_1.documentNumber)(value ?? 0, document.currency, language, true));
|
|
52
137
|
const money = (value) => escape((0, document_money_js_1.documentAmount)(value ?? 0, document.currency, language));
|
|
53
138
|
const kind = (taxKind) => taxKind === 'ZERO_RATED' ? t('text.tax-kind-zero-rated') : taxKind === 'EXEMPT' ? t('text.tax-kind-exempt') : t('text.tax-kind-taxable');
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
139
|
+
const taxation = (one) => `${kind(one.taxKind)}${one.taxKind === 'TAXABLE' ? ` ${escape(one.taxRate)}%` : ''}`;
|
|
140
|
+
const filled = (value) => value !== null && value !== undefined && String(value).trim() !== '';
|
|
141
|
+
const row = (label, value, className = '') => filled(value) ? `<tr class="${className}"><th>${label}</th><td>${escape(value).replace(/\n/g, '<br>')}</td></tr>` : '';
|
|
142
|
+
const party = (label, side) => `<section class="party"><h2>${label}</h2><table><tbody>${row(t('field.invoice-print-name'), document[`${side}Name`], 'name')}${row(t('field.invoice-print-contact'), document[`${side}Contact`])}${row(t('field.invoice-print-registration-number'), document[`${side}RegistrationNumber`])}${row(t('field.invoice-print-address'), document[`${side}Address`])}</tbody></table></section>`;
|
|
143
|
+
const heading = (text) => (text ? `<h3 class="part">${escape(text)}</h3>` : '');
|
|
144
|
+
const meta = `<table class="meta"><tbody>${row(t(numberLabel), document.number)}${row(t('field.invoice-issue-date'), document.issueDate)}${terms
|
|
145
|
+
.map(one => row(escape(one.label), one.value))
|
|
146
|
+
.join('')}</tbody></table>`;
|
|
147
|
+
const items = document.items ?? [];
|
|
148
|
+
const groups = document.taxGroups ?? [];
|
|
149
|
+
const withUnit = items.some(item => filled(item.unit));
|
|
150
|
+
const withDiscount = items.some(item => Number(item.discount) > 0);
|
|
151
|
+
const withTaxation = new Set(items.map(item => `${item.taxKind}/${item.taxRate}`)).size > 1;
|
|
152
|
+
const columns = [
|
|
153
|
+
{ head: t('field.invoice-line-description'), cell: (item) => `<td class="text">${escape(item.description)}</td>` },
|
|
154
|
+
{ head: t('field.invoice-quantity'), cell: (item) => `<td class="num">${escape(item.quantity)}</td>` },
|
|
155
|
+
...(withUnit ? [{ head: t('field.invoice-unit'), cell: (item) => `<td class="mid">${escape(item.unit)}</td>` }] : []),
|
|
156
|
+
{ head: t('field.invoice-unit-price'), cell: (item) => `<td class="num">${amount(item.unitPrice)}</td>` },
|
|
157
|
+
...(withDiscount ? [{ head: t('field.invoice-discount'), cell: (item) => `<td class="num">${amount(item.discount)}</td>` }] : []),
|
|
158
|
+
...(withTaxation ? [{ head: t('field.invoice-tax-kind'), cell: (item) => `<td class="mid">${taxation(item)}</td>` }] : []),
|
|
159
|
+
{ head: t('field.invoice-supply-amount'), cell: (item) => `<td class="num">${amount(item.supplyAmount)}</td>` }
|
|
160
|
+
];
|
|
161
|
+
const sumRow = (label, supply, tax) => `<tr><td>${label}</td><td class="num">${supply}</td><td class="num">${tax}</td></tr>`;
|
|
162
|
+
const taxIncluded = Number(document.taxAmount) > 0 ? `<small>${t('text.invoice-print-tax-included')}</small>` : '';
|
|
163
|
+
/*
|
|
164
|
+
* The band at the top is the supply - tax apart - written out in Korean words as a Korean quotation is (「일금
|
|
165
|
+
* 삼억원정」); the total with tax closes the totals below (the user 2026-11-20: 「맨 윗부분 금액은 부가세 별도, 아래 견적
|
|
166
|
+
* 금액은 부가세 포함」).
|
|
167
|
+
*/
|
|
168
|
+
const taxApart = Number(document.taxAmount) > 0 ? `<small>${t('text.invoice-print-tax-apart')}</small>` : '';
|
|
169
|
+
const inWords = language === 'ko' && document.currency === 'KRW' ? `일금 ${koreanAmountWords(document.supplyAmount)}원정` : '';
|
|
170
|
+
const band = `<table class="band"><tbody><tr><th>${t(bandLabel)}${taxApart}</th>${inWords ? `<td class="words">${escape(inWords)}</td>` : ''}<td class="num">${money(document.supplyAmount)}</td></tr></tbody></table>`;
|
|
171
|
+
const notes = ['paymentTerms', 'bankDetails', 'notes'].filter(key => filled(document[key]));
|
|
172
|
+
const head = letter
|
|
173
|
+
? `<header class="title"><h1>${escape(title)}</h1></header>
|
|
174
|
+
<div class="letter">
|
|
175
|
+
<section class="addressee">
|
|
176
|
+
<p class="to">${escape(document.buyerName)}</p>
|
|
177
|
+
${filled(document.buyerContact) ? `<p class="attn">${language === 'ko' ? `${escape(document.buyerContact)} 님 귀하` : `Attn. ${escape(document.buyerContact)}`}</p>` : ''}
|
|
178
|
+
${meta}
|
|
179
|
+
<p class="greeting">${escape(letter.greeting)}</p>
|
|
180
|
+
</section>
|
|
181
|
+
${party(t('field.invoice-supplier-name'), 'supplier')}
|
|
182
|
+
</div>
|
|
183
|
+
${band}`
|
|
184
|
+
: `<header class="head"><h1>${escape(title)}</h1>${meta}</header>
|
|
185
|
+
<div class="parties">${party(t('field.invoice-supplier-name'), 'supplier')}${party(t('field.invoice-buyer-name'), 'buyer')}</div>
|
|
186
|
+
${band}`;
|
|
187
|
+
return `<div class="sheet${letter ? ' letter-form' : ''}" lang="${language}">
|
|
188
|
+
${head}
|
|
189
|
+
${document.purchaseOrder ? `<p class="reference"><span class="muted">${t('field.invoice-purchase-order')}</span> ${escape(document.purchaseOrder)}</p>` : ''}
|
|
190
|
+
<table class="lines">${linesTitle ? `<caption class="part">${escape(linesTitle)}</caption>` : ''}<thead><tr>${columns.map(one => `<th>${one.head}</th>`).join('')}</tr></thead><tbody>${items
|
|
191
|
+
.map(item => `<tr>${columns.map(one => one.cell(item)).join('')}</tr>`)
|
|
63
192
|
.join('')}</tbody></table>
|
|
64
|
-
<table class="totals"><tbody>${Number(document.discountAmount) > 0
|
|
65
|
-
?
|
|
66
|
-
: ''}${(
|
|
67
|
-
|
|
68
|
-
.join('')}<tr><td>${t('field.invoice-sum')}</td><td>${amount(document.supplyAmount)}</td><td>${amount(document.taxAmount)}</td></tr><tr class="grand"><td colspan="2">${t('field.invoice-total-amount')}</td><td>${money(document.totalAmount)}</td></tr></tbody></table>
|
|
69
|
-
${['paymentTerms', 'bankDetails', 'notes']
|
|
70
|
-
.filter(key => document[key])
|
|
71
|
-
.map(key => `<p class="text">${escape(document[key])}</p>`)
|
|
72
|
-
.join('')}
|
|
193
|
+
<table class="totals"><thead><tr><th></th><th>${t('field.invoice-supply-amount')}</th><th>${t('field.invoice-tax-amount')}</th></tr></thead><tbody>${Number(document.discountAmount) > 0
|
|
194
|
+
? sumRow(t('field.invoice-line-sum'), amount(document.lineSupplyAmount), '') + sumRow(t('field.invoice-discount'), `− ${amount(document.discountAmount)}`, '')
|
|
195
|
+
: ''}${groups.length > 1 ? groups.map(group => sumRow(taxation(group), amount(group.supplyAmount), amount(group.taxAmount))).join('') : ''}${sumRow(groups.length === 1 ? `${t('field.invoice-sum')} <span class="muted">(${taxation(groups[0])})</span>` : t('field.invoice-sum'), amount(document.supplyAmount), amount(document.taxAmount))}<tr class="grand"><td>${t(totalLabel)}${taxIncluded}</td><td class="num" colspan="2">${money(document.totalAmount)}</td></tr></tbody></table>
|
|
196
|
+
${notes.length ? `<section class="notes">${heading(notesTitle)}<div class="terms">${notes.map(key => `<p>${escape(document[key])}</p>`).join('')}</div></section>` : ''}
|
|
73
197
|
</div>`;
|
|
74
198
|
}
|
|
75
199
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/invoice",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.302",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"files": [
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
"@operato/shell": "^10.29.69",
|
|
49
49
|
"@operato/styles": "^10.29.1",
|
|
50
50
|
"@operato/utils": "^10.0.0",
|
|
51
|
-
"@things-factory/ai-assistant": "^10.1.
|
|
52
|
-
"@things-factory/attachment-base": "^10.1.
|
|
53
|
-
"@things-factory/auth-base": "^10.1.
|
|
54
|
-
"@things-factory/biz-base": "^10.1.
|
|
55
|
-
"@things-factory/pdf": "^10.1.
|
|
56
|
-
"@things-factory/setting-base": "^10.1.
|
|
57
|
-
"@things-factory/shell": "^10.1.
|
|
51
|
+
"@things-factory/ai-assistant": "^10.1.302",
|
|
52
|
+
"@things-factory/attachment-base": "^10.1.302",
|
|
53
|
+
"@things-factory/auth-base": "^10.1.302",
|
|
54
|
+
"@things-factory/biz-base": "^10.1.302",
|
|
55
|
+
"@things-factory/pdf": "^10.1.302",
|
|
56
|
+
"@things-factory/setting-base": "^10.1.302",
|
|
57
|
+
"@things-factory/shell": "^10.1.302",
|
|
58
58
|
"graphql-upload": "^15.0.2"
|
|
59
59
|
},
|
|
60
60
|
"publishConfig": {
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"url": "git+https://github.com/hatiolab/things-factory.git",
|
|
68
68
|
"directory": "packages/invoice"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "2e754aaeafcd39f5c6f4b7c8847a6c60ffe0789c"
|
|
71
71
|
}
|
package/translations/en.json
CHANGED
|
@@ -115,5 +115,14 @@
|
|
|
115
115
|
"error.invoice-defaults-valid-days": "Quotation validity of {value} days cannot be kept. Enter a whole number from {min} to {max}.",
|
|
116
116
|
"error.invoice-defaults-payment-days": "Payment due of {value} days cannot be kept. Enter a whole number from {min} to {max}.",
|
|
117
117
|
"error.invoice-defaults-payment-terms-too-many": "Up to {max} payment terms; there are {count}.",
|
|
118
|
-
"work.invoice.invoices": "Invoices"
|
|
118
|
+
"work.invoice.invoices": "Invoices",
|
|
119
|
+
"field.invoice-print-name": "Name",
|
|
120
|
+
"field.invoice-print-registration-number": "Registration no.",
|
|
121
|
+
"field.invoice-print-address": "Address",
|
|
122
|
+
"text.invoice-print-tax-included": "Tax included",
|
|
123
|
+
"field.invoice-party-contact": "contact",
|
|
124
|
+
"field.invoice-print-contact": "Contact",
|
|
125
|
+
"text.invoice-print-lines": "Details",
|
|
126
|
+
"text.invoice-print-notes": "Payment and notes",
|
|
127
|
+
"text.invoice-print-tax-apart": "Tax excluded"
|
|
119
128
|
}
|
package/translations/es.json
CHANGED
|
@@ -115,5 +115,14 @@
|
|
|
115
115
|
"error.invoice-defaults-valid-days": "No se puede guardar una validez de {value} días. Introduzca un número entero de {min} a {max}.",
|
|
116
116
|
"error.invoice-defaults-payment-days": "No se puede guardar un plazo de pago de {value} días. Introduzca un número entero de {min} a {max}.",
|
|
117
117
|
"error.invoice-defaults-payment-terms-too-many": "Hasta {max} condiciones de pago; hay {count}.",
|
|
118
|
-
"work.invoice.invoices": "Facturas"
|
|
118
|
+
"work.invoice.invoices": "Facturas",
|
|
119
|
+
"field.invoice-print-name": "Razón social",
|
|
120
|
+
"field.invoice-print-registration-number": "N.º de registro",
|
|
121
|
+
"field.invoice-print-address": "Dirección",
|
|
122
|
+
"text.invoice-print-tax-included": "Impuestos incluidos",
|
|
123
|
+
"field.invoice-party-contact": "contacto",
|
|
124
|
+
"field.invoice-print-contact": "Contacto",
|
|
125
|
+
"text.invoice-print-lines": "Detalle",
|
|
126
|
+
"text.invoice-print-notes": "Pago y notas",
|
|
127
|
+
"text.invoice-print-tax-apart": "Impuestos no incluidos"
|
|
119
128
|
}
|
package/translations/ja.json
CHANGED
|
@@ -115,5 +115,14 @@
|
|
|
115
115
|
"error.invoice-defaults-valid-days": "見積有効日数 {value} は使えません。{min}から{max}までの整数で入力してください。",
|
|
116
116
|
"error.invoice-defaults-payment-days": "支払期限日数 {value} は使えません。{min}から{max}までの整数で入力してください。",
|
|
117
117
|
"error.invoice-defaults-payment-terms-too-many": "支払条件は{max}件までです。現在{count}件です。",
|
|
118
|
-
"work.invoice.invoices": "請求書の作成・発行"
|
|
118
|
+
"work.invoice.invoices": "請求書の作成・発行",
|
|
119
|
+
"field.invoice-print-name": "商号",
|
|
120
|
+
"field.invoice-print-registration-number": "事業者登録番号",
|
|
121
|
+
"field.invoice-print-address": "住所",
|
|
122
|
+
"text.invoice-print-tax-included": "税込",
|
|
123
|
+
"field.invoice-party-contact": "担当者",
|
|
124
|
+
"field.invoice-print-contact": "担当者",
|
|
125
|
+
"text.invoice-print-lines": "請求明細",
|
|
126
|
+
"text.invoice-print-notes": "支払情報・備考",
|
|
127
|
+
"text.invoice-print-tax-apart": "税抜"
|
|
119
128
|
}
|
package/translations/ko.json
CHANGED
|
@@ -115,5 +115,14 @@
|
|
|
115
115
|
"error.invoice-defaults-valid-days": "견적 유효 일수 {value}은(는) 쓸 수 없습니다. {min}부터 {max}까지의 정수로 입력하세요.",
|
|
116
116
|
"error.invoice-defaults-payment-days": "지급 기한 일수 {value}은(는) 쓸 수 없습니다. {min}부터 {max}까지의 정수로 입력하세요.",
|
|
117
117
|
"error.invoice-defaults-payment-terms-too-many": "지급 조건은 {max}개까지입니다. 지금 {count}개입니다.",
|
|
118
|
-
"work.invoice.invoices": "청구서 작성 · 발행"
|
|
118
|
+
"work.invoice.invoices": "청구서 작성 · 발행",
|
|
119
|
+
"field.invoice-print-name": "상호",
|
|
120
|
+
"field.invoice-print-registration-number": "사업자등록번호",
|
|
121
|
+
"field.invoice-print-address": "주소",
|
|
122
|
+
"text.invoice-print-tax-included": "부가세 포함",
|
|
123
|
+
"field.invoice-party-contact": "담당자",
|
|
124
|
+
"field.invoice-print-contact": "담당자",
|
|
125
|
+
"text.invoice-print-lines": "청구 내역",
|
|
126
|
+
"text.invoice-print-notes": "결제 정보 및 비고",
|
|
127
|
+
"text.invoice-print-tax-apart": "부가세 별도"
|
|
119
128
|
}
|
package/translations/ms.json
CHANGED
|
@@ -115,5 +115,14 @@
|
|
|
115
115
|
"error.invoice-defaults-valid-days": "Tempoh sah sebut harga {value} hari tidak boleh disimpan. Masukkan nombor bulat dari {min} hingga {max}.",
|
|
116
116
|
"error.invoice-defaults-payment-days": "Tempoh bayaran {value} hari tidak boleh disimpan. Masukkan nombor bulat dari {min} hingga {max}.",
|
|
117
117
|
"error.invoice-defaults-payment-terms-too-many": "Maksimum {max} syarat bayaran; kini ada {count}.",
|
|
118
|
-
"work.invoice.invoices": "Invois"
|
|
118
|
+
"work.invoice.invoices": "Invois",
|
|
119
|
+
"field.invoice-print-name": "Nama",
|
|
120
|
+
"field.invoice-print-registration-number": "No. pendaftaran",
|
|
121
|
+
"field.invoice-print-address": "Alamat",
|
|
122
|
+
"text.invoice-print-tax-included": "Termasuk cukai",
|
|
123
|
+
"field.invoice-party-contact": "orang dihubungi",
|
|
124
|
+
"field.invoice-print-contact": "Orang dihubungi",
|
|
125
|
+
"text.invoice-print-lines": "Butiran",
|
|
126
|
+
"text.invoice-print-notes": "Bayaran dan catatan",
|
|
127
|
+
"text.invoice-print-tax-apart": "Tidak termasuk cukai"
|
|
119
128
|
}
|
package/translations/zh.json
CHANGED
|
@@ -115,5 +115,14 @@
|
|
|
115
115
|
"error.invoice-defaults-valid-days": "报价有效天数 {value} 无法保存。请输入 {min} 到 {max} 之间的整数。",
|
|
116
116
|
"error.invoice-defaults-payment-days": "付款期限天数 {value} 无法保存。请输入 {min} 到 {max} 之间的整数。",
|
|
117
117
|
"error.invoice-defaults-payment-terms-too-many": "付款条件最多 {max} 条,现在有 {count} 条。",
|
|
118
|
-
"work.invoice.invoices": "发票编写与开具"
|
|
118
|
+
"work.invoice.invoices": "发票编写与开具",
|
|
119
|
+
"field.invoice-print-name": "名称",
|
|
120
|
+
"field.invoice-print-registration-number": "营业登记号",
|
|
121
|
+
"field.invoice-print-address": "地址",
|
|
122
|
+
"text.invoice-print-tax-included": "含税",
|
|
123
|
+
"field.invoice-party-contact": "联系人",
|
|
124
|
+
"field.invoice-print-contact": "联系人",
|
|
125
|
+
"text.invoice-print-lines": "账单明细",
|
|
126
|
+
"text.invoice-print-notes": "付款信息及备注",
|
|
127
|
+
"text.invoice-print-tax-apart": "不含税"
|
|
119
128
|
}
|