[英]How to enter a Bill as credit in quickbooks using QBXML?
Im trying to enter a bill with QBXML request but I cannot find the way to select the Credit radio button instead of the bill radio button.我试图用 QBXML 请求输入账单,但我找不到选择信用单选按钮而不是账单单选按钮的方法。
<?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>
What you want is the VendorCredit
XML call, not BillAdd
:您想要的是VendorCredit
XML 调用,而不是BillAdd
:
VendorCredit
: https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/vendorcreditadd VendorCredit
: https : //developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop/vendorcreditadd The syntax is extremely similar to BillAdd
, but ever so slightly different.语法与BillAdd
极其相似,但略有不同。
Example:例子:
<?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>
...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.