|
@@ -1035,6 +1035,7 @@ func (rg *RegisterController) Edit(c *gin.Context) {
|
|
|
// 开票到款操作类型: 0-无; 1-更新; 2-删除;
|
|
|
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)
|
|
|
}
|
|
|
}
|
|
|
// 新增套餐金额详情内容
|