Developer Q&A
ApStatusChangeCommand - VendorInvoiceStatusId (int or enum??)
After retrieving authorized invoices, I want to update the status to exported so that I don't end up pulling the same invoices down again.
However, I noticed that the InvoiceScenario examples provided, make use of an ApInvoiceStatus enum for the VendorInvoiceStatusId. But my new project reference does not include this same enum, but rather uses an int value.
Comparing the ApState against the ApInvoiceStatus yields different values for the enumeration. What should I use in this case?
InvoceScenarios Example
xml
<xs:complexType name="ApStatusChangeCommand">
<xs:complexContent mixed="false">
<xs:extension base="tns:BaseWoActionCommand">
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="1" name="VendorInvoiceStatusId" type="tns:APInvoiceStatus" />
<xs:element minOccurs="1" maxOccurs="1" name="KeepCommentIntact" type="xs:boolean" />
<xs:element minOccurs="1" maxOccurs="1" name="CurrentStatusId" type="tns:APInvoiceStatus" />
<xs:element minOccurs="1" maxOccurs="1" name="FinancialConcurrencyId" type="xs:int" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
New web services reference schema.
```xml```
<xs:complexType name="ApStatusChangeCommand">
<xs:complexContent mixed="false">
<xs:extension base="tns:BaseWoActionCommand">
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="1" name="VendorInvoiceStatusId" type="xs:int" />
<xs:element minOccurs="1" maxOccurs="1" name="KeepCommentIntact" type="xs:boolean" />
<xs:element minOccurs="1" maxOccurs="1" name="CurrentStatusId" type="xs:int" />
<xs:element minOccurs="1" maxOccurs="1" name="FinancialConcurrencyId" type="xs:int" />
</xs:sequence>
</xs:extension>
</xs:complexContent>