@unimaze/billing 0.21.7 → 0.21.8

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.
@@ -129,7 +129,7 @@ var BaseInformation = function (props) {
129
129
  };
130
130
  var checkIfEmpty = function (date) {
131
131
  if (!date) {
132
- props.form.resetFields(["invoice", "dueDate"]);
132
+ props.form.setFieldValue(["invoice", "dueDate"], null);
133
133
  props.form.validateFields(["invoice", "dueDate"]);
134
134
  }
135
135
  };
@@ -92,9 +92,6 @@ var BillingCalculations = function (props) {
92
92
  }
93
93
  });
94
94
  }
95
- if (totals.totalTaxableAmount <= 0 || totals.totalTaxInclusiveAmount <= 0) {
96
- return null;
97
- }
98
95
  var roundedAmount = Math.round(totals.totalTaxInclusiveAmount);
99
96
  var roundingAmount = totals.totalTaxInclusiveAmount - roundedAmount;
100
97
  return (react_1.default.createElement(antd_1.Flex, { vertical: true },
@@ -195,7 +195,7 @@ var BillingLines = function (props) {
195
195
  editing: true
196
196
  });
197
197
  }
198
- props.formInstance.setFieldsValue({ lines: lines });
198
+ props.formInstance.setFieldValue(["invoice", "invoiceLines"], lines);
199
199
  props.validateFields(invoice_1.fieldPaths, true);
200
200
  };
201
201
  return (react_1.default.createElement(antd_1.Form.List, { name: ["invoice", "invoiceLines"] }, function (fields, _a) {
@@ -144,7 +144,7 @@ var SingleBillingLine = function (props) {
144
144
  var lines = props.formInstance.getFieldValue(["invoice", "invoiceLines"]) || [];
145
145
  lines[fieldName].editing = true;
146
146
  setIsEditing(true);
147
- props.formInstance.setFieldsValue({ lines: lines });
147
+ props.formInstance.setFieldValue(["invoice", "invoiceLines"], lines);
148
148
  };
149
149
  var handleRemove = function () {
150
150
  props.remove(fieldName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unimaze/billing",
3
- "version": "0.21.7",
3
+ "version": "0.21.8",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",