@zeniai/client-epic-state 5.2.22-betaAK0 → 5.2.22-betaAK1
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.
|
@@ -7,6 +7,7 @@ export const initialInvoicingBrandingFormLocalData = {
|
|
|
7
7
|
dateFormat: '',
|
|
8
8
|
defaultMemo: '',
|
|
9
9
|
email: '',
|
|
10
|
+
invoiceFooterText: '',
|
|
10
11
|
invoicePrefix: '',
|
|
11
12
|
logoFileId: '',
|
|
12
13
|
phone: '',
|
|
@@ -19,6 +20,7 @@ export const entityToInvoicingBrandingFormLocalData = (settings) => ({
|
|
|
19
20
|
dateFormat: settings?.date_format ?? '',
|
|
20
21
|
defaultMemo: settings?.default_memo ?? '',
|
|
21
22
|
email: settings?.email ?? '',
|
|
23
|
+
invoiceFooterText: settings?.invoice_footer_text ?? '',
|
|
22
24
|
invoicePrefix: settings?.invoice_prefix ?? '',
|
|
23
25
|
logoFileId: settings?.logo_file_id ?? '',
|
|
24
26
|
phone: settings?.phone ?? '',
|
|
@@ -39,6 +41,9 @@ export const brandingLocalDataToSettingsPayload = (localData, address) => ({
|
|
|
39
41
|
date_format: trimOrUndefined(localData.dateFormat),
|
|
40
42
|
default_memo: trimOrUndefined(localData.defaultMemo),
|
|
41
43
|
email: trimOrUndefined(localData.email),
|
|
44
|
+
// Sent even when blank: "" is how the API is told to hide the footer line,
|
|
45
|
+
// so this one must not collapse to `undefined` like the fields above.
|
|
46
|
+
invoice_footer_text: localData.invoiceFooterText.trim(),
|
|
42
47
|
invoice_prefix: trimOrUndefined(localData.invoicePrefix),
|
|
43
48
|
logo_file_id: localData.logoFileId,
|
|
44
49
|
phone: trimOrUndefined(localData.phone),
|
|
@@ -10,6 +10,7 @@ exports.initialInvoicingBrandingFormLocalData = {
|
|
|
10
10
|
dateFormat: '',
|
|
11
11
|
defaultMemo: '',
|
|
12
12
|
email: '',
|
|
13
|
+
invoiceFooterText: '',
|
|
13
14
|
invoicePrefix: '',
|
|
14
15
|
logoFileId: '',
|
|
15
16
|
phone: '',
|
|
@@ -22,6 +23,7 @@ const entityToInvoicingBrandingFormLocalData = (settings) => ({
|
|
|
22
23
|
dateFormat: settings?.date_format ?? '',
|
|
23
24
|
defaultMemo: settings?.default_memo ?? '',
|
|
24
25
|
email: settings?.email ?? '',
|
|
26
|
+
invoiceFooterText: settings?.invoice_footer_text ?? '',
|
|
25
27
|
invoicePrefix: settings?.invoice_prefix ?? '',
|
|
26
28
|
logoFileId: settings?.logo_file_id ?? '',
|
|
27
29
|
phone: settings?.phone ?? '',
|
|
@@ -43,6 +45,9 @@ const brandingLocalDataToSettingsPayload = (localData, address) => ({
|
|
|
43
45
|
date_format: trimOrUndefined(localData.dateFormat),
|
|
44
46
|
default_memo: trimOrUndefined(localData.defaultMemo),
|
|
45
47
|
email: trimOrUndefined(localData.email),
|
|
48
|
+
// Sent even when blank: "" is how the API is told to hide the footer line,
|
|
49
|
+
// so this one must not collapse to `undefined` like the fields above.
|
|
50
|
+
invoice_footer_text: localData.invoiceFooterText.trim(),
|
|
46
51
|
invoice_prefix: trimOrUndefined(localData.invoicePrefix),
|
|
47
52
|
logo_file_id: localData.logoFileId,
|
|
48
53
|
phone: trimOrUndefined(localData.phone),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "5.2.22-
|
|
3
|
+
"version": "5.2.22-betaAK1",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/esm/index.js",
|