ProductComponents Web Service
Method/SmartUpdatePurchase
ProductComponents Web Service > All Operations Resource Group : /SmartUpdatePurchase (Method)
Description
The SmartUpdatePurchase function updates a purchase record that is passed to this method. If the record does not exist, this method adds it.
Request (SmartUpdatePurchaseSoapIn)

The request body is of type SmartUpdatePurchase.

Request Body Parameters

NameDescriptionData Type
 PurchaseInfo
 xml:boolean
isForceUpdate Element IsDerived Element ProductId Element GrossPriceReductionPercentage Element CollectionParentBarcode Element CollectionAmount Element CollectionBarcode Element SeasonProfileId Element IsActive Element Source Element IsPreferredSupplierRow Element LastExchangeDateTime Element OrganizationModifiedDateTime Element OrganizationReference Element DefaultDeliveryDays Element PurchasePriceType Element OwnPurchasePriceNote Element OwnPurchasePrice Element IsNetNet Element PurchasePrice Element GrossPurchasePrice Element PurchasePricePerAmount Element CbmPerSingleUnit Element PurchaseContentUnitToConsumerUnitFactor Element PurchaseContentUnitPackageId Element PurchaseContentUnitDimensionId Element PurchaseUnitToPurchaseContentUnitFactor Element PurchaseUnitPackageId Element PurchaseUnitDimensionId Element MinimumOrderQuantity Element OrderMultiplier Element PurchaseUnitBarcode Element OrderCode Element ExternalCode Element PurchasePriceGroupId Element PurchaseStatusRowId Element SupplierId Element OrganizationId Element CompanyId Element LastModifiedDateTime Element LastModifiedByUserId Element CreatedDateTime Element CreatedByUserId Element ItemId Element Sequence purchase Element Sequence SmartUpdatePurchase Element

Overview

Sequence
Sequence
ItemId xs:int
CreatedDateTime xs:dateTime
CompanyId xs:int
SupplierId xs:int
ExternalCode optional xs:string
OrderCode optional xs:string
OrderMultiplier xs:decimal
CbmPerSingleUnit xs:decimal
PurchasePrice xs:decimal
IsNetNet xs:boolean
OwnPurchasePrice xs:decimal
OwnPurchasePriceNote optional xs:string
OrganizationReference optional xs:string
IsActive xs:boolean
ProductId xs:int
IsDerived xs:boolean
isForceUpdate xs:boolean
Response (SmartUpdatePurchaseSoapOut)

The response body is of type SmartUpdatePurchaseResponse.

Response Body Parameters

NameDescriptionData Type
 xml:int
SmartUpdatePurchaseResult Element Sequence SmartUpdatePurchaseResponse Element

Overview

Sequence
See Also
All Operations Resource GroupProductComponents Web Service