package com.pressing.domain.accounting;

import java.util.List;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;

public interface AccountingEntryRepository extends JpaRepository<AccountingEntry, Long> {
    List<AccountingEntry> findBySiteIdOrderByEntryDateDesc(Long siteId);
    Optional<AccountingEntry> findByIdAndSiteId(Long id, Long siteId);
}
