diff --git a/Controller/BackendController.php b/Controller/BackendController.php index f0d182b..6c9cc8f 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -111,7 +111,7 @@ final class BackendController extends Controller $ytd = PurchaseBillMapper::getPurchaseBySupplierId($supplier->getId(), new SmartDateTime('Y-01-01'), new SmartDateTime('now')); $mtd = PurchaseBillMapper::getPurchaseBySupplierId($supplier->getId(), new SmartDateTime('Y-m-01'), new SmartDateTime('now')); $lastOrder = PurchaseBillMapper::getLastOrderDateBySupplierId($supplier->getId()); - $newestInvoices = PurchaseBillMapper::withConditional('language', $response->getLanguage(), [BillTypeL11n::class])::getNewestSupplierInvoices($supplier->getId(), 5); + $newestInvoices = PurchaseBillMapper::with('language', $response->getLanguage(), [BillTypeL11n::class])::getNewestSupplierInvoices($supplier->getId(), 5); $monthlyPurchaseCosts = PurchaseBillMapper::getSupplierMonthlyPurchaseCosts($supplier->getId(), (new SmartDateTime('now'))->createModify(-1), new SmartDateTime('now')); } else { $ytd = new Money(); diff --git a/Theme/Backend/supplier-profile.tpl.php b/Theme/Backend/supplier-profile.tpl.php index 3f41a63..a71d3bc 100755 --- a/Theme/Backend/supplier-profile.tpl.php +++ b/Theme/Backend/supplier-profile.tpl.php @@ -228,6 +228,7 @@ echo $this->getData('nav')->render(); getHtml('Number'); ?> + getHtml('Type'); ?> getHtml('Name'); ?> getHtml('Net'); ?> getHtml('Date'); ?> @@ -237,6 +238,7 @@ echo $this->getData('nav')->render(); ?> getNumber(); ?> + type->getL11n(); ?> billTo; ?> net->getCurrency(); ?> createdAt->format('Y-m-d'); ?>