"Disable vehicle selection view in PosDepartmentStepMobile2.vue when primary product is set."

This commit is contained in:
Jeppe Bundgaard
2025-11-20 16:12:49 +01:00
parent b9e752444b
commit 36325fb7b5
@@ -138,6 +138,8 @@ const applyPendingBookingFromSelection = async () => {
try {
await SessionUser.objects.orders.set.po(order_id.value, booking.po);
console.warn('Applied PO from booking:', booking.po);
// If the primary product is set, do not show the vehicle selection view
vehicleSelection.value = false;
} catch (e) {
console.error('Failed to set PO on order from booking', e);
}