package com.ecep.contract.ds.contract.repository;

import java.util.Optional;

import org.springframework.stereotype.Repository;

import com.ecep.contract.ds.MyRepository;
import com.ecep.contract.ds.vendor.model.PurchaseBillVoucher;

@Repository
public interface PurchaseBillVoucherRepository extends MyRepository<PurchaseBillVoucher, Integer> {

    Optional<PurchaseBillVoucher> findByCode(String code);

    Optional<PurchaseBillVoucher> findByRefId(Integer refId);

}
