@unimaze/billing 0.21.0 → 0.21.1

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/README.md CHANGED
@@ -21,8 +21,8 @@ A form for creating an invoice and submitting it to the MAPI transaction service
21
21
 
22
22
  ## Updating the version ##
23
23
  - `yarn version --major` - updates the major version number 1.x.x
24
- - `yarn version --minor` - updates the major version number x.1.x
25
- - `yarn version --patch` - updates the major version number x.x.1
24
+ - `yarn version --minor` - updates the minor version number x.1.x
25
+ - `yarn version --patch` - updates the patch version number x.x.1
26
26
 
27
27
  Make sure you have a remote branch already on BitBucket before running the version command.
28
28
  Make sure that you update the version number in the `standalone-billing` repository that consumes this package
@@ -163,6 +163,14 @@ var AttachmentModal = function (props) {
163
163
  },
164
164
  fileList: props.attachments.map(function (attachment) { return attachment.file; }),
165
165
  disabled: isUploading || props.attachments.length >= 3,
166
+ customRequest: function (_a) {
167
+ var onSuccess = _a.onSuccess;
168
+ if (onSuccess) {
169
+ setTimeout(function () {
170
+ onSuccess("ok");
171
+ }, 0);
172
+ }
173
+ }
166
174
  };
167
175
  return (React.createElement(antd_1.Modal, { open: props.isModalOpen, onCancel: function () { return props.setIsModalOpen(false); }, title: props.intl.formatMessage(translationMessages.attachment_title), footer: React.createElement(antd_1.Button, { disabled: isSaveAttachmentsDisabled, icon: React.createElement(icons_1.CheckCircleOutlined, null), type: "primary", style: { width: "100%" }, size: "large", onClick: function () {
168
176
  props.onSave();
@@ -67,6 +67,10 @@ export declare const translationMessages: {
67
67
  id: string;
68
68
  defaultMessage: string;
69
69
  };
70
+ supplier_notFound: {
71
+ id: string;
72
+ defaultMessage: string;
73
+ };
70
74
  };
71
75
  interface Props extends WrappedComponentProps {
72
76
  receiverRequirements: NewReceiverRequirements;
@@ -117,6 +117,10 @@ exports.translationMessages = (0, react_intl_1.defineMessages)({
117
117
  id: "supplier_vatNumber_mandatory",
118
118
  defaultMessage: "VAT number is required if some document lines are using any tax category type other than 'Outside tax scope'",
119
119
  },
120
+ supplier_notFound: {
121
+ id: "supplier_notFound",
122
+ defaultMessage: "Did not find information about name and address of party from entered identifier",
123
+ },
120
124
  });
121
125
  var Supplier = function (props) {
122
126
  var width = (0, react_use_1.useWindowSize)().width;
@@ -190,7 +194,7 @@ var Supplier = function (props) {
190
194
  // The request was made and the server responded with a status code
191
195
  // that falls out of the range of 2xx
192
196
  if (error.response.status === 404) {
193
- antd_1.message.warning("Fann ekki uppl\u00FDsingar um nafn og heimilisfang a\u00F0ila \u00FAt fr\u00E1 innsleginni kennit\u00F6lu");
197
+ antd_1.message.warning(props.intl.formatMessage(exports.translationMessages.supplier_notFound));
194
198
  }
195
199
  else {
196
200
  antd_1.message.error(error.response.statusText);
@@ -148,6 +148,7 @@
148
148
  "supplier_contact_phoneNumber": "Phone number",
149
149
  "supplier_identifier": "Supplier identifier",
150
150
  "supplier_name": "Supplier name",
151
+ "supplier_notFound": "Did not find information about name and address of party from entered identifier",
151
152
  "supplier_notValidEmail": "This is not a valid E-Mail",
152
153
  "supplier_notVatRegistered": "Not VAT registered",
153
154
  "supplier_title": "Supplier",
@@ -148,6 +148,7 @@
148
148
  "supplier_contact_phoneNumber": "Símanúmer",
149
149
  "supplier_identifier": "Kennitala",
150
150
  "supplier_name": "Nafn birgja",
151
+ "supplier_notFound": "Fann ekki upplýsingar um nafn og heimilisfang aðila út frá innsleginni kennitölu",
151
152
  "supplier_notValidEmail": "Þetta er ekki gilt netfang",
152
153
  "supplier_notVatRegistered": "Ekki VSK skyldur rekstur",
153
154
  "supplier_title": "Birgi",
@@ -149,6 +149,7 @@ declare const _default: {
149
149
  supplier_contact_phoneNumber: string;
150
150
  supplier_identifier: string;
151
151
  supplier_name: string;
152
+ supplier_notFound: string;
152
153
  supplier_notValidEmail: string;
153
154
  supplier_notVatRegistered: string;
154
155
  supplier_title: string;
@@ -330,6 +331,7 @@ declare const _default: {
330
331
  supplier_contact_phoneNumber: string;
331
332
  supplier_identifier: string;
332
333
  supplier_name: string;
334
+ supplier_notFound: string;
333
335
  supplier_notValidEmail: string;
334
336
  supplier_notVatRegistered: string;
335
337
  supplier_title: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unimaze/billing",
3
- "version": "0.21.0",
3
+ "version": "0.21.1",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",