@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-client",
3
- "version": "1.9.24",
3
+ "version": "1.9.25",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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"