feat(tenant): 按租户隔离支付退款与商户配置
This commit is contained in:
@@ -103,6 +103,7 @@ func appendCheckoutOwnerIncome(tx *gorm.DB, order *model.RentalOrder, listing *m
|
||||
var ownerEntries []wallet.Entry
|
||||
if settlement.OwnerRentIncomeCent > 0 {
|
||||
ownerEntries = append(ownerEntries, wallet.Entry{
|
||||
TenantID: order.SourceTenantID,
|
||||
UserID: order.OwnerID,
|
||||
DistributionSiteID: siteID,
|
||||
OrderID: &orderID,
|
||||
@@ -116,6 +117,7 @@ func appendCheckoutOwnerIncome(tx *gorm.DB, order *model.RentalOrder, listing *m
|
||||
}
|
||||
if settlement.DepositCompensationCent > 0 {
|
||||
ownerEntries = append(ownerEntries, wallet.Entry{
|
||||
TenantID: order.SourceTenantID,
|
||||
UserID: order.OwnerID,
|
||||
DistributionSiteID: siteID,
|
||||
OrderID: &orderID,
|
||||
|
||||
Reference in New Issue
Block a user