我想在我们的网站上集成QuickBooks桌面。
我阅读了文档,但似乎找不到如何从QuickBooks Desktop获取销售订单的方法。我们的数据流是这样的:客户在我们的网站上购买商品,然后我们在QuickBooks桌面上的网站上对客户的购买进行编码。
我知道我们可以自动插入销售订单,但是我只需要获取销售订单,以便一旦用户在我们的网站上更新了状态,便可以在QuickBooks中更新其状态。
顺便说一句,我想通过使用其P.O来获取销售订单。号码,邮政信箱在我们的网站上自动生成编号,当在QuickBooks Desktop中对销售订单进行编码时,编号也会包含在内。
到目前为止,这是我唯一想到的代码。我尚未进行测试,因为我不知道将P.O放在哪里。数字。
谢谢。
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<SalesOrderQueryRq metadata="ENUMTYPE"iterator="ENUMTYPE" iteratorID="UUIDTYPE">
</SalesOrderQueryRq>
</QBXMLMsgsRq>
</QBXML>
答案 0 :(得分:0)
转到QuickBooks OSR:
如果单击XMLOps
标签,则会看到可查询字段。
<!-- BEGIN OR -->
<TxnID >IDTYPE</TxnID> <!-- optional, may repeat -->
<!-- OR -->
<RefNumber >STRTYPE</RefNumber> <!-- optional, may repeat -->
<!-- OR -->
<RefNumberCaseSensitive >STRTYPE</RefNumberCaseSensitive> <!-- optional, may repeat -->
<!-- OR -->
<MaxReturned >INTTYPE</MaxReturned> <!-- optional -->
<!-- BEGIN OR -->
<ModifiedDateRangeFilter> <!-- optional -->
<FromModifiedDate >DATETIMETYPE</FromModifiedDate> <!-- optional -->
<ToModifiedDate >DATETIMETYPE</ToModifiedDate> <!-- optional -->
</ModifiedDateRangeFilter>
<!-- OR -->
<TxnDateRangeFilter> <!-- optional -->
<!-- BEGIN OR -->
<FromTxnDate >DATETYPE</FromTxnDate> <!-- optional -->
<ToTxnDate >DATETYPE</ToTxnDate> <!-- optional -->
<!-- OR -->
<!-- DateMacro may have one of the following values: All, Today, ThisWeek, ThisWeekToDate, ThisMonth, ThisMonthToDate, ThisCalendarQuarter, ThisCalendarQuarterToDate, ThisFiscalQuarter, ThisFiscalQuarterToDate, ThisCalendarYear, ThisCalendarYearToDate, ThisFiscalYear, ThisFiscalYearToDate, Yesterday, LastWeek, LastWeekToDate, LastMonth, LastMonthToDate, LastCalendarQuarter, LastCalendarQuarterToDate, LastFiscalQuarter, LastFiscalQuarterToDate, LastCalendarYear, LastCalendarYearToDate, LastFiscalYear, LastFiscalYearToDate, NextWeek, NextFourWeeks, NextMonth, NextCalendarQuarter, NextCalendarYear, NextFiscalQuarter, NextFiscalYear -->
<DateMacro >ENUMTYPE</DateMacro> <!-- optional -->
<!-- END OR -->
</TxnDateRangeFilter>
<!-- END OR -->
<EntityFilter> <!-- optional -->
<!-- BEGIN OR -->
<ListID >IDTYPE</ListID> <!-- optional, may repeat -->
<!-- OR -->
<FullName >STRTYPE</FullName> <!-- optional, may repeat -->
<!-- OR -->
<ListIDWithChildren >IDTYPE</ListIDWithChildren> <!-- optional -->
<!-- OR -->
<FullNameWithChildren >STRTYPE</FullNameWithChildren> <!-- optional -->
<!-- END OR -->
</EntityFilter>
<!-- BEGIN OR -->
<RefNumberFilter> <!-- optional -->
<!-- MatchCriterion may have one of the following values: StartsWith, Contains, EndsWith -->
<MatchCriterion >ENUMTYPE</MatchCriterion> <!-- required -->
<RefNumber >STRTYPE</RefNumber> <!-- required -->
</RefNumberFilter>
<!-- OR -->
<RefNumberRangeFilter> <!-- optional -->
<FromRefNumber >STRTYPE</FromRefNumber> <!-- optional -->
<ToRefNumber >STRTYPE</ToRefNumber> <!-- optional -->
</RefNumberRangeFilter>
<!-- END OR -->
<CurrencyFilter> <!-- optional -->
<!-- BEGIN OR -->
<ListID >IDTYPE</ListID> <!-- optional, may repeat -->
<!-- OR -->
<FullName >STRTYPE</FullName> <!-- optional, may repeat -->
<!-- END OR -->
</CurrencyFilter>
<!-- END OR -->
您会注意到PONumber
不在该列表中。这是因为 QuickBooks不支持按采购订单编号查询/过滤。