taxtank-core 0.28.81 → 0.28.82
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.
|
@@ -19127,7 +19127,10 @@
|
|
|
19127
19127
|
// we need invoice template only for new invoices
|
|
19128
19128
|
if (!invoice.id) {
|
|
19129
19129
|
(_this.commonData).addControl('template', new forms.FormControl(_this.defaultTemplate));
|
|
19130
|
-
|
|
19130
|
+
// user can have no template, but he can add it from this form
|
|
19131
|
+
if (_this.defaultTemplate) {
|
|
19132
|
+
_this.updateTemplateRelatedFields(_this.defaultTemplate);
|
|
19133
|
+
}
|
|
19131
19134
|
}
|
|
19132
19135
|
// invoice.taxType is always NONE ('No Tax') when soleDetails.isGST === false
|
|
19133
19136
|
if (!_this.soleDetailsGST) {
|