zhangqian
2023-08-17 a934b5ea45f84c71d9d309a1c69bfa21d1898b4a
1
2
3
4
5
6
7
8
9
10
11
12
13
package model
 
import (
    "github.com/shopspring/decimal"
    "gorm.io/gorm"
)
 
type MoneyAdder interface {
    AmountReceivableAdd(tx *gorm.DB, id int, amount decimal.Decimal) error
    AmountReceivedAdd(tx *gorm.DB, id int, amount decimal.Decimal) error
    AmountInvoicedAdd(tx *gorm.DB, id int, amount decimal.Decimal) error
    AmountNotInvoicedAdd(tx *gorm.DB, id int, amount decimal.Decimal) error
}