Add php files
This commit is contained in:
36
modules/EcmReports/class/class.PurchaseInvoiceH.php
Normal file
36
modules/EcmReports/class/class.PurchaseInvoiceH.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?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 );
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user