当我有一张已用贷方通知单付款全额支付的发票时,检索单个发票时的FullyPaidOnDate与检索发票集合时的FullyPaidOnDate不同。
一旦创建发票,便会分配贷方通知单。
检索单个发票时,FullyPaidOnDate与发票日期相同。
检索发票集合时,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]
},