Bugfix: price mass edit

This commit is contained in:
Jan 2025-10-19 15:06:55 +02:00
parent 3d3a4dbfab
commit de896cea30

View file

@ -709,8 +709,8 @@ export const usePremiseEditStore = defineStore('premiseEdit', {
const body = {
premise_ids: toBeUpdated.map(p => p.id),
material_cost: priceData === null ? toBeUpdated[0].material_cost : priceData.material_cost,
oversea_share: priceData === null ? toBeUpdated[0].oversea_share : priceData.oversea_share,
material_cost: priceData === null ? toBeUpdated[0].material_cost : priceData.price,
oversea_share: priceData === null ? toBeUpdated[0].oversea_share : priceData.overSeaShare,
is_fca_enabled: priceData === null ? toBeUpdated[0].is_fca_enabled : priceData.includeFcaFee
};