From 1f10e962885079103da0dabd8d172dad3b834e16 Mon Sep 17 00:00:00 2001 From: giovanni Date: Wed, 4 Feb 2026 15:17:05 +0700 Subject: [PATCH] fix query field source_warehouse --- internal/modules/closings/repositories/closing.repository.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/modules/closings/repositories/closing.repository.go b/internal/modules/closings/repositories/closing.repository.go index 4f699086..a4db4694 100644 --- a/internal/modules/closings/repositories/closing.repository.go +++ b/internal/modules/closings/repositories/closing.repository.go @@ -566,8 +566,8 @@ SELECT FROM flags f WHERE f.flagable_type = 'products' AND f.flagable_id = prod.id ), '') AS product_sub_category, - COALESCE(w.name, '') AS source_warehouse, - '-' AS destination_warehouse, + '-' AS source_warehouse, + COALESCE(w.name, '') AS destination_warehouse, '' AS destination, COALESCE(ast.total_qty, 0) AS quantity, u.id AS unit_id,