Add php files
This commit is contained in:
36
modules/EcmReportsBackUp20151106/class/class.PurchaseInvoiceH.php
Executable file
36
modules/EcmReportsBackUp20151106/class/class.PurchaseInvoiceH.php
Executable 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<73> 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