【问题标题】:How I can filter invoice with shipdate quickbook sdk c#如何使用shipdate quickbook sdk c#过滤发票
【发布时间】:2018-10-23 05:30:47
【问题描述】:

我想用发货日期过滤发票,这是我的代码

IInvoiceQuery invoiceQueryRq = requestMsgSet.AppendInvoiceQueryRq();
invoiceQueryRq.IncludeLineItems.SetValue(true);

//want ship date filter here
IMsgSetResponse responseMsgSet = sessionManager.DoRequests(requestMsgSet);
IResponse response = responseMsgSet.ResponseList.GetAt(0);
IInvoiceRetList invoiceRetList = (IInvoiceRetList)response.Detail;

我可以使用发票修改日期进行过滤,但我无法使用发货日期进行过滤。请帮帮我

【问题讨论】:

    标签: c# quickbooks


    【解决方案1】:

    QuickBooks OSR 显示您可以过滤的字段:

    具体来说:

    <InvoiceQueryRq metaData="ENUMTYPE" iterator="ENUMTYPE" iteratorID="UUIDTYPE">
    <!-- 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>
    <AccountFilter> <!-- 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 -->
    </AccountFilter>
    <!-- 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>
    <!-- PaidStatus may have one of the following values: All [DEFAULT], PaidOnly, NotPaidOnly -->
    <PaidStatus >ENUMTYPE</PaidStatus> <!-- optional -->
    <!-- END OR -->
    <IncludeLineItems >BOOLTYPE</IncludeLineItems> <!-- optional -->
    <IncludeLinkedTxns >BOOLTYPE</IncludeLinkedTxns> <!-- optional -->
    <IncludeRetElement >STRTYPE</IncludeRetElement> <!-- optional, may repeat -->
    <OwnerID >GUIDTYPE</OwnerID> <!-- optional, may repeat -->
    </InvoiceQueryRq>
    

    请注意,ShipDate 不是可过滤字段。你不能过滤它。

    如果您想通过它进行过滤,您必须从 QuickBooks 中提取所有发票,然后在您的应用程序中自行过滤它们。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多