Working on mock data

This commit is contained in:
David Bomba 2023-09-27 21:11:47 +10:00
parent 98dd01e1d5
commit 5e987c5ee7
3 changed files with 48 additions and 48 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -304,7 +304,7 @@ class TemplateService
return $invoices['data']; return $invoices['data'];
} }
private function processQuotes($quotes): array public function processQuotes($quotes): array
{ {
$it = new QuoteTransformer(); $it = new QuoteTransformer();
$it->setDefaultIncludes(['client']); $it->setDefaultIncludes(['client']);
@ -331,7 +331,7 @@ class TemplateService
* @param mixed $credits * @param mixed $credits
* @return array * @return array
*/ */
private function processCredits($credits): array public function processCredits($credits): array
{ {
$it = new CreditTransformer(); $it = new CreditTransformer();
$it->setDefaultIncludes(['client']); $it->setDefaultIncludes(['client']);
@ -357,7 +357,7 @@ class TemplateService
* @param mixed $payments * @param mixed $payments
* @return array * @return array
*/ */
private function processPayments($payments): array public function processPayments($payments): array
{ {
$it = new PaymentTransformer(); $it = new PaymentTransformer();
$it->setDefaultIncludes(['client','invoices','paymentables']); $it->setDefaultIncludes(['client','invoices','paymentables']);
@ -377,7 +377,7 @@ class TemplateService
} }
private function processTasks($tasks): array public function processTasks($tasks): array
{ {
$it = new TaskTransformer(); $it = new TaskTransformer();
$it->setDefaultIncludes(['client','project','invoice']); $it->setDefaultIncludes(['client','project','invoice']);
@ -399,7 +399,7 @@ class TemplateService
} }
private function processProjects($projects): array public function processProjects($projects): array
{ {
$it = new ProjectTransformer(); $it = new ProjectTransformer();
@ -412,7 +412,7 @@ class TemplateService
} }
private function processPurchaseOrders($purchase_orders): array public function processPurchaseOrders($purchase_orders): array
{ {
$it = new PurchaseOrderTransformer(); $it = new PurchaseOrderTransformer();