我不知道如何使用 qbfc(使用版本 13)删除发票或账单。 有一个删除列表项的方法,但找不到类似的事务删除方法。
最佳答案
使用 TxnDel
请求。
XML 示例:
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="11.0"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<TxnDelRq>
<!-- TxnDelType may have one of the following values: ARRefundCreditCard, Bill, BillPaymentCheck, BillPaymentCreditCard, BuildAssembly, Charge, Check, CreditCardCharge, CreditCardCredit, CreditMemo, Deposit, Estimate, InventoryAdjustment, Invoice, ItemReceipt, JournalEntry, PayrollLiabilityAdjustment [PRIVATE], PayrollPriorPayment [PRIVATE], PayrollYearToDateAdjustment [PRIVATE], PurchaseOrder, ReceivePayment, SalesOrder, SalesReceipt, SalesTaxPaymentCheck, TimeTracking, TransferInventory, VehicleMileage, VendorCredit -->
<TxnDelType>Invoice</TxnDelType> <!-- required -->
<TxnID>ABCD-1234</TxnID> <!-- required -->
</TxnDelRq>
</QBXMLMsgsRq>
</QBXML>
- http://www.consolibyte.com/docs/index.php/QbXML_for_Deleting_%22Transaction%22_Objects_(Invoices,_Journal_Entries,_etc.)
- http://www.consolibyte.com/docs/index.php/QuickBooks
应该看起来像:
ITxnDel TxnDelRq= requestMsgSet.AppendTxnDelRq();
//Set field value for TxnDelType
TxnDelRq.TxnDelType.SetValue(ENTxnDelType.tdtARRefundCreditCard);
//Set field value for TxnID
TxnDelRq.TxnID.SetValue("200000-1011023419");
IMsgSetResponse responseMsgSet = sessionManager.DoRequests(requestMsgSet);
关于quickbooks - 删除发票和账单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25807585/