coa fix
This commit is contained in:
@@ -63,8 +63,8 @@ func (r *ChartOfAccountRepositoryImpl) List(ctx context.Context, req *entities.C
|
||||
if req.OrganizationID != uuid.Nil {
|
||||
query = query.Where("organization_id = ?", req.OrganizationID)
|
||||
}
|
||||
if req.OutletID != nil {
|
||||
query = query.Where("outlet_id = ?", *req.OutletID)
|
||||
if req.OutletID != uuid.Nil {
|
||||
query = query.Where("outlet_id = ?", req.OutletID)
|
||||
}
|
||||
if req.ChartOfAccountTypeID != uuid.Nil {
|
||||
query = query.Where("chart_of_account_type_id = ?", req.ChartOfAccountTypeID)
|
||||
|
||||
Reference in New Issue
Block a user