Enhance product price retrieval by including currentRegionId in FalukantController and FalukantService
- Updated the FalukantController to accept currentRegionId as a parameter for fetching product prices in cities. - Modified the FalukantService to incorporate currentRegionId in the price calculation logic, allowing exclusion of the current region from results. - Adjusted frontend components to pass currentRegionId, improving the accuracy of price comparisons and user experience.
This commit is contained in:
@@ -49,6 +49,7 @@
|
||||
:products="products"
|
||||
:calculateProductRevenue="calculateProductRevenue"
|
||||
:calculateProductProfit="calculateProductProfit"
|
||||
:currentRegionId="selectedBranch?.regionId"
|
||||
ref="revenueSection"
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user