|
@@ -361,8 +361,8 @@ func (rg *RegisterController) Add(c *gin.Context) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- prePayOB := new(fms.ContractPrePayment)
|
|
|
- ppItem, e := prePayOB.Fetch(req.PrePayId)
|
|
|
+ prePayOB := new(fms.ContractInvoice)
|
|
|
+ ppItem, e := prePayOB.Fetch(req.ContractInvoiceId)
|
|
|
if e != nil {
|
|
|
if e == utils.ErrNoRow {
|
|
|
resp.Fail("预到款不存在或已被删除", c)
|
|
@@ -392,7 +392,7 @@ func (rg *RegisterController) Add(c *gin.Context) {
|
|
|
OriginAmount: ppItem.OriginAmount,
|
|
|
CurrencyUnit: ppItem.CurrencyUnit,
|
|
|
InvoiceType: fms.ContractInvoiceTypePay,
|
|
|
- InvoiceDate: ppItem.PaymentDate,
|
|
|
+ InvoiceDate: ppItem.InvoiceDate,
|
|
|
AdminId: int(adminInfo.AdminId),
|
|
|
AdminName: adminInfo.RealName,
|
|
|
Remark: ppItem.Remark,
|