report section

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
khizar
Posts: 99
Joined: 19 Jan 2021, 09:51

report section

Post by khizar » 19 Apr 2021, 07:59

Hey aimeos,
I have integrated aimeos with laravel.
versions:
"aimeos/aimeos-laravel": "~2020.10",
"laravel/framework": "^8.12",

i want to generate reports e.g sale report,stock report etc.Are there any builtin reports or i have to implement myself.if i have to implement myself then please guide me how can i do that

khizar
Posts: 99
Joined: 19 Jan 2021, 09:51

Re: report section

Post by khizar » 19 Apr 2021, 09:11

waiting for reply

khizar
Posts: 99
Joined: 19 Jan 2021, 09:51

Re: report section

Post by khizar » 19 Apr 2021, 11:05

Hey aimeos,
i want to show a form with with two date inputs(from date and to date) and a generate button and when a button is clicked a report is generated for that purpose first of all i added a new entry in side bar by adding code in the shop.php file

Code: Select all

<?php
return [
..................
'admin' => [
		'jqadm' => [
			'navbar' => [
				0 => 'dashboard',
				10 => 'order',
				20 => 'customer',
				30 => 'product',
				40 => 'catalog',
				50 => 'attribute',
				60 => 'coupon',
				70 => 'review',
				80 => 'subscription',
				90 => 'supplier',
				100 => 'service',
				110 => 'plugin',
				120 => 'group',
				130 => [
					'' => 'locale',
					10 => 'locale',
					20 => 'locale/site',
					30 => 'locale/language',
					40 => 'locale/currency',
				],
				140 => [
					'' => 'type',
					10 => 'type/attribute',
					20 => 'type/attribute/lists',
					30 => 'type/attribute/property',
					40 => 'type/catalog/lists',
					50 => 'type/customer/lists',
					60 => 'type/customer/property',
					70 => 'type/media',
					80 => 'type/media/lists',
					90 => 'type/media/property',
					100 => 'type/plugin',
					110 => 'type/price',
					120 => 'type/price/lists',
					130 => 'type/price/property',
					140 => 'type/product',
					150 => 'type/product/lists',
					160 => 'type/product/property',
					170 => 'type/service',
					180 => 'type/service/lists',
					190 => 'type/stock',
					200 => 'type/tag',
					210 => 'type/text',
					220 => 'type/text/lists',
				],
				150 => 'log',
				160 => [
					'' => 'report',
					10 => 'report/salereport',
					
				],
			],
		],
	],
	
	'i18n' => [
		
		'en' => [
			
			'admin' => [
				'report' => ['Reports'],
				'report/salereport' => ['Sale Report'],
			],
		],
		
	],
]
so by adding that code i am able to view a new entry in side bar
Image
now i have some questions
1) how can i add an icon for Reports in side bar
2) do i have to make standard.php and factory.php to achieve my task ,
3) do i have to make a route.
4) if above two conditions are correct then how can i connect my route and standard class

User avatar
aimeos
Administrator
Posts: 7885
Joined: 01 Jan 1970, 00:00

Re: report section

Post by aimeos » 20 Apr 2021, 10:43

Open source is about giving back. If you translate Aimeos to Arabic completely, we are motivated to answer your questions faster.

The order list panel already contains an export for all orders matching the filter and it's started by clicking on the "+" in the top right of the table and then click on "Export". The date filters also have the option to filter by a date range if you select a start and end date.

In case you want to create your own report in an own panel, you should have a look into the order panel implementation for reference:
- https://github.com/aimeos/ai-admin-jqad ... #L106-L137
- https://github.com/aimeos/ai-admin-jqad ... #L298-L303
- https://github.com/aimeos/ai-controller ... andard.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

khizar
Posts: 99
Joined: 19 Jan 2021, 09:51

Re: report section

Post by khizar » 21 Apr 2021, 11:01

aimeos wrote: 20 Apr 2021, 10:43 Open source is about giving back. If you translate Aimeos to Arabic completely, we are motivated to answer your questions faster.

The order list panel already contains an export for all orders matching the filter and it's started by clicking on the "+" in the top right of the table and then click on "Export". The date filters also have the option to filter by a date range if you select a start and end date.

In case you want to create your own report in an own panel, you should have a look into the order panel implementation for reference:
- https://github.com/aimeos/ai-admin-jqad ... #L106-L137
- https://github.com/aimeos/ai-admin-jqad ... #L298-L303
- https://github.com/aimeos/ai-controller ... andard.php
you didn't replied what i asked.please tell me how can i add the icon for my new panel Reports.you can see in above in my post that i was able to add new panel Reports but i don't know how to add icon for it

User avatar
aimeos
Administrator
Posts: 7885
Joined: 01 Jan 1970, 00:00

Re: report section

Post by aimeos » 24 Apr 2021, 09:18

The icons are assigned using CSS like here:
https://github.com/aimeos/ai-admin-jqad ... #L472-L474
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply