如何使用 QBXML 在 quickbooks 中输入账单作为信用?
How to enter a Bill as credit in quickbooks using QBXML?
我正在尝试使用 QBXML 请求输入帐单,但我找不到 select 信用单选按钮而不是帐单单选按钮的方式。
<?xml version="1.0" encoding="utf-8" ?>
<?qbxml version="13.0"?>
<QBXML>
<QBXMLMsgsRq onError="continueOnError">
<BillAddRq requestID = "0">
<BillAdd>
<VendorRef>
<ListID>80000012-1628620378</ListID>
</VendorRef>
<TxnDate>2021-05-26</TxnDate>
<RefNumber>TESTING1</RefNumber>
<ExpenseLineAdd>
<AccountRef>
<ListID>80000033-1628622157</ListID>
</AccountRef>
<Amount>52.86</Amount>
<Memo>Testing.</Memo>
</ExpenseLineAdd>
<ExpenseLineAdd>
<AccountRef>
<ListID>80000034-1628627741</ListID>
</AccountRef>
<Amount>10.00</Amount>
<Memo>Also testing.</Memo>
</ExpenseLineAdd>
</BillAdd>
</BillAddRq>
</QBXMLMsgsRq>
</QBXML>
你想要的是 VendorCredit
XML 调用,而不是 BillAdd
:
VendorCredit
: https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/vendorcreditadd
语法非常类似于BillAdd
,但略有不同。
示例:
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="15.0"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<VendorCreditAddRq>
<VendorCreditAdd>
<VendorRef>
<FullName >STRTYPE</FullName> </VendorRef>
<TxnDate >DATETYPE</TxnDate>
<RefNumber >STRTYPE</RefNumber>
...
我正在尝试使用 QBXML 请求输入帐单,但我找不到 select 信用单选按钮而不是帐单单选按钮的方式。
<?xml version="1.0" encoding="utf-8" ?>
<?qbxml version="13.0"?>
<QBXML>
<QBXMLMsgsRq onError="continueOnError">
<BillAddRq requestID = "0">
<BillAdd>
<VendorRef>
<ListID>80000012-1628620378</ListID>
</VendorRef>
<TxnDate>2021-05-26</TxnDate>
<RefNumber>TESTING1</RefNumber>
<ExpenseLineAdd>
<AccountRef>
<ListID>80000033-1628622157</ListID>
</AccountRef>
<Amount>52.86</Amount>
<Memo>Testing.</Memo>
</ExpenseLineAdd>
<ExpenseLineAdd>
<AccountRef>
<ListID>80000034-1628627741</ListID>
</AccountRef>
<Amount>10.00</Amount>
<Memo>Also testing.</Memo>
</ExpenseLineAdd>
</BillAdd>
</BillAddRq>
</QBXMLMsgsRq>
</QBXML>
你想要的是 VendorCredit
XML 调用,而不是 BillAdd
:
VendorCredit
: https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/vendorcreditadd
语法非常类似于BillAdd
,但略有不同。
示例:
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="15.0"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<VendorCreditAddRq>
<VendorCreditAdd>
<VendorRef>
<FullName >STRTYPE</FullName> </VendorRef>
<TxnDate >DATETYPE</TxnDate>
<RefNumber >STRTYPE</RefNumber>
...