feat(menu): per-item print station (cold bar / kitchen / barista)
CI/CD / CI · API (dotnet build + test) (push) Successful in 41s
CI/CD / CI · Admin API (dotnet build) (push) Successful in 29s
CI/CD / CI · Dashboard (tsc) (push) Successful in 1m6s
CI/CD / CI · Admin Web (tsc) (push) Successful in 38s
CI/CD / CI · Website (tsc) (push) Successful in 45s
CI/CD / CI · Koja (tsc) (push) Successful in 49s
CI/CD / Deploy · all services (push) Successful in 3m28s
CI/CD / CI · API (dotnet build + test) (push) Successful in 41s
CI/CD / CI · Admin API (dotnet build) (push) Successful in 29s
CI/CD / CI · Dashboard (tsc) (push) Successful in 1m6s
CI/CD / CI · Admin Web (tsc) (push) Successful in 38s
CI/CD / CI · Website (tsc) (push) Successful in 45s
CI/CD / CI · Koja (tsc) (push) Successful in 49s
CI/CD / Deploy · all services (push) Successful in 3m28s
Each menu item can now pick its own print station, overriding the category's — so a category can fan out to different printers (e.g. a drink → cold bar, a food → kitchen). Adds MenuItem.KitchenStationId (+ migration, FK SetNull), wires create/update/DTO, and updates kitchen-ticket routing to group by the item's station ?? the category's station ?? the branch kitchen printer. Deleting a station now also clears item assignments. Menu item editor gains a "Print station" dropdown (default = "same as category"). fa/en/ar added. Backend built clean via the Nexus mirror; migration applies on deploy (MigrateAsync). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -12,4 +12,5 @@ public class KitchenStation : TenantEntity
|
||||
public Cafe Cafe { get; set; } = null!;
|
||||
public Branch? Branch { get; set; }
|
||||
public ICollection<MenuCategory> Categories { get; set; } = [];
|
||||
public ICollection<MenuItem> MenuItems { get; set; } = [];
|
||||
}
|
||||
|
||||
@@ -15,9 +15,13 @@ public class MenuItem : TenantEntity
|
||||
/// <summary>GLB/GLTF 3D model for QR menu interactive view (poster = ImageUrl).</summary>
|
||||
public string? Model3dUrl { get; set; }
|
||||
public bool IsAvailable { get; set; } = true;
|
||||
/// <summary>Optional per-item print station (cold bar, kitchen, barista …).
|
||||
/// Overrides the item's category station when set.</summary>
|
||||
public string? KitchenStationId { get; set; }
|
||||
|
||||
public Cafe Cafe { get; set; } = null!;
|
||||
public MenuCategory Category { get; set; } = null!;
|
||||
public KitchenStation? KitchenStation { get; set; }
|
||||
public ICollection<OrderItem> OrderItems { get; set; } = [];
|
||||
public ICollection<BranchMenuItemOverride> BranchOverrides { get; set; } = [];
|
||||
public ICollection<MenuItemIngredient> RecipeIngredients { get; set; } = [];
|
||||
|
||||
Reference in New Issue
Block a user