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

import java.util.List;
import java.util.Optional;

import com.ecep.contract.ds.customer.model.SalesOrder;
import org.springframework.stereotype.Repository;

import com.ecep.contract.ds.MyRepository;
import com.ecep.contract.ds.customer.model.SalesBillVoucher;

@Repository
public interface SalesBillVoucherRepository extends MyRepository<SalesBillVoucher, Integer> {

    Optional<SalesBillVoucher> findByCode(String code);

    List<SalesBillVoucher> findAllByOrder(SalesOrder order);
}
