Merged in fix/SW-2254-disable-download-invoice-if-flex (pull request #1775)
fix(SW-2254): disable download invoice if the booking is flex * fix(SW-2254): disable download invoice if the booking is flex Approved-by: Simon.Emanuelsson
This commit is contained in:
@@ -36,7 +36,7 @@ export function checkGuaranteeable(
|
||||
|
||||
export function checkCanDownloadInvoice(
|
||||
isCancelled: boolean,
|
||||
guaranteeInfo: boolean
|
||||
isFlexBooking: boolean
|
||||
) {
|
||||
return !isCancelled && guaranteeInfo
|
||||
return !isCancelled && !isFlexBooking
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user