|  | @@ -10,7 +10,6 @@ package services
 | 
	
		
			
				|  |  |  import (
 | 
	
		
			
				|  |  |  	"errors"
 | 
	
		
			
				|  |  |  	"fmt"
 | 
	
		
			
				|  |  | -	"strconv"
 | 
	
		
			
				|  |  |  	"time"
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	"github.com/shopspring/decimal"
 | 
	
	
		
			
				|  | @@ -44,7 +43,7 @@ func (s *contractService) AddExpenditure(contractData *viewmodels.Contracts, pro
 | 
	
		
			
				|  |  |  	contractsCm.Name = contractData.Name
 | 
	
		
			
				|  |  |  	contractsCm.ContractsType = 2
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -	contractsCm.Price = strconv.FormatFloat(contractData.Price, 'f', 2, 64)
 | 
	
		
			
				|  |  | +	contractsCm.Price = fmt.Sprintf("%.2f", contractData.Price)
 | 
	
		
			
				|  |  |  	// contractsCm.Price = contractData.Price
 | 
	
		
			
				|  |  |  	contractsCm.Returned = "0"
 | 
	
		
			
				|  |  |  	contractsCm.Paid = "0"
 | 
	
	
		
			
				|  | @@ -103,7 +102,7 @@ func (s *contractService) UpdateExpenditure(contractData *viewmodels.Contracts,
 | 
	
		
			
				|  |  |  	contractsCm.Id = contractsTree.ContractId
 | 
	
		
			
				|  |  |  	contractsCm.Content = contractData.Content
 | 
	
		
			
				|  |  |  	contractsCm.Name = contractData.Name
 | 
	
		
			
				|  |  | -	contractsCm.Price = strconv.FormatFloat(contractData.Price, 'f', 2, 64)
 | 
	
		
			
				|  |  | +	contractsCm.Price = fmt.Sprintf("%.2f", contractData.Price)
 | 
	
		
			
				|  |  |  	contractsCm.PartyA = contractData.PartyA
 | 
	
		
			
				|  |  |  	contractsCm.PartyASigner = contractData.PartyASigner
 | 
	
		
			
				|  |  |  	contractsCm.PartyB = contractData.PartyB
 |