fix
zhangqian
2023-08-30 cd9a3c446cff66e589cdb26163c3e2baf4bc6a1e
fix
1个文件已添加
4个文件已修改
158 ■■■■ 已修改文件
constvar/number.go 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/docs.go 54 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.json 54 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.yaml 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
model/salesReturn.go 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
constvar/number.go
New file
@@ -0,0 +1,5 @@
package constvar
const (
    NumberPrefixOfReceipt = "skd"
)
docs/docs.go
@@ -10836,10 +10836,6 @@
        "model.Client": {
            "type": "object",
            "properties": {
                "_": {
                    "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25",
                    "type": "string"
                },
                "business_scope": {
                    "type": "string"
                },
@@ -11024,10 +11020,6 @@
        "model.CollectionProjection": {
            "type": "object",
            "properties": {
                "_": {
                    "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25",
                    "type": "string"
                },
                "created_at": {
                    "description": "The date when the item was created\nexample: 2023-08-10 15:48:25",
                    "type": "string"
@@ -11216,10 +11208,6 @@
        "model.Contract": {
            "type": "object",
            "properties": {
                "_": {
                    "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25",
                    "type": "string"
                },
                "client": {
                    "$ref": "#/definitions/model.Client"
                },
@@ -11880,6 +11868,12 @@
                    "description": "客户id",
                    "type": "integer"
                },
                "createTime": {
                    "type": "string"
                },
                "creatorName": {
                    "type": "string"
                },
                "fileId": {
                    "description": "附件id",
                    "type": "integer"
@@ -11889,6 +11883,9 @@
                },
                "moneyType": {
                    "description": "币种",
                    "type": "string"
                },
                "number": {
                    "type": "string"
                },
                "paymentType": {
@@ -11929,6 +11926,9 @@
                            "$ref": "#/definitions/constvar.ReceiptSourceType"
                        }
                    ]
                },
                "updateTime": {
                    "type": "string"
                }
            }
        },
@@ -12497,6 +12497,9 @@
                    "description": "退货状态id",
                    "type": "integer"
                },
                "source": {
                    "$ref": "#/definitions/model.SalesDetails"
                },
                "sourceId": {
                    "description": "源单id",
                    "type": "integer"
@@ -12933,6 +12936,9 @@
                },
                "id": {
                    "type": "integer"
                },
                "number": {
                    "type": "string"
                },
                "priorityLevel": {
                    "$ref": "#/definitions/model.PriorityLevel"
@@ -13986,6 +13992,12 @@
                    "description": "客户id",
                    "type": "integer"
                },
                "createTime": {
                    "type": "string"
                },
                "creatorName": {
                    "type": "string"
                },
                "fileId": {
                    "description": "附件id",
                    "type": "integer"
@@ -13995,6 +14007,9 @@
                },
                "moneyType": {
                    "description": "币种",
                    "type": "string"
                },
                "number": {
                    "type": "string"
                },
                "paymentType": {
@@ -14035,6 +14050,9 @@
                            "$ref": "#/definitions/constvar.ReceiptSourceType"
                        }
                    ]
                },
                "updateTime": {
                    "type": "string"
                }
            }
        },
@@ -17057,6 +17075,12 @@
                    "description": "客户id",
                    "type": "integer"
                },
                "createTime": {
                    "type": "string"
                },
                "creatorName": {
                    "type": "string"
                },
                "fileId": {
                    "description": "附件id",
                    "type": "integer"
@@ -17066,6 +17090,9 @@
                },
                "moneyType": {
                    "description": "币种",
                    "type": "string"
                },
                "number": {
                    "type": "string"
                },
                "paymentType": {
@@ -17106,6 +17133,9 @@
                            "$ref": "#/definitions/constvar.ReceiptSourceType"
                        }
                    ]
                },
                "updateTime": {
                    "type": "string"
                }
            }
        },
docs/swagger.json
@@ -10824,10 +10824,6 @@
        "model.Client": {
            "type": "object",
            "properties": {
                "_": {
                    "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25",
                    "type": "string"
                },
                "business_scope": {
                    "type": "string"
                },
@@ -11012,10 +11008,6 @@
        "model.CollectionProjection": {
            "type": "object",
            "properties": {
                "_": {
                    "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25",
                    "type": "string"
                },
                "created_at": {
                    "description": "The date when the item was created\nexample: 2023-08-10 15:48:25",
                    "type": "string"
@@ -11204,10 +11196,6 @@
        "model.Contract": {
            "type": "object",
            "properties": {
                "_": {
                    "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25",
                    "type": "string"
                },
                "client": {
                    "$ref": "#/definitions/model.Client"
                },
@@ -11868,6 +11856,12 @@
                    "description": "客户id",
                    "type": "integer"
                },
                "createTime": {
                    "type": "string"
                },
                "creatorName": {
                    "type": "string"
                },
                "fileId": {
                    "description": "附件id",
                    "type": "integer"
@@ -11877,6 +11871,9 @@
                },
                "moneyType": {
                    "description": "币种",
                    "type": "string"
                },
                "number": {
                    "type": "string"
                },
                "paymentType": {
@@ -11917,6 +11914,9 @@
                            "$ref": "#/definitions/constvar.ReceiptSourceType"
                        }
                    ]
                },
                "updateTime": {
                    "type": "string"
                }
            }
        },
@@ -12485,6 +12485,9 @@
                    "description": "退货状态id",
                    "type": "integer"
                },
                "source": {
                    "$ref": "#/definitions/model.SalesDetails"
                },
                "sourceId": {
                    "description": "源单id",
                    "type": "integer"
@@ -12921,6 +12924,9 @@
                },
                "id": {
                    "type": "integer"
                },
                "number": {
                    "type": "string"
                },
                "priorityLevel": {
                    "$ref": "#/definitions/model.PriorityLevel"
@@ -13974,6 +13980,12 @@
                    "description": "客户id",
                    "type": "integer"
                },
                "createTime": {
                    "type": "string"
                },
                "creatorName": {
                    "type": "string"
                },
                "fileId": {
                    "description": "附件id",
                    "type": "integer"
@@ -13983,6 +13995,9 @@
                },
                "moneyType": {
                    "description": "币种",
                    "type": "string"
                },
                "number": {
                    "type": "string"
                },
                "paymentType": {
@@ -14023,6 +14038,9 @@
                            "$ref": "#/definitions/constvar.ReceiptSourceType"
                        }
                    ]
                },
                "updateTime": {
                    "type": "string"
                }
            }
        },
@@ -17045,6 +17063,12 @@
                    "description": "客户id",
                    "type": "integer"
                },
                "createTime": {
                    "type": "string"
                },
                "creatorName": {
                    "type": "string"
                },
                "fileId": {
                    "description": "附件id",
                    "type": "integer"
@@ -17054,6 +17078,9 @@
                },
                "moneyType": {
                    "description": "币种",
                    "type": "string"
                },
                "number": {
                    "type": "string"
                },
                "paymentType": {
@@ -17094,6 +17121,9 @@
                            "$ref": "#/definitions/constvar.ReceiptSourceType"
                        }
                    ]
                },
                "updateTime": {
                    "type": "string"
                }
            }
        },
docs/swagger.yaml
@@ -445,11 +445,6 @@
    type: object
  model.Client:
    properties:
      _:
        description: |-
          The date when the item was deleted
          example: 2023-08-10 15:48:25
        type: string
      business_scope:
        type: string
      city:
@@ -578,11 +573,6 @@
    type: object
  model.CollectionProjection:
    properties:
      _:
        description: |-
          The date when the item was deleted
          example: 2023-08-10 15:48:25
        type: string
      created_at:
        description: |-
          The date when the item was created
@@ -714,11 +704,6 @@
    type: object
  model.Contract:
    properties:
      _:
        description: |-
          The date when the item was deleted
          example: 2023-08-10 15:48:25
        type: string
      client:
        $ref: '#/definitions/model.Client'
      clientId:
@@ -1159,6 +1144,10 @@
      clientId:
        description: 客户id
        type: integer
      createTime:
        type: string
      creatorName:
        type: string
      fileId:
        description: 附件id
        type: integer
@@ -1166,6 +1155,8 @@
        type: integer
      moneyType:
        description: 币种
        type: string
      number:
        type: string
      paymentType:
        $ref: '#/definitions/model.PaymentType'
@@ -1192,6 +1183,8 @@
        allOf:
        - $ref: '#/definitions/constvar.ReceiptSourceType'
        description: 来源类型(1销售明细单2服务合同3销售发票4收款计划5出库单)
      updateTime:
        type: string
    type: object
  model.RefundMethod:
    properties:
@@ -1568,6 +1561,8 @@
      salesReturnStatusId:
        description: 退货状态id
        type: integer
      source:
        $ref: '#/definitions/model.SalesDetails'
      sourceId:
        description: 源单id
        type: integer
@@ -1862,6 +1857,8 @@
        type: integer
      id:
        type: integer
      number:
        type: string
      priorityLevel:
        $ref: '#/definitions/model.PriorityLevel'
      priorityLevelId:
@@ -2572,6 +2569,10 @@
      clientId:
        description: 客户id
        type: integer
      createTime:
        type: string
      creatorName:
        type: string
      fileId:
        description: 附件id
        type: integer
@@ -2579,6 +2580,8 @@
        type: integer
      moneyType:
        description: 币种
        type: string
      number:
        type: string
      paymentType:
        $ref: '#/definitions/model.PaymentType'
@@ -2605,6 +2608,8 @@
        allOf:
        - $ref: '#/definitions/constvar.ReceiptSourceType'
        description: 来源类型(1销售明细单2服务合同3销售发票4收款计划5出库单)
      updateTime:
        type: string
    type: object
  request.AddRefundMethod:
    properties:
@@ -4675,6 +4680,10 @@
      clientId:
        description: 客户id
        type: integer
      createTime:
        type: string
      creatorName:
        type: string
      fileId:
        description: 附件id
        type: integer
@@ -4682,6 +4691,8 @@
        type: integer
      moneyType:
        description: 币种
        type: string
      number:
        type: string
      paymentType:
        $ref: '#/definitions/model.PaymentType'
@@ -4708,6 +4719,8 @@
        allOf:
        - $ref: '#/definitions/constvar.ReceiptSourceType'
        description: 来源类型(1销售明细单2服务合同3销售发票4收款计划5出库单)
      updateTime:
        type: string
    type: object
  request.UpdateRefundMethod:
    properties:
model/salesReturn.go
@@ -16,7 +16,7 @@
        Client              Client                         `json:"client" gorm:"foreignKey:ClientId"`
        SourceType          constvar.SalesReturnSourceType `gorm:"source_type" json:"sourceType"` // 源单类型(1销售明细)
        SourceId            int                            `gorm:"source_id" json:"sourceId"`     // 源单id
        Source              SalesDetails                   `gorm:"foreignKey:SourceId" json:"Source"`
        Source              SalesDetails                   `gorm:"foreignKey:SourceId" json:"source"`
        Number              string                         `json:"number" gorm:"column:number;type:varchar(255);comment:退货单号"`
        Repository          string                         `json:"repository" gorm:"column:repository;type:varchar(255);comment:仓库"`
        MemberId            int                            `json:"memberId" gorm:"column:member_id;type:int;comment:负责人id"`