zhangqian
2023-08-13 6e87a1f6795af50133b10fa853fd6c2d14bb698c
docs/swagger.yaml
@@ -142,6 +142,14 @@
    - ReceiptSourceTypeInvoice
    - ReceiptSourceTypeCollectionPlan
    - ReceiptSourceTypeChuKuDan
  constvar.RefundSourceType:
    enum:
    - 1
    type: integer
    x-enum-comments:
      RefundSourceTypeSalesReturn: 销售退货
    x-enum-varnames:
    - RefundSourceTypeSalesReturn
  constvar.SalesDetailsKeywordType:
    enum:
    - 客户名称
@@ -1002,6 +1010,8 @@
      amount:
        description: 收款金额
        type: number
      bankAccount:
        $ref: '#/definitions/model.BankAccount'
      bankAccountId:
        description: 账户id
        type: integer
@@ -1016,9 +1026,15 @@
      moneyType:
        description: 币种
        type: string
      paymentType:
        $ref: '#/definitions/model.PaymentType'
      paymentTypeId:
        description: 收款方式ID
        type: integer
      principal:
        allOf:
        - $ref: '#/definitions/model.User'
        description: 负责人id
      principalId:
        description: 负责人id
        type: integer
@@ -1294,8 +1310,13 @@
    type: object
  model.SalesRefund:
    properties:
      accountId:
      bankAccount:
        $ref: '#/definitions/model.BankAccount'
      bankAccountId:
        description: 账户id
        type: integer
      client:
        $ref: '#/definitions/model.Client'
      clientId:
        type: integer
      id:
@@ -1306,6 +1327,11 @@
        type: integer
      number:
        type: string
      paymentType:
        $ref: '#/definitions/model.PaymentType'
      paymentTypeId:
        description: 收款方式ID
        type: integer
      products:
        items:
          $ref: '#/definitions/model.Product'
@@ -1314,8 +1340,13 @@
        type: string
      refundDate:
        type: string
      refundMethod:
        type: string
      sourceId:
        description: 源单id
        type: integer
      sourceType:
        allOf:
        - $ref: '#/definitions/constvar.RefundSourceType'
        description: 来源类型(1销售明细单2服务合同3销售发票4收款计划5出库单)
    type: object
  model.SalesReturn:
    properties:
@@ -2283,6 +2314,8 @@
      amount:
        description: 收款金额
        type: number
      bankAccount:
        $ref: '#/definitions/model.BankAccount'
      bankAccountId:
        description: 账户id
        type: integer
@@ -2297,9 +2330,15 @@
      moneyType:
        description: 币种
        type: string
      paymentType:
        $ref: '#/definitions/model.PaymentType'
      paymentTypeId:
        description: 收款方式ID
        type: integer
      principal:
        allOf:
        - $ref: '#/definitions/model.User'
        description: 负责人id
      principalId:
        description: 负责人id
        type: integer
@@ -3482,7 +3521,8 @@
    type: object
  request.SalesRefund:
    properties:
      accountId:
      bankAccountId:
        description: 账户id
        type: integer
      clientId:
        type: integer
@@ -3492,6 +3532,9 @@
        type: integer
      number:
        type: string
      paymentTypeId:
        description: 收款方式ID
        type: integer
      products:
        items:
          $ref: '#/definitions/model.Product'
@@ -3500,8 +3543,13 @@
        type: string
      refundDate:
        type: string
      refundMethod:
        type: string
      sourceId:
        description: 源单id
        type: integer
      sourceType:
        allOf:
        - $ref: '#/definitions/constvar.RefundSourceType'
        description: 来源类型(1销售明细单2服务合同3销售发票4收款计划5出库单)
    type: object
  request.SalesReturn:
    properties:
@@ -4245,6 +4293,8 @@
      amount:
        description: 收款金额
        type: number
      bankAccount:
        $ref: '#/definitions/model.BankAccount'
      bankAccountId:
        description: 账户id
        type: integer
@@ -4259,9 +4309,15 @@
      moneyType:
        description: 币种
        type: string
      paymentType:
        $ref: '#/definitions/model.PaymentType'
      paymentTypeId:
        description: 收款方式ID
        type: integer
      principal:
        allOf:
        - $ref: '#/definitions/model.User'
        description: 负责人id
      principalId:
        description: 负责人id
        type: integer