shareneus 1.5.55 → 1.5.56

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.
@@ -109,10 +109,10 @@ function GetInvoiceTypeHeading(InvoicePrintData, OriginalInvoiceData, IncludeGST
109
109
  }
110
110
  else if (IsProforma) {
111
111
  // InvoicePrintData.HeaderName = 'PRO-FORMA INVOICE';
112
- if (PartsPrint) {
112
+ if (PartsPrint && !LaborPrint) {
113
113
  InvoicePrintData.HeaderName = 'PRO-FORMA INVOICE (PARTS)';
114
114
  }
115
- else if (LaborPrint) {
115
+ else if (LaborPrint && !PartsPrint) {
116
116
  InvoicePrintData.HeaderName = 'PRO-FORMA INVOICE (LABOR)';
117
117
  }
118
118
  else {
@@ -147,10 +147,10 @@ function GetInvoiceTypeHeading(InvoicePrintData, OriginalInvoiceData, IncludeGST
147
147
  // }
148
148
  if (InvoicePrintData.Settings.Tax === 'BS') {
149
149
  // InvoicePrintData.HeaderName = 'BILL OF SUPPLY';
150
- if (PartsPrint) {
150
+ if (PartsPrint && !LaborPrint) {
151
151
  InvoicePrintData.HeaderName = 'BILL OF SUPPLY (PARTS)';
152
152
  }
153
- else if (LaborPrint) {
153
+ else if (LaborPrint && !PartsPrint) {
154
154
  InvoicePrintData.HeaderName = 'BILL OF SUPPLY (LABOR)';
155
155
  }
156
156
  else {
@@ -163,10 +163,10 @@ function GetInvoiceTypeHeading(InvoicePrintData, OriginalInvoiceData, IncludeGST
163
163
  InvoicePrintData.HeaderName = 'TAX SALES RECEIPT';
164
164
  }
165
165
  else {
166
- if (PartsPrint) {
166
+ if (PartsPrint && !LaborPrint) {
167
167
  InvoicePrintData.HeaderName = 'TAX INVOICE (PARTS)';
168
168
  }
169
- else if (LaborPrint) {
169
+ else if (LaborPrint && !PartsPrint) {
170
170
  InvoicePrintData.HeaderName = 'TAX INVOICE (LABOR)';
171
171
  }
172
172
  else {
@@ -180,10 +180,10 @@ function GetInvoiceTypeHeading(InvoicePrintData, OriginalInvoiceData, IncludeGST
180
180
  }
181
181
  else {
182
182
  // InvoicePrintData.HeaderName = 'INVOICE';
183
- if (PartsPrint) {
183
+ if (PartsPrint && !LaborPrint) {
184
184
  InvoicePrintData.HeaderName = 'INVOICE (PARTS)';
185
185
  }
186
- else if (LaborPrint) {
186
+ else if (LaborPrint && !PartsPrint) {
187
187
  InvoicePrintData.HeaderName = 'INVOICE (LABOR)';
188
188
  }
189
189
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.5.55",
3
+ "version": "1.5.56",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",