POST api/SaleNote/SaveSaleNote?DomainId={DomainId}&AccountId={AccountId}&PersonId={PersonId}
保存销售单信息
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
DomainId |
域Id |
globally unique identifier |
None. |
AccountId |
账户Id |
globally unique identifier |
None. |
PersonId |
人员Id |
globally unique identifier |
None. |
Body Parameters
SaleNoteVMName | Description | Type | Additional information |
---|---|---|---|
SaleNote | SaleNote |
None. |
|
SaleNoteDetailVM | Collection of SaleNoteDetailVM |
None. |
|
CollectionInfo | CollectionInfoVM |
None. |
Request Formats
application/json, text/json
Sample:
{ "SaleNote": { "TotalSum": 1.0, "Customer": "sample string 2", "SaleSource": "sample string 3", "WarehouseID": "0fda70dd-8ed6-4d9c-9236-e4027de5c74f", "WorkRecordID": "91684369-eaea-4ae5-8631-7f6c6f301420", "SaleDateTime": "sample string 4", "Remark": "sample string 5", "SaleNubmber": "sample string 6" }, "SaleNoteDetailVM": [ { "ProductID": "038d2618-71a6-4302-91a9-405aa8cc6909", "Product": "sample string 1", "Count": 2.0, "Unit": "sample string 3", "Price": 4.0, "Spec": "sample string 5", "BarCode": "sample string 6", "CostPrice": 7.0, "Sort": 8, "Amount": 9.0, "UseTypeKey": "sample string 10", "Batch": "sample string 11", "ProductStatusID": "sample string 12" }, { "ProductID": "038d2618-71a6-4302-91a9-405aa8cc6909", "Product": "sample string 1", "Count": 2.0, "Unit": "sample string 3", "Price": 4.0, "Spec": "sample string 5", "BarCode": "sample string 6", "CostPrice": 7.0, "Sort": 8, "Amount": 9.0, "UseTypeKey": "sample string 10", "Batch": "sample string 11", "ProductStatusID": "sample string 12" } ], "CollectionInfo": { "CollectionID": "c54d4897-e5c9-48bb-be62-dc4c5f802fea", "Privilege": 1.0, "CurrentCollection": 2.0, "ClearingAccountKey": "sample string 3", "ClearingAccountText": "sample string 4" } }
application/xml, text/xml
Sample:
<SaleNoteVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.App.WebAPI.Areas.DeliveryOrder.ViewModel"> <CollectionInfo> <ClearingAccountKey>sample string 3</ClearingAccountKey> <ClearingAccountText>sample string 4</ClearingAccountText> <CollectionID>c54d4897-e5c9-48bb-be62-dc4c5f802fea</CollectionID> <CurrentCollection>2</CurrentCollection> <Privilege>1</Privilege> </CollectionInfo> <SaleNote> <Customer>sample string 2</Customer> <Remark>sample string 5</Remark> <SaleDateTime>sample string 4</SaleDateTime> <SaleNubmber>sample string 6</SaleNubmber> <SaleSource>sample string 3</SaleSource> <TotalSum>1</TotalSum> <WarehouseID>0fda70dd-8ed6-4d9c-9236-e4027de5c74f</WarehouseID> <WorkRecordID>91684369-eaea-4ae5-8631-7f6c6f301420</WorkRecordID> </SaleNote> <SaleNoteDetailVM> <SaleNoteDetailVM> <Amount>9</Amount> <BarCode>sample string 6</BarCode> <Batch>sample string 11</Batch> <CostPrice>7</CostPrice> <Count>2</Count> <Price>4</Price> <Product>sample string 1</Product> <ProductID>038d2618-71a6-4302-91a9-405aa8cc6909</ProductID> <ProductStatusID>sample string 12</ProductStatusID> <Sort>8</Sort> <Spec>sample string 5</Spec> <Unit>sample string 3</Unit> <UseTypeKey>sample string 10</UseTypeKey> </SaleNoteDetailVM> <SaleNoteDetailVM> <Amount>9</Amount> <BarCode>sample string 6</BarCode> <Batch>sample string 11</Batch> <CostPrice>7</CostPrice> <Count>2</Count> <Price>4</Price> <Product>sample string 1</Product> <ProductID>038d2618-71a6-4302-91a9-405aa8cc6909</ProductID> <ProductStatusID>sample string 12</ProductStatusID> <Sort>8</Sort> <Spec>sample string 5</Spec> <Unit>sample string 3</Unit> <UseTypeKey>sample string 10</UseTypeKey> </SaleNoteDetailVM> </SaleNoteDetailVM> </SaleNoteVM>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultModelOfBooleanName | Description | Type | Additional information |
---|---|---|---|
Code | ReturnCode |
None. |
|
Message | string |
None. |
|
Data | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "Code": 200, "Message": "sample string 1", "Data": true }
application/xml, text/xml
Sample:
<ResultModelOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.Utility"> <Code>Success</Code> <Data>true</Data> <Message>sample string 1</Message> </ResultModelOfboolean>