coa fix
This commit is contained in:
@@ -11,7 +11,7 @@ func ChartOfAccountEntityToResponse(entity *entities.ChartOfAccount) *models.Cha
|
||||
response := &models.ChartOfAccountResponse{
|
||||
ID: entity.ID,
|
||||
OrganizationID: entity.OrganizationID,
|
||||
OutletID: entity.OutletID,
|
||||
OutletID: &entity.OutletID,
|
||||
ChartOfAccountTypeID: entity.ChartOfAccountTypeID,
|
||||
ParentID: entity.ParentID,
|
||||
Name: entity.Name,
|
||||
@@ -44,7 +44,7 @@ func ChartOfAccountEntityToResponse(entity *entities.ChartOfAccount) *models.Cha
|
||||
func ChartOfAccountCreateRequestToEntity(req *models.CreateChartOfAccountRequest, organizationID uuid.UUID, outletID *uuid.UUID) *entities.ChartOfAccount {
|
||||
return &entities.ChartOfAccount{
|
||||
OrganizationID: organizationID,
|
||||
OutletID: outletID,
|
||||
OutletID: *outletID,
|
||||
ChartOfAccountTypeID: req.ChartOfAccountTypeID,
|
||||
ParentID: req.ParentID,
|
||||
Name: req.Name,
|
||||
|
||||
Reference in New Issue
Block a user