@social-mail/social-mail-client 1.9.30 → 1.9.31

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.30",
3
+ "version": "1.9.31",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -15,6 +15,9 @@ import { Sql } from "../../../../common/Sql";
15
15
  import StoreItemService from "../../../../services/store/StoreItemService";
16
16
  import { SaveIconTextButton } from "../../../../common/controls/buttons/IconButton";
17
17
  import Action from "@web-atoms/core/dist/view-model/Action";
18
+ import FormField from "@web-atoms/web-controls/dist/basic/FormField";
19
+ import DateField from "@web-atoms/web-controls/dist/basic/DateField";
20
+ import DateTime from "@web-atoms/date-time/dist/DateTime";
18
21
 
19
22
  export default class EditOrderPage extends ContentPage<Partial<IStoreJournal>> {
20
23
 
@@ -45,6 +48,7 @@ export default class EditOrderPage extends ContentPage<Partial<IStoreJournal>> {
45
48
  storeID,
46
49
  buyer: null,
47
50
  seller: null,
51
+ dateCreated: DateTime.now,
48
52
  lineItems: [
49
53
  StoreJournalLineItem.create({
50
54
  item: null,
@@ -75,6 +79,13 @@ export default class EditOrderPage extends ContentPage<Partial<IStoreJournal>> {
75
79
  <label text={x.name}/>
76
80
  </div>}
77
81
  />
82
+
83
+ <FormField label="Invoice Date">
84
+ <DateField
85
+ value={Bind.twoWays(() => this.model.dateCreated)}
86
+ />
87
+ </FormField>
88
+
78
89
  </Form>
79
90
 
80
91
  <CollectionEditorEx