|
@@ -1035,6 +1035,7 @@ func (rg *RegisterController) Edit(c *gin.Context) {
|
|
|
|
|
|
logRemark := req.Remark
|
|
|
invoiceHandleType := 0
|
|
|
+ OriginCurrencyUnit := ""
|
|
|
if originHasInvoice == 1 && req.HasInvoice == 0 {
|
|
|
|
|
|
invoiceHandleType = 2
|
|
@@ -1057,6 +1058,7 @@ func (rg *RegisterController) Edit(c *gin.Context) {
|
|
|
resp.FailMsg("操作失败", "货币汇率有误", c)
|
|
|
return
|
|
|
}
|
|
|
+ OriginCurrencyUnit = item.CurrencyUnit
|
|
|
item.CurrencyUnit = req.CurrencyUnit
|
|
|
item.RMBRate = rate
|
|
|
updateCols = append(updateCols, "CurrencyUnit", "RMBRate")
|
|
@@ -1069,7 +1071,7 @@ func (rg *RegisterController) Edit(c *gin.Context) {
|
|
|
}
|
|
|
invoiceUpdateCols = append(invoiceUpdateCols, "CurrencyUnit", "Amount")
|
|
|
invoiceHandleType = 1
|
|
|
- logRemark = fmt.Sprintf("金额单位由%s修改为%s\n%s", item.CurrencyUnit, req.CurrencyUnit, logRemark)
|
|
|
+ logRemark = fmt.Sprintf("金额单位由%s修改为%s\n%s", OriginCurrencyUnit, req.CurrencyUnit, logRemark)
|
|
|
}
|
|
|
}
|
|
|
|