@social-mail/social-mail-client 1.9.24 → 1.9.25
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/site-editor-app/SiteEditorApp.pack.js +9 -2
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/site-editor-app/pages/store/order/EditOrderPage.d.ts.map +1 -1
- package/dist/site-editor-app/pages/store/order/EditOrderPage.js +9 -2
- package/dist/site-editor-app/pages/store/order/EditOrderPage.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/site-editor-app/pages/store/order/EditOrderPage.tsx +12 -2
package/package.json
CHANGED
|
@@ -84,7 +84,6 @@ export default class EditOrderPage extends ContentPage<Partial<IStoreJournal>> {
|
|
|
84
84
|
addItemDefaults={({ item: null, itemPrice: null, quantity: 1 })}
|
|
85
85
|
event-item-deleted={(ce) => this.onLineItemDeleted(ce.detail)}
|
|
86
86
|
itemRenderer={(line: IStoreJournalLineItem) => <div
|
|
87
|
-
data-layout="row"
|
|
88
87
|
data-align-items="flex-start">
|
|
89
88
|
<ReferenceEditor
|
|
90
89
|
label=""
|
|
@@ -106,7 +105,9 @@ export default class EditOrderPage extends ContentPage<Partial<IStoreJournal>> {
|
|
|
106
105
|
addNewDefaults={Bind.source(line, (x) => ({ storeItemID: x.source.itemID }))}
|
|
107
106
|
event-reference-updated={(ce) => this.onItemPriceUpdated(line, ce.detail)}
|
|
108
107
|
searchQuery={(q: Query<IStoreItemPrice>, search) =>
|
|
109
|
-
q.where({ id: line.itemID }, (p) => (x) => x.storeItemID === p.id
|
|
108
|
+
q.where({ id: line.itemID }, (p) => (x) => x.storeItemID === p.id
|
|
109
|
+
&& x.active === true
|
|
110
|
+
)
|
|
110
111
|
}
|
|
111
112
|
itemRenderer={(x) => <div text={`${x.currency} ${x.amount}`}></div>}
|
|
112
113
|
/>
|
|
@@ -116,6 +117,8 @@ export default class EditOrderPage extends ContentPage<Partial<IStoreJournal>> {
|
|
|
116
117
|
readOnly={true}
|
|
117
118
|
value={Bind.source(line, (x) => x.source.amount)}/>
|
|
118
119
|
|
|
120
|
+
<div text={Bind.source(line, (x) => x.source.total)}></div>
|
|
121
|
+
|
|
119
122
|
<div
|
|
120
123
|
data-layout="vertical-flex"
|
|
121
124
|
style-padding="0"
|
|
@@ -151,6 +154,13 @@ export default class EditOrderPage extends ContentPage<Partial<IStoreJournal>> {
|
|
|
151
154
|
</table>
|
|
152
155
|
</Expander>
|
|
153
156
|
|
|
157
|
+
<footer data-layout="flex-wrap-padding">
|
|
158
|
+
<div data-layout="row">
|
|
159
|
+
<label>Total</label>
|
|
160
|
+
<label text={this.model.total}/>
|
|
161
|
+
</div>
|
|
162
|
+
</footer>
|
|
163
|
+
|
|
154
164
|
<footer data-layout="command-row">
|
|
155
165
|
<SaveIconTextButton
|
|
156
166
|
data-click-event="save-order"
|