Unsetting Invoice Expected Payment Date
@RettBehrens がすでに取り組んでいます。
2021年3月1日 から。
評価
この issue はまだ評価されていません。
説明
SDK you're using (please complete the following information):
- Version 4.7.3
Describe the bug
I can't seem to be able to unset an invoice's expected payment date.
To Reproduce
Steps to reproduce the behavior:
xeroCLient.accountingApi.updateInvoice(tenantID, invoiceID, {
invoices: [{ expectedPaymentDate: '' }]
})
Expected behavior
The expectedPaymentDate should be cleared.
Additional context
To be fair, this appears to be more of a Xero API issue/design decision. However, I did manage to clear the EPD calling the API directly, using ExpectedPaymentDateString.
curl --request POST \
--url https://api.xero.com/api.xro/2.0/Invoices/b7b20c66-5844-4dac-b855-dd043f15e795 \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ...' \
--header 'Content-Type: application/json' \
--header 'xero-tenant-id: tenant-id' \
--data '{
"Invoices": [{
"ExpectedPaymentDateString": ""
}]
}'
Using ExpectedPaymentDateString clears the EPD in Xero, while using ExpectedPaymentDate does not.
In invoice.ts, an entry can be added in the attributeTypeMap to allow updates to the ExpectedPaymentDateString property.
What are your thoughts on this?
- 主要言語
- TypeScript
- スター
- 264
- フォーク
- 177
- 平均マージ
- 10時間 5分
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
XeroAPI/xero-node のほかの issue
-
`getClientCredentialsToken()` sends `scopes` (comma-joined) instead of the OAuth `scope` parameterオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 3/5 半日 初心者へのやさしさ 55/100
-
TrackingOptionId value missing from accountingApi.getInvoices()対応中かも @miachillgood が 152 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 18/100
-
BankTransaction type is missing the batchPayment object.対応中かも @miachillgood が 171 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 22/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
XeroAPI/xero-node の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
super-productivity/super-productivity#12128 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
A docs change can fail pnpm check, because outreach lint and gen:types both write .astro/ at once対応中かも @2389400626lh-ops が今日担当しました。 オープンArea: Infrastructure Area: Outreach Bug Difficulty: Low Good First Issue Priority: Low
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
DouglasNeuroInformatics/OpenDataCapture#1956 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
justyns/silverbullet-ai#199 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
spartan-ng/spartan#1931 ·
メンテナーはふだん 2 日以内に返信