@things-factory/sales 10.1.304 → 10.1.308
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.
|
@@ -14,6 +14,7 @@ import { isMobileDevice } from '@operato/utils';
|
|
|
14
14
|
import { SELECTION_ROW_PICKER } from '@things-factory/ai-assistant/dist-client/index.js';
|
|
15
15
|
import { counterpartOf, documentAmount, issuePeriodOf } from '@things-factory/invoice/dist-client';
|
|
16
16
|
import { QUOTATION_STATUSES, quotationFilters } from '../list-filters';
|
|
17
|
+
import { previewQuotation } from '../quotation-preview';
|
|
17
18
|
import { quotationStatusWord } from '../quotation-words';
|
|
18
19
|
const today = () => new Date().toLocaleDateString('en-CA');
|
|
19
20
|
/**
|
|
@@ -39,6 +40,17 @@ let QuotationList = class QuotationList extends localize(i18next)(PageView) {
|
|
|
39
40
|
navigate(`quotation-editor?id=${row.id}`);
|
|
40
41
|
}
|
|
41
42
|
};
|
|
43
|
+
/* The picked quotation as it goes out - the same preview the editor and the 360 open (the user, 2026-11-24). */
|
|
44
|
+
this.previewAction = {
|
|
45
|
+
title: i18next.t('button.preview'),
|
|
46
|
+
icon: 'preview',
|
|
47
|
+
single: true,
|
|
48
|
+
action: () => {
|
|
49
|
+
const row = this.grist.selected?.[0];
|
|
50
|
+
if (row?.id)
|
|
51
|
+
previewQuotation({ id: row.id, number: row.number, version: row.version, language: row.language });
|
|
52
|
+
}
|
|
53
|
+
};
|
|
42
54
|
}
|
|
43
55
|
static { this.styles = [WorkSurfacePageStyles, CommonGristStyles, CommonHeaderStyles, ScrollbarStyles]; }
|
|
44
56
|
get context() {
|
|
@@ -77,7 +89,7 @@ let QuotationList = class QuotationList extends localize(i18next)(PageView) {
|
|
|
77
89
|
list="quotations"
|
|
78
90
|
axis="quotation"
|
|
79
91
|
.labelOf=${(row) => [row.number && `${row.number} v${row.version}`, counterpartOf(row)].filter(Boolean).join(' · ')}
|
|
80
|
-
.actions=${[this.editAction]}
|
|
92
|
+
.actions=${[this.previewAction, this.editAction]}
|
|
81
93
|
></ox-assistant-selection-bar>
|
|
82
94
|
<div slot="headroom" class="header">
|
|
83
95
|
<div class="filters"><ox-filters-form without-search></ox-filters-form></div>
|
|
@@ -163,6 +175,7 @@ let QuotationList = class QuotationList extends localize(i18next)(PageView) {
|
|
|
163
175
|
number
|
|
164
176
|
version
|
|
165
177
|
status
|
|
178
|
+
language
|
|
166
179
|
direction
|
|
167
180
|
currency
|
|
168
181
|
supplierName
|
package/dist-client/route.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function route(page: string): "quotation-
|
|
1
|
+
export default function route(page: string): "quotation-editor" | "quotation-list" | "opportunity-list" | "opportunity-editor" | "sales-product-list" | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/sales",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.308",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"files": [
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"@things-factory/invoice": "^10.1.304",
|
|
64
64
|
"@things-factory/shell": "^10.1.304"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "fb1e5f82471a206f641bcc5b79bbb9db909cc0a1"
|
|
67
67
|
}
|