placementt-core 1.400.1240 → 1.400.1241
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/invoicing.js +1 -1
- package/package.json +1 -1
- package/src/invoicing.ts +1 -1
package/lib/invoicing.js
CHANGED
|
@@ -14,7 +14,7 @@ exports.INVOICE_VAT_RATE = 0.2;
|
|
|
14
14
|
exports.INVOICE_DUE_DAYS = 30;
|
|
15
15
|
/** Xero's "Sales" account and its 20% VAT-on-income tax type, as every
|
|
16
16
|
* CareerThread invoice has been coded. */
|
|
17
|
-
exports.XERO_LINE_DEFAULTS = { accountCode: "
|
|
17
|
+
exports.XERO_LINE_DEFAULTS = { accountCode: "200", taxType: "OUTPUT2" };
|
|
18
18
|
const round = (value) => Math.round(value * 100) / 100;
|
|
19
19
|
/**
|
|
20
20
|
* How much a discount takes off an amount.
|
package/package.json
CHANGED
package/src/invoicing.ts
CHANGED
|
@@ -57,7 +57,7 @@ export const INVOICE_DUE_DAYS = 30;
|
|
|
57
57
|
|
|
58
58
|
/** Xero's "Sales" account and its 20% VAT-on-income tax type, as every
|
|
59
59
|
* CareerThread invoice has been coded. */
|
|
60
|
-
export const XERO_LINE_DEFAULTS = {accountCode: "
|
|
60
|
+
export const XERO_LINE_DEFAULTS = {accountCode: "200", taxType: "OUTPUT2"};
|
|
61
61
|
|
|
62
62
|
export type InvoiceLineTotal = InvoiceLine & {
|
|
63
63
|
/** quantity × unitAmount. */
|