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