I was using a sample company today and noticed that all the templates of type Payment Receipt return a TemplateType of true.
Very strange behaviour, but breaks XML deserialization because it's expecting an enum.
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="13.0"?>
<QBXML>
<QBXMLMsgsRq onError="continueOnError">
<TemplateQueryRq requestID="10a28a0a-526d-4dac-9282-5e87db89cbb7" />
</QBXMLMsgsRq>
</QBXML>
<QBXML>
<QBXMLMsgsRs>
<TemplateQueryRs requestID="10a28a0a-526d-4dac-9282-5e87db89cbb7"
statusCode="0"
statusSeverity="Info"
statusMessage="Status OK">
<TemplateRet>
<ListID>A0000-1193777333</ListID>
<TimeCreated>2007-10-30T14:48:53-07:00</TimeCreated>
<TimeModified>2008-01-01T15:40:55-07:00</TimeModified>
<EditSequence>1199227255</EditSequence>
<Name>Work Order</Name>
<IsActive>true</IsActive>
<TemplateType>SalesOrder</TemplateType>
</TemplateRet>
<TemplateRet>
<ListID>80000028-1924956754</ListID>
<TimeCreated>2030-12-31T07:12:34-07:00</TimeCreated>
<TimeModified>2030-12-31T07:12:34-07:00</TimeModified>
<EditSequence>1924956754</EditSequence>
<Name>Intuit Standard Payment Receipt</Name>
<IsActive>true</IsActive>
<TemplateType>true</TemplateType>
</TemplateRet>
<TemplateRet>
<ListID>8000002A-1988119998</ListID>
<TimeCreated>2032-12-31T08:33:18-07:00</TimeCreated>
<TimeModified>2032-12-31T08:33:18-07:00</TimeModified>
<EditSequence>1988119998</EditSequence>
<Name>New Payment Receipt Template</Name>
<IsActive>true</IsActive>
<TemplateType>true</TemplateType>
</TemplateRet>
</TemplateQueryRs>
</QBXMLMsgsRs>
</QBXML>
This seems a new type of template introduced in QB 2021 (https://www.intuitiveaccountant.com/accounting-tech/general-ledger/quickbooks-desktop-2021-customize-payment-receipts/).
I'm not sure if this something we should fix in the parser, or address with Intuit, but doing the latter will 99% result in a, works as intended, or we don't really care response.
I was using a sample company today and noticed that all the templates of type
Payment Receiptreturn aTemplateTypeoftrue.Very strange behaviour, but breaks XML deserialization because it's expecting an enum.
This seems a new type of template introduced in QB 2021 (https://www.intuitiveaccountant.com/accounting-tech/general-ledger/quickbooks-desktop-2021-customize-payment-receipts/).
I'm not sure if this something we should fix in the parser, or address with Intuit, but doing the latter will 99% result in a, works as intended, or we don't really care response.