Fix new services implementation 3
This commit is contained in:
@@ -115,7 +115,8 @@ export const useDashboard = () => {
|
||||
const forecastPromises = products.map(async (product) => {
|
||||
try {
|
||||
const forecastRequest = {
|
||||
product_name: product,
|
||||
inventory_product_id: product, // Use product as inventory_product_id
|
||||
product_name: product, // Keep for backward compatibility
|
||||
forecast_date: new Date().toISOString().split('T')[0], // Today's date as YYYY-MM-DD
|
||||
forecast_days: 1,
|
||||
location: 'madrid_centro', // Default location for Madrid bakery
|
||||
|
||||
Reference in New Issue
Block a user