taxtank-core 2.1.16 → 2.1.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.
|
@@ -24881,11 +24881,13 @@ class SoleInvoiceForm extends AbstractForm {
|
|
|
24881
24881
|
this.soleDetailsGST = soleDetailsGST;
|
|
24882
24882
|
this.defaultTemplate = defaultTemplate;
|
|
24883
24883
|
// we need invoice template only for new invoices
|
|
24884
|
-
if (!invoice.id
|
|
24885
|
-
(
|
|
24886
|
-
|
|
24887
|
-
|
|
24888
|
-
|
|
24884
|
+
if (!invoice.id) {
|
|
24885
|
+
if (!invoice.isQuote()) {
|
|
24886
|
+
(this.commonData).addControl('template', new FormControl(this.defaultTemplate));
|
|
24887
|
+
// user can have no template, but he can add it from this form
|
|
24888
|
+
if (this.defaultTemplate) {
|
|
24889
|
+
this.updateTemplateRelatedFields(this.defaultTemplate);
|
|
24890
|
+
}
|
|
24889
24891
|
}
|
|
24890
24892
|
// set tax exclusive by default if user is registered for gst
|
|
24891
24893
|
if (this.soleDetailsGST) {
|