xero-api - FullPaidOnDate 不同时检索单个发票与发票集合分配信用票据时
问题描述
当我有一张通过贷项通知单分配全额支付的发票时,检索单个发票时的完全支付日期与检索一组发票时的不同。
创建发票后立即分配贷方通知单。
检索单个 Invoice 时,FullyPaidOnDate 与 Invoice 的日期相同。
检索发票集合时,FullyPaidOnDate 与贷方通知单日期相同。
有什么不同的原因吗?
// THE FOLLOWING JSON FROM QUERYING A SINGLE INVOICE- Note that some fields are removed for brevity.
// The fully paid date is the same as the Invoice date. The Credit Note was applied immediately after creating the invoice.
//1. The Credit Note was created on the 15th July.
//2. The Invoice was created on the 27th July.
//3. The Credit Note was immediately allocated to the Invoice on the 27th July resulting in the Invoice being fully paid.
{
"Invoices": [
{
"Type": "ACCREC",
"InvoiceID": "nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn",
"InvoiceNumber": "INV-1234",
"Reference": "Corroborating the Forensic Interview",
"CreditNotes": [
{
"CreditNoteID": "nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn",
"CreditNoteNumber": "CN-xxxx",
"ID": "nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn",
"AppliedAmount": 114.55,
"DateString": "2020-07-27T00:00:00",
"Date": "/Date(1595808000000+0000)/",
"LineItems": [],
"Total": 995.00
}
],
"AmountDue": 0.00,
"AmountPaid": 0.00,
"AmountCredited": 114.55,
"DateString": "2020-07-27T00:00:00",
"Date": "/Date(1595808000000+0000)/",
"DueDateString": "2020-08-11T00:00:00",
"DueDate": "/Date(1597104000000+0000)/",
"Status": "PAID",
"FullyPaidOnDate": "/Date(1595808000000+0000)/" << Monday, 27 July 2020 00:00:00 [Converted from epoch date]
}
]
}
## THE FOLLOWING COMES FROM QUERYING ALL INVOICES THAT ARE PAID OR VOID ##
//the FullyPaidDate is the same as the Credit Note date
{
"Type": "ACCREC",
"InvoiceID": "nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn",
"InvoiceNumber": "INV-1234",
"Reference": "The Reference",
"Payments": [],
"CreditNotes": [
{
"CreditNoteID": "nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn",
"CreditNoteNumber": "CN-xxxx",
"ID": "nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn",
"HasErrors": false,
"AppliedAmount": 114.55,
"DateString": "2020-07-15T00:00:00",
"Date": "/Date(1594771200000+0000)/",
"LineItems": [],
"Total": 995.00
}
],
"AmountDue": 0.00,
"AmountPaid": 0.00,
"AmountCredited": 114.55,
"CurrencyRate": 1.000000,
"DateString": "2020-07-27T00:00:00",
"Date": "/Date(1595808000000+0000)/",
"DueDateString": "2020-08-11T00:00:00",
"DueDate": "/Date(1597104000000+0000)/",
"Status": "PAID",
"LineAmountTypes": "Exclusive",
"LineItems": [],
"SubTotal": 114.55,
"TotalTax": 0.00,
"Total": 114.55,
"UpdatedDateUTC": "/Date(1595882469570+0000)/",
"CurrencyCode": "USD",
"FullyPaidOnDate": "/Date(1594771200000+0000)/" << Wednesday, 15 July 2020 00:00:00 [Converted from epoch date]
},
解决方案
推荐阅读
- c++ - 如何为 ncurses 声明其他颜色?
- iis - 在 IIS 中托管可以从任何 Web 客户端访问的网站?
- mongodb - 如何从 MongoDB 中的引用文档数组中提取对象?
- javascript - 无法使用反应上传图像并保存到文件夹
- bloomberg - 彭博 python api 中的 @BFxForward()
- html - 当我将它与其他 css 文件一起使用时,字体真棒图标不显示
- debugging - 无法在调试模式下保存更改的代码
- java - RemotingTimeoutException:invokeSync 调用超时
- python - 将月份年份转换为 YYYY-MM-DD 日期格式 Python Pandas
- docker - 无法计算缓存键:“/dist”未找到:未找到