|
|
|
@ -740,9 +740,9 @@ func (o logic) CompanyAllAmount(id uint) (res Data) {
|
|
|
|
|
for _, v := range record {
|
|
|
|
|
res.Balance = res.Balance.Add(v.Income)
|
|
|
|
|
if v.Type == order.Card {
|
|
|
|
|
res.TaxAmount = v.Income.Mul(cr).Round(2)
|
|
|
|
|
res.TaxAmount = res.TaxAmount.Add(v.Income.Mul(cr).Round(2))
|
|
|
|
|
} else {
|
|
|
|
|
res.TaxAmount = v.Income.Mul(rate).Round(2)
|
|
|
|
|
res.TaxAmount = res.TaxAmount.Add(v.Income.Mul(rate).Round(2))
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
res.ActualAmount = res.Balance.Sub(res.TaxAmount)
|
|
|
|
|