@unimaze/billing 0.12.16 → 0.12.17

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.
@@ -22,7 +22,7 @@ interface Props extends InjectedIntlProps, FormItemProps {
22
22
  onlyLabelOnFirstInList?: boolean;
23
23
  index?: number;
24
24
  }
25
- declare const _default: React.ComponentClass<Pick<Props, "normalize" | "required" | "label" | "style" | "help" | "children" | "name" | "validateTrigger" | "dependencies" | "getValueFromEvent" | "rules" | "shouldUpdate" | "trigger" | "validateFirst" | "valuePropName" | "getValueProps" | "messageVariables" | "initialValue" | "onReset" | "className" | "id" | "prefixCls" | "isListField" | "colon" | "extra" | "htmlFor" | "index" | "fieldName" | "noStyle" | "hasFeedback" | "validateStatus" | "fieldKey" | "labelAlign" | "labelCol" | "wrapperCol" | "receiverRequirements" | "receiverRequirementsKey" | "defaultLabel" | "defaultLabelTooltip" | "defaultIsRequired" | "additionalRules" | "verticalLabels" | "onlyLabelOnFirstInList">, any> & {
25
+ declare const _default: React.ComponentClass<Pick<Props, "normalize" | "required" | "label" | "style" | "help" | "children" | "name" | "validateTrigger" | "prefixCls" | "className" | "id" | "trigger" | "onReset" | "colon" | "dependencies" | "getValueFromEvent" | "rules" | "shouldUpdate" | "validateFirst" | "valuePropName" | "getValueProps" | "messageVariables" | "initialValue" | "isListField" | "extra" | "htmlFor" | "index" | "fieldName" | "noStyle" | "hasFeedback" | "validateStatus" | "fieldKey" | "labelAlign" | "labelCol" | "wrapperCol" | "receiverRequirements" | "receiverRequirementsKey" | "defaultLabel" | "defaultLabelTooltip" | "defaultIsRequired" | "additionalRules" | "verticalLabels" | "onlyLabelOnFirstInList">, any> & {
26
26
  WrappedComponent: React.ComponentType<Props & InjectedIntlProps>;
27
27
  };
28
28
  export default _default;
@@ -129,26 +129,7 @@ var CreateInvoiceConstructor = function (props) {
129
129
  values.attachments.file3 && values.attachments.file3,
130
130
  ];
131
131
  // Clear the array of undefined
132
- attachments = attachments.filter(function (attachment) { return attachment.file !== undefined; });
133
- // Verify the attachment
134
- // attachments.forEach(att => {
135
- // const ifFileIsValid = reportIfFileIsValid(att.file[0], {
136
- // uploadErrorToLarge: "to large",
137
- // uploadErrorWrongType: "wrong type",
138
- // uploadFailed: "failed",
139
- // })
140
- // if(!ifFileIsValid) {
141
- // return;
142
- // }
143
- //
144
- // })
145
- // const billingLinesArray: BillingLineMetadata[] = form.getFieldValue("billingLinesMetadata");
146
- // if (!billingLinesArray || billingLinesArray.length <= 0) {
147
- // message.error(intl.formatMessage(translationMessages.createInvoice_addDocumentLineMsg))
148
- // // TODO: handle this better?
149
- // setSubmitting(false);
150
- // return;
151
- // }
132
+ attachments = attachments.filter(function (attachment) { return (attachment.file !== undefined) && (attachment.file && attachment.file.length > 0); });
152
133
  if (!chosenCustomer) {
153
134
  antd_1.message.error(intl.formatMessage(translationMessages.createInvoice_selectCustomerMsg));
154
135
  // TODO: handle this better?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unimaze/billing",
3
- "version": "0.12.16",
3
+ "version": "0.12.17",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",