POST jxc_api/Payment/Add

新增付款单

Request Information

URI Parameters

None.

Body Parameters

付款单信息

PaymentEditModel
NameDescriptionTypeAdditional information
AsId

账套ID

integer

None.

Date

单据日期

date

None.

VendId

供应商ID

integer

None.

Id

单据ID

integer

None.

No

单据编码

string

None.

Operator

付款人

integer

None.

DiscAmount

整单折扣

decimal number

None.

Amount

各付款账户付款金额总和

decimal number

None.

OFAmount

本次核销金额总和

decimal number

None.

OFStatus

付款单的核销状态

BillStatus

None.

Note

备注

string

None.

IsChecked

是否已审核

integer

None.

CreatedBy

制单人

integer

None.

CreatedDate

制单日期

date

None.

ModifiedBy

修改人

integer

None.

ModifiedDate

修改日期

date

None.

CheckedBy

审核人

integer

None.

CheckedDate

审核日期

date

None.

VendName

供应商名称

string

None.

CreatedByName

制单人名称

string

None.

CheckedByName

审核人名称

string

None.

ModifiedByName

修改人名称

string

None.

OperatorName

付款人名称

string

None.

IsFromApp

是否是App调用的

boolean

None.

Items

各付款账户付款详情

Collection of PaymentEntryEditModel

None.

Items2

核销的项目详情

Collection of RPBillEntryEditModel

None.

Request Formats

application/json, text/json

Sample:
{
  "AsId": 1,
  "Date": "2021-09-19 00:01:10",
  "VendId": 3,
  "Id": 4,
  "No": "sample string 5",
  "Operator": 6,
  "DiscAmount": 7.0,
  "Amount": 8.0,
  "OFAmount": 9.0,
  "OFStatus": 1010,
  "Note": "sample string 10",
  "IsChecked": 11,
  "CreatedBy": 12,
  "CreatedDate": "2021-09-19 00:01:10",
  "ModifiedBy": 14,
  "ModifiedDate": "2021-09-19 00:01:10",
  "CheckedBy": 16,
  "CheckedDate": "2021-09-19 00:01:10",
  "VendName": "sample string 18",
  "CreatedByName": "sample string 19",
  "CheckedByName": "sample string 20",
  "ModifiedByName": "sample string 21",
  "OperatorName": "sample string 22",
  "IsFromApp": true,
  "Items": [
    {
      "AsId": 1,
      "Date": "2021-09-19 00:01:10",
      "VendId": 3,
      "PayId": 4,
      "PayNo": "sample string 5",
      "Id": 6,
      "AcId": 7,
      "Amount": 8.0,
      "PayMethod": 9,
      "PaySn": "sample string 10",
      "Note": "sample string 11",
      "StrValue1": "sample string 12",
      "StrValue2": "sample string 13",
      "StrValue3": "sample string 14",
      "StrValue4": "sample string 15",
      "StrValue5": "sample string 16",
      "StrValue6": "sample string 17",
      "StrValue7": "sample string 18",
      "StrValue8": "sample string 19",
      "AcName": "sample string 20",
      "PayMethodName": "sample string 21"
    },
    {
      "AsId": 1,
      "Date": "2021-09-19 00:01:10",
      "VendId": 3,
      "PayId": 4,
      "PayNo": "sample string 5",
      "Id": 6,
      "AcId": 7,
      "Amount": 8.0,
      "PayMethod": 9,
      "PaySn": "sample string 10",
      "Note": "sample string 11",
      "StrValue1": "sample string 12",
      "StrValue2": "sample string 13",
      "StrValue3": "sample string 14",
      "StrValue4": "sample string 15",
      "StrValue5": "sample string 16",
      "StrValue6": "sample string 17",
      "StrValue7": "sample string 18",
      "StrValue8": "sample string 19",
      "AcName": "sample string 20",
      "PayMethodName": "sample string 21"
    }
  ],
  "Items2": [
    null,
    {
      "AsId": 1,
      "RPDate": "2021-09-19 00:01:10",
      "BType": 1010,
      "RPId": 3,
      "RPNo": "sample string 4",
      "Id": 5,
      "BillId": 6,
      "BillNo": "sample string 7",
      "BillBType": 1010,
      "BillDate": "2021-09-19 00:01:10",
      "BillOFAmount": 9.0,
      "StrValue1": "sample string 10",
      "StrValue2": "sample string 11",
      "StrValue3": "sample string 12",
      "StrValue4": "sample string 13",
      "StrValue5": "sample string 14",
      "StrValue6": "sample string 15",
      "StrValue7": "sample string 16",
      "StrValue8": "sample string 17",
      "CreatedBy": 18,
      "CreatedDate": "2021-09-19 00:01:10",
      "ModifiedBy": 20,
      "ModifiedDate": "2021-09-19 00:01:10",
      "BillAmount": 22.0,
      "BillOFDAmount": 23.0,
      "BillOFUAmount": 24.0,
      "BillDateFmt": "2021-09-19"
    }
  ]
}

application/xml, text/xml

Sample:
<PaymentEditModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Money.Models">
  <Amount>8</Amount>
  <AsId>1</AsId>
  <CheckedBy>16</CheckedBy>
  <CheckedByName>sample string 20</CheckedByName>
  <CheckedDate>2021-09-19T00:01:10.0192634+08:00</CheckedDate>
  <CreatedBy>12</CreatedBy>
  <CreatedByName>sample string 19</CreatedByName>
  <CreatedDate>2021-09-19T00:01:10.0192634+08:00</CreatedDate>
  <Date>2021-09-19T00:01:10.0192634+08:00</Date>
  <DiscAmount>7</DiscAmount>
  <Id>4</Id>
  <IsChecked>11</IsChecked>
  <IsFromApp>true</IsFromApp>
  <Items>
    <PaymentEntryEditModel>
      <AcId>7</AcId>
      <AcName>sample string 20</AcName>
      <Amount>8</Amount>
      <AsId>1</AsId>
      <Date>2021-09-19T00:01:10.0192634+08:00</Date>
      <Id>6</Id>
      <Note>sample string 11</Note>
      <PayId>4</PayId>
      <PayMethod>9</PayMethod>
      <PayMethodName>sample string 21</PayMethodName>
      <PayNo>sample string 5</PayNo>
      <PaySn>sample string 10</PaySn>
      <StrValue1>sample string 12</StrValue1>
      <StrValue2>sample string 13</StrValue2>
      <StrValue3>sample string 14</StrValue3>
      <StrValue4>sample string 15</StrValue4>
      <StrValue5>sample string 16</StrValue5>
      <StrValue6>sample string 17</StrValue6>
      <StrValue7>sample string 18</StrValue7>
      <StrValue8>sample string 19</StrValue8>
      <VendId>3</VendId>
    </PaymentEntryEditModel>
    <PaymentEntryEditModel>
      <AcId>7</AcId>
      <AcName>sample string 20</AcName>
      <Amount>8</Amount>
      <AsId>1</AsId>
      <Date>2021-09-19T00:01:10.0192634+08:00</Date>
      <Id>6</Id>
      <Note>sample string 11</Note>
      <PayId>4</PayId>
      <PayMethod>9</PayMethod>
      <PayMethodName>sample string 21</PayMethodName>
      <PayNo>sample string 5</PayNo>
      <PaySn>sample string 10</PaySn>
      <StrValue1>sample string 12</StrValue1>
      <StrValue2>sample string 13</StrValue2>
      <StrValue3>sample string 14</StrValue3>
      <StrValue4>sample string 15</StrValue4>
      <StrValue5>sample string 16</StrValue5>
      <StrValue6>sample string 17</StrValue6>
      <StrValue7>sample string 18</StrValue7>
      <StrValue8>sample string 19</StrValue8>
      <VendId>3</VendId>
    </PaymentEntryEditModel>
  </Items>
  <Items2>
    <RPBillEntryEditModel i:nil="true" />
    <RPBillEntryEditModel>
      <AsId>1</AsId>
      <BType>PreOFRec</BType>
      <BillAmount>22</BillAmount>
      <BillBType>Purchase</BillBType>
      <BillDate>2021-09-19T00:01:10.0192634+08:00</BillDate>
      <BillDateFmt>2021-09-19</BillDateFmt>
      <BillId>6</BillId>
      <BillNo>sample string 7</BillNo>
      <BillOFAmount>9</BillOFAmount>
      <BillOFDAmount>23</BillOFDAmount>
      <BillOFUAmount>24</BillOFUAmount>
      <CreatedBy>18</CreatedBy>
      <CreatedDate>2021-09-19T00:01:10.0192634+08:00</CreatedDate>
      <Id>5</Id>
      <ModifiedBy>20</ModifiedBy>
      <ModifiedDate>2021-09-19T00:01:10.0192634+08:00</ModifiedDate>
      <RPDate>2021-09-19T00:01:10.0192634+08:00</RPDate>
      <RPId>3</RPId>
      <RPNo>sample string 4</RPNo>
      <StrValue1>sample string 10</StrValue1>
      <StrValue2>sample string 11</StrValue2>
      <StrValue3>sample string 12</StrValue3>
      <StrValue4>sample string 13</StrValue4>
      <StrValue5>sample string 14</StrValue5>
      <StrValue6>sample string 15</StrValue6>
      <StrValue7>sample string 16</StrValue7>
      <StrValue8>sample string 17</StrValue8>
    </RPBillEntryEditModel>
  </Items2>
  <ModifiedBy>14</ModifiedBy>
  <ModifiedByName>sample string 21</ModifiedByName>
  <ModifiedDate>2021-09-19T00:01:10.0192634+08:00</ModifiedDate>
  <No>sample string 5</No>
  <Note>sample string 10</Note>
  <OFAmount>9</OFAmount>
  <OFStatus>None</OFStatus>
  <Operator>6</Operator>
  <OperatorName>sample string 22</OperatorName>
  <VendId>3</VendId>
  <VendName>sample string 18</VendName>
</PaymentEditModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

新增付款单

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />