Skip to content

Commit 4fb8e43

Browse files
authored
Merge branch 'master' into issue-13316
2 parents 67f0132 + 2c1ae19 commit 4fb8e43

File tree

41 files changed

+55
-53
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+55
-53
lines changed

components/quickbooks/actions/create-ap-aging-report/create-ap-aging-report.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "quickbooks-create-ap-aging-report",
66
name: "Create AP Aging Detail Report",
77
description: "Creates an AP aging report in Quickbooks Online. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/apagingdetail#query-a-report)",
8-
version: "0.0.2",
8+
version: "0.0.3",
99
type: "action",
1010
props: {
1111
quickbooks,

components/quickbooks/actions/create-bill/create-bill.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "quickbooks-create-bill",
77
name: "Create Bill",
88
description: "Creates a bill. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/bill#create-a-bill)",
9-
version: "0.1.7",
9+
version: "0.1.8",
1010
type: "action",
1111
props: {
1212
quickbooks,

components/quickbooks/actions/create-customer/create-customer.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "quickbooks-create-customer",
66
name: "Create Customer",
77
description: "Creates a customer. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/customer#create-a-customer)",
8-
version: "0.1.7",
8+
version: "0.1.8",
99
type: "action",
1010
props: {
1111
quickbooks,

components/quickbooks/actions/create-invoice/create-invoice.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "quickbooks-create-invoice",
77
name: "Create Invoice",
88
description: "Creates an invoice. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/invoice#create-an-invoice)",
9-
version: "0.1.7",
9+
version: "0.1.8",
1010
type: "action",
1111
props: {
1212
quickbooks,

components/quickbooks/actions/create-payment/create-payment.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "quickbooks-create-payment",
55
name: "Create Payment",
66
description: "Creates a payment. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/payment#create-a-payment)",
7-
version: "0.0.6",
7+
version: "0.0.7",
88
type: "action",
99
props: {
1010
quickbooks,

components/quickbooks/actions/create-pl-report/create-pl-report.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "quickbooks-create-pl-report",
88
name: "Create Profit and Loss Detail Report",
99
description: "Creates a profit and loss report in Quickbooks Online. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/profitandloss#query-a-report)",
10-
version: "0.0.2",
10+
version: "0.0.3",
1111
type: "action",
1212
props: {
1313
quickbooks,

components/quickbooks/actions/create-purchase/create-purchase.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "quickbooks-create-purchase",
77
name: "Create Purchase",
88
description: "Creates a new purchase. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/purchase#create-a-purchase)",
9-
version: "0.0.5",
9+
version: "0.0.6",
1010
type: "action",
1111
props: {
1212
quickbooks,

components/quickbooks/actions/create-sales-receipt/create-sales-receipt.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "quickbooks-create-sales-receipt",
77
name: "Create Sales Receipt",
88
description: "Creates a sales receipt. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/salesreceipt#create-a-salesreceipt)",
9-
version: "0.0.6",
9+
version: "0.0.7",
1010
type: "action",
1111
props: {
1212
quickbooks,

components/quickbooks/actions/delete-purchase/delete-purchase.mjs

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "quickbooks-delete-purchase",
55
name: "Delete Purchase",
66
description: "Delete a specific purchase. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/purchase#delete-a-purchase)",
7-
version: "0.0.5",
7+
version: "0.0.6",
88
type: "action",
99
props: {
1010
quickbooks,
@@ -16,29 +16,26 @@ export default {
1616
},
1717
},
1818
async run({ $ }) {
19-
const {
20-
quickbooks,
21-
purchaseId,
22-
} = this;
19+
const purchaseId = this.purchaseId.value || this.purchaseId;
2320

24-
const [
25-
Id,
26-
SyncToken,
27-
] = purchaseId.value.split("|");
21+
const { Purchase: { SyncToken: syncToken } } = await this.quickbooks.getPurchase({
22+
$,
23+
purchaseId,
24+
});
2825

29-
const response = await quickbooks.deletePurchase({
26+
const response = await this.quickbooks.deletePurchase({
3027
$,
3128
data: {
32-
Id,
33-
SyncToken,
29+
Id: purchaseId,
30+
SyncToken: syncToken,
3431
},
3532
params: {
3633
operation: "delete",
3734
},
3835
});
3936

4037
if (response) {
41-
$.export("summary", `Successfully deleted purchase with ID ${Id}`);
38+
$.export("summary", `Successfully deleted purchase with ID ${purchaseId}`);
4239
}
4340

4441
return response;

components/quickbooks/actions/get-bill/get-bill.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "quickbooks-get-bill",
66
name: "Get Bill",
77
description: "Returns info about a bill. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/bill#read-a-bill)",
8-
version: "0.1.7",
8+
version: "0.1.8",
99
type: "action",
1010
props: {
1111
quickbooks,

0 commit comments

Comments
 (0)