Files
crm.twinpol.com/modules/EcmReports/class/class.PurchaseInvoiceH.php
2025-05-12 15:44:39 +00:00

36 lines
1.2 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
include ("class.Account.php");
include ("class.PurchaseInvoice.php");
/**
* Klasa statyczna odpowiedzialna za wyciД…ganie z bazy
* informacji zwiД…zanych z fakturami
* @author Kate
*/
class PurchaseInvoice {
/**
* Metoda pobiera fakturД™ o odpowiednim ID w formie tabeli
* zwraca wszystkie moЕјliwe pola z bazy danych
* @param $id - Identyfikator faktury
*/
public static function getInvoiceById( $id ) {
return PurchaseInvoice::getById( $id );
}
/**
* Zwraca listпїЅ faktur, ktГіre byЕy dodane w podanym zakresie dat
* @param $date_from - data startowa
* @param $date_to - data koЕ„cowa
* @param $type - typ faktury(normal/correct)
*/
public static function getInvoicesBetweenDates( $date_from, $date_to, $category, $contractorId ) {
return PurchaseInvoice::getBetweenDate( $date_from, $date_to, $category, $contractorId );
}
// public static function getReceiptsBetweenDates( $date_from, $date_to, $type = "%", $contractorId ) {
// return Receipt::getBetweenDate( $date_from, $date_to, $type, $contractorId );
// }
}
?>