如何在 Consolibyte Web 连接器中从 Quickbooks 导入已删除的项目和客户?
How can I import deleted items and customers from Quickbooks in Consolibyte Web Connector?
正如标题所说,我正在尝试从 Quickbooks 中导入已删除的项目和客户。 Quickbooks.php 主文件包含以下内容:
/**
* Query QuickBooks for lists of deleted list items (customers, items, etc.)
*/
define('QUICKBOOKS_QUERY_DELETEDLISTS', 'ListDeletedQuery');
define('QUICKBOOKS_IMPORT_DELETEDLISTS', 'ListDeletedImport');
因此,我试图使用 QUICKBOOKS_IMPORT_DELETEDLISTS 操作来导入已删除的项目,但我无法在任何地方找到要在 xml 中放置的标签。
我尝试了以下方法:
$xml = '<?xml version="1.0"?'.'>
<?qbxml version="5.0" encoding="utf-8"?'.'>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<ListDeletedImport ' . $attr_iterator . ' ' . $attr_iteratorID . ' requestID="' . $requestID . '">
<MaxReturned>' . QB_QUICKBOOKS_MAX_RETURNED . '</MaxReturned>
<FromModifiedDate>' . $last . '</FromModifiedDate>
<OwnerID>0</OwnerID>
</ListDeletedImport>
</QBXMLMsgsRq>
</QBXML>';
但是 ListDeletedImport 似乎不是正确的 XML 标记,尽管这是 Web 连接器代码中调用的操作(如上所示)。它应该是什么?或者我在哪里可以找到示例?
这是 Quickbooks 桌面版。
这是 Schema 文件夹中的查询类型列表,但我找不到似乎与已删除项目或客户有任何关系的查询类型:
AccountQuery.xml
BillingRateQuery.xml
BillPaymentCheckQuery.xml
BillPaymentCreditCardQuery.xml
BillQuery.xml
BillToPayQuery.xml
ChargeQuery.xml
CheckQuery.xml
ClassQuery.xml
CompanyQuery.xml
CreditCardChargeQuery.xml
CreditCardCreditQuery.xml
CreditMemoQuery.xml
CurrencyQuery.xml
CustomerMsgsQuery.xml
CustomerQuery.xml
CustomerTypeQuery.xml
DataExtDefQuery.xml
DateDrivenTermsQuery.xml
DepositQuery.xml
EmployeeQuery.xml
EstimateQuery.xml
HostQuery.xml
InventoryAdjustmentQuery.xml
InvoiceQuery.xml
ItemDiscountQuery.xml
ItemFixedAssetQuery.xml
ItemGroupQuery.xml
ItemInventoryAssemblyQuery.xml
ItemInventoryQuery.xml
ItemNonInventoryQuery.xml
ItemOtherChargeQuery.xml
ItemPaymentQuery.xml
ItemQuery.xml
ItemReceiptQuery.xml
ItemSalesTaxQuery.xml
ItemServiceQuery.xml
ItemSubtotalQuery.xml
JobTypeQuery.xml
JournalEntryQuery.xml
PaymentMethodQuery.xml
PayrollItemWageQuery.xml
PreferencesQuery.xml
PriceLevelQuery.xml
PurchaseOrderQuery.xml
ReceivePaymentQuery.xml
SalesOrderQuery.xml
SalesReceiptQuery.xml
SalesRepQuery.xml
SalesTaxCodeQuery.xml
ShipMethodQuery.xml
StandardTermsQuery.xml
TermsQuery.xml
TimeTrackingQuery.xml
UnitOfMeasureSetQuery.xml
VehicleMileageQuery.xml
VehicleQuery.xml
VendorCreditQuery.xml
VendorQuery.xml
VendorTypeQuery.xml
WorkersCompCodeQuery.xml
我找到了这个问题的答案。 qbXML 标签的名称是 ListDeletedQueryRq
.
这是我的来源:
https://developer-static.intuit.com/qbSDK-current/Common/newOSR/index.html
正如标题所说,我正在尝试从 Quickbooks 中导入已删除的项目和客户。 Quickbooks.php 主文件包含以下内容:
/**
* Query QuickBooks for lists of deleted list items (customers, items, etc.)
*/
define('QUICKBOOKS_QUERY_DELETEDLISTS', 'ListDeletedQuery');
define('QUICKBOOKS_IMPORT_DELETEDLISTS', 'ListDeletedImport');
因此,我试图使用 QUICKBOOKS_IMPORT_DELETEDLISTS 操作来导入已删除的项目,但我无法在任何地方找到要在 xml 中放置的标签。
我尝试了以下方法:
$xml = '<?xml version="1.0"?'.'>
<?qbxml version="5.0" encoding="utf-8"?'.'>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<ListDeletedImport ' . $attr_iterator . ' ' . $attr_iteratorID . ' requestID="' . $requestID . '">
<MaxReturned>' . QB_QUICKBOOKS_MAX_RETURNED . '</MaxReturned>
<FromModifiedDate>' . $last . '</FromModifiedDate>
<OwnerID>0</OwnerID>
</ListDeletedImport>
</QBXMLMsgsRq>
</QBXML>';
但是 ListDeletedImport 似乎不是正确的 XML 标记,尽管这是 Web 连接器代码中调用的操作(如上所示)。它应该是什么?或者我在哪里可以找到示例?
这是 Quickbooks 桌面版。
这是 Schema 文件夹中的查询类型列表,但我找不到似乎与已删除项目或客户有任何关系的查询类型:
AccountQuery.xml
BillingRateQuery.xml
BillPaymentCheckQuery.xml
BillPaymentCreditCardQuery.xml
BillQuery.xml
BillToPayQuery.xml
ChargeQuery.xml
CheckQuery.xml
ClassQuery.xml
CompanyQuery.xml
CreditCardChargeQuery.xml
CreditCardCreditQuery.xml
CreditMemoQuery.xml
CurrencyQuery.xml
CustomerMsgsQuery.xml
CustomerQuery.xml
CustomerTypeQuery.xml
DataExtDefQuery.xml
DateDrivenTermsQuery.xml
DepositQuery.xml
EmployeeQuery.xml
EstimateQuery.xml
HostQuery.xml
InventoryAdjustmentQuery.xml
InvoiceQuery.xml
ItemDiscountQuery.xml
ItemFixedAssetQuery.xml
ItemGroupQuery.xml
ItemInventoryAssemblyQuery.xml
ItemInventoryQuery.xml
ItemNonInventoryQuery.xml
ItemOtherChargeQuery.xml
ItemPaymentQuery.xml
ItemQuery.xml
ItemReceiptQuery.xml
ItemSalesTaxQuery.xml
ItemServiceQuery.xml
ItemSubtotalQuery.xml
JobTypeQuery.xml
JournalEntryQuery.xml
PaymentMethodQuery.xml
PayrollItemWageQuery.xml
PreferencesQuery.xml
PriceLevelQuery.xml
PurchaseOrderQuery.xml
ReceivePaymentQuery.xml
SalesOrderQuery.xml
SalesReceiptQuery.xml
SalesRepQuery.xml
SalesTaxCodeQuery.xml
ShipMethodQuery.xml
StandardTermsQuery.xml
TermsQuery.xml
TimeTrackingQuery.xml
UnitOfMeasureSetQuery.xml
VehicleMileageQuery.xml
VehicleQuery.xml
VendorCreditQuery.xml
VendorQuery.xml
VendorTypeQuery.xml
WorkersCompCodeQuery.xml
我找到了这个问题的答案。 qbXML 标签的名称是 ListDeletedQueryRq
.
这是我的来源: https://developer-static.intuit.com/qbSDK-current/Common/newOSR/index.html