@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.
- package/lib/common/components/base-information/index.js +1 -1
- package/lib/common/components/billing-lines/BillingCalculations.js +0 -3
- package/lib/common/components/billing-lines/NewBillingLines.js +1 -1
- package/lib/common/components/billing-lines/SingleBillingLine.js +1 -1
- package/package.json +1 -1
|
@@ -129,7 +129,7 @@ var BaseInformation = function (props) {
|
|
|
129
129
|
};
|
|
130
130
|
var checkIfEmpty = function (date) {
|
|
131
131
|
if (!date) {
|
|
132
|
-
props.form.
|
|
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.
|
|
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.
|
|
147
|
+
props.formInstance.setFieldValue(["invoice", "invoiceLines"], lines);
|
|
148
148
|
};
|
|
149
149
|
var handleRemove = function () {
|
|
150
150
|
props.remove(fieldName);
|