mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-24 23:35:43 +00:00
fix: DTO mismatch marketings
This commit is contained in:
@@ -1293,7 +1293,7 @@ func (s deliveryOrdersService) resolveMarketingRequestedUsageQty(ctx context.Con
|
||||
var usageQty float64
|
||||
if err := tx.WithContext(ctx).
|
||||
Table("marketing_delivery_products").
|
||||
Select("usage_qty").
|
||||
Select("usage_qty + pending_qty").
|
||||
Where("id = ?", deliveryProductID).
|
||||
Scan(&usageQty).Error; err != nil {
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user