add product ingredients

This commit is contained in:
Aditya Siregar
2025-09-12 15:37:19 +07:00
parent efe09c21e4
commit 3a04990ec8
35 changed files with 2572 additions and 357 deletions
+3 -4
View File
@@ -8,7 +8,6 @@ import (
"path/filepath"
"apskel-pos-be/internal/entities"
"apskel-pos-be/internal/processor"
"github.com/google/uuid"
)
@@ -35,8 +34,8 @@ type AccountTemplate struct {
}
func CreateDefaultChartOfAccounts(ctx context.Context,
chartOfAccountProcessor processor.ChartOfAccountProcessor,
accountProcessor processor.AccountProcessor,
chartOfAccountProcessor interface{}, // Use interface{} to avoid import cycle
accountProcessor interface{}, // Use interface{} to avoid import cycle
organizationID uuid.UUID,
outletID *uuid.UUID) error {
@@ -100,7 +99,7 @@ func loadDefaultChartOfAccountsTemplate() (*DefaultChartOfAccount, error) {
return &template, nil
}
func getChartOfAccountTypeMap(ctx context.Context, chartOfAccountProcessor processor.ChartOfAccountProcessor) (map[string]uuid.UUID, error) {
func getChartOfAccountTypeMap(ctx context.Context, chartOfAccountProcessor interface{}) (map[string]uuid.UUID, error) {
// This is a placeholder - in a real implementation, you would call the processor
// to get all chart of account types and create a map of code -> ID
return map[string]uuid.UUID{