PUT api/{area}/AccountSubject?access_token={access_token}
批量修改科目
Request Information
Body Parameters
需要修改的科目
AccountSubjectViewModelName | Description | Type | Additional information |
---|---|---|---|
as_id |
账套ID |
integer |
Required |
AsubCode |
科目ID |
string |
Required |
AsubName |
科目名称 |
string |
Required Max String Length: 62 Min String Length: 1 |
Status |
科目状态 启用0,停用1 |
integer |
Required |
Quantity |
数量核算开关 停用0,启用1,默认停用 |
integer |
Required Range: inclusive between 0 and 1 |
MeasureUnit |
数量核算单位,仅当开启辅助核算有效 |
string |
None. |
Assit |
辅助核算开关,停用0,启用1,默认停用 |
integer |
Required Range: inclusive between 0 and 1 |
AANames |
辅助核算项目名称 如客户,项目,仅当开启辅助核算有效 |
string |
None. |
Note |
备注信息 |
string |
None. |
ForgeinCurrcy |
外币核算开关 停用0,启用1,默认停用 |
integer |
Required Range: inclusive between 0 and 1 |
FCNames |
外币核算code值,如usd,rmb。默认只开启rmb,当有值时仅限值内容,如 usd,rmb 不同于 usd,仅当开启外币模式时有效 |
string |
None. |
FCAdjust |
期末调汇开关,停用0,启用1,默认为停用,仅当开启外币模式时有效 |
integer |
Range: inclusive between 0 and 1 |
Request Formats
application/json, text/json
Sample:
{ "as_id": 1, "asub_code": "sample string 2", "asub_name": "sample string 3", "status": 4, "quantity": 5, "measure_unit": "sample string 6", "assit": 7, "aanames": "sample string 8", "note": "sample string 9", "forgein_currcy": 10, "fcnames": "sample string 11", "fcadjust": 12 }
application/xml, text/xml
Sample:
<AccountSubjectViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonAcc.Open.Areas.Settings.Models"> <AANames>sample string 8</AANames> <AsId>1</AsId> <Assit>7</Assit> <AsubCode>sample string 2</AsubCode> <AsubName>sample string 3</AsubName> <FCAdjust>12</FCAdjust> <FCNames>sample string 11</FCNames> <ForgeinCurrcy>10</ForgeinCurrcy> <MeasureUnit>sample string 6</MeasureUnit> <Note>sample string 9</Note> <Quantity>5</Quantity> <Status>4</Status> </AccountSubjectViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
批量修改科目
SetingsOkResponseName | Description | Type | Additional information |
---|---|---|---|
result | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "result": "sample string 1" }
application/xml, text/xml
Sample:
<SetingsOkResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonAcc.Open.Areas.Settings.Models"> <Result>sample string 1</Result> </SetingsOkResponse>