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
SaleNoteVM| Name | 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": "16b71035-5d82-40a7-9e66-d42c5afb6065",
"WorkRecordID": "b6140bef-6f94-4e27-aa1c-b21c054d8a91",
"SaleDateTime": "sample string 4",
"Remark": "sample string 5",
"SaleNubmber": "sample string 6"
},
"SaleNoteDetailVM": [
{
"ProductID": "be3a0687-fa69-45e8-a94f-3e6915d4adb0",
"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": "be3a0687-fa69-45e8-a94f-3e6915d4adb0",
"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": "25edd87a-e1c5-47da-afc6-beb687e2e5d7",
"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>25edd87a-e1c5-47da-afc6-beb687e2e5d7</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>16b71035-5d82-40a7-9e66-d42c5afb6065</WarehouseID>
<WorkRecordID>b6140bef-6f94-4e27-aa1c-b21c054d8a91</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>be3a0687-fa69-45e8-a94f-3e6915d4adb0</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>be3a0687-fa69-45e8-a94f-3e6915d4adb0</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
ResultModelOfBoolean| Name | 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>