Sage Intacct 中 API 创建的供应商发票在 API 响应中显示“待处理”状态,但在 UI 中显示“已提交”状态

问题描述 投票:0回答:1

我已使用 Sage Intacct API 创建了供应商发票,但 API 响应中的发票状态与 Sage Intacct UI 中显示的状态之间存在差异。

在 API 响应中,发票状态返回为“待处理”。但是,当我在 Sage Intacct UI 中查看发票时,它显示为“已提交”。我希望 API 和 UI 之间的状态保持一致。

我已包含用于通过下面的 API 创建供应商发票的 XML 代码:

<?xml version="1.0" encoding="UTF-8"?>
<request>
  <control>
    <senderid>{{sender_id}}</senderid>
    <password>{{sender_password}}</password>
    <controlid>{{$timestamp}}</controlid>
    <uniqueid>false</uniqueid>
    <dtdversion>3.0</dtdversion>
    <includewhitespace>false</includewhitespace>
  </control>
  <operation>
    <authentication>
      <sessionid>{{temp_session_id}}</sessionid>
    </authentication>
    <content>
      <function controlid="{{$guid}}">
        <create_potransaction>
          <transactiontype>Vendor Invoice</transactiontype>
          <datecreated>
            <year>2013</year>
            <month>6</month>
            <day>19</day>
          </datecreated>
          <vendorid>1001</vendorid>
          <referenceno>12345</referenceno>
          <vendordocno>vendordocno001</vendordocno>
          <shippingmethod></shippingmethod> 
          <returnto>
            <contactname></contactname>
          </returnto>
          <payto>
            <contactname></contactname>
          </payto>
          <basecurr>CAD</basecurr>
          <currency>CAD</currency>
          <exchratetype>Intacct Daily Rate</exchratetype>
          <customfields/>
          <state>Pending</state>
          <potransitems>
            <potransitem>
              <itemid>75300GL</itemid>
              <quantity>2</quantity>
              <unit>Each</unit>
              <price>1</price>
              <locationid>E100</locationid>
            </potransitem>
          </potransitems>
          <subtotals>
            <subtotal>
                <description>Freight 75300GL</description>
                <total>8.73</total>
                <absval>9.22</absval>
            </subtotal>
            <subtotal>
                <description>Tax Amt</description>
                <total>2</total>
                <absval>8.73</absval>
            </subtotal>
        </subtotals>
        
        </create_potransaction>
      </function>
    </content>
  </operation>
</request>

我已经仔细检查了 XML 数据,所有必填字段似乎都已正确填充。但是,我不确定为什么 API 响应和 Sage Intacct UI 之间的发票状态不一致。

有人可以帮助我理解为什么会出现这种差异,以及如何确保状态正确反映在 API 响应和 Sage Intacct UI 中?

它在 Sage UI 中显示

submitted
,我需要显示状态是
pending
然后只有我可以从 Sage Intact UI 获取编辑选项,

request sage postman-pre-request-script purchase-order intacct
1个回答
0
投票

当您使用 Postman 读回该记录时会发生什么?显示为已提交还是待处理?当您通过 Postman 提交时,您使用的是 Web 服务用户,该用户可能已被授予完全管理员权限,而您作为用户可能没有完全权限。另外,您是否启用了工作流程并启用了批准?这可能会影响事情。

© www.soinside.com 2019 - 2024. All rights reserved.