Fix: Kot move fixed. Kot id was missing on move. Also, voucher_type KOT as truthy not and would give bill not found error.
This commit is contained in:
@ -165,7 +165,7 @@ def update_settlements(vouchers: List[uuid.UUID], db: Session):
|
||||
|
||||
def check_if_voucher_is_unprinted(voucher_id: uuid.UUID, db: Session) -> None:
|
||||
voucher_type: VoucherType = db.query(Voucher.voucher_type).filter(Voucher.id == voucher_id).scalar()
|
||||
if not voucher_type:
|
||||
if voucher_type is None:
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_404_NOT_FOUND,
|
||||
detail="Original bill not found",
|
||||
|
||||
Reference in New Issue
Block a user