add product ingredients
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user