mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
chore: create DailyMarketingReportResponse
This commit is contained in:
Vendored
+11
-9
@@ -1,4 +1,4 @@
|
||||
import { BaseMetadata } from '@/types/api/api-general';
|
||||
import { BaseApiResponse, BaseMetadata } from '@/types/api/api-general';
|
||||
import { BaseCustomer, Customer } from '@/types/api/master-data/customer';
|
||||
import {
|
||||
BaseWarehouseArea,
|
||||
@@ -9,16 +9,17 @@ import {
|
||||
import { Location } from '@/types/api/master-data/location';
|
||||
import { Area } from '@/types/api/master-data/area';
|
||||
import { BaseProduct } from '@/types/api/master-data/product';
|
||||
import { BaseUser } from '@/types/api/user';
|
||||
|
||||
export type BaseDailyMarketingRow = {
|
||||
no: number;
|
||||
so_date: string; // e.g. "01-Dec-2025"
|
||||
do_date: string; // e.g. "08-Dec-2025"
|
||||
id: number;
|
||||
so_date: string;
|
||||
realization_date: string;
|
||||
aging_days: number;
|
||||
|
||||
warehouse: BaseWarehouseArea | BaseWarehouseLocation | BaseWarehouseKandang;
|
||||
customer: BaseCustomer;
|
||||
sales: string;
|
||||
sales: BaseUser;
|
||||
product: BaseProduct;
|
||||
|
||||
do_number: string;
|
||||
@@ -43,12 +44,13 @@ export interface SalesSummary {
|
||||
total_weight_kg: number;
|
||||
total_sales_amount: number;
|
||||
total_hpp_amount: number;
|
||||
total_hpp_price_per_kg: number;
|
||||
}
|
||||
|
||||
export type DailyMarketingReport = {
|
||||
rows: DailyMarketingRow[];
|
||||
summary: SalesSummary;
|
||||
};
|
||||
export type DailyMarketingReport = DailyMarketingRow[];
|
||||
|
||||
export type DailyMarketingReportResponse =
|
||||
BaseApiResponse<DailyMarketingReport> & { total: SalesSummary };
|
||||
|
||||
export type MarketingReportFilters = {
|
||||
area_id?: number;
|
||||
|
||||
Reference in New Issue
Block a user