- 견적유형 4종: QuotationType 에 신규협상(3)·신규견적(4) 추가(1·2 재 고정)
- 목표가 산정: items(매입가·판매가·인터넷최저가) + quotations.md_price +
quotation_settings.internet_average_fee 로 _calc_target_price(KTC 이식, 신규/재 분리),
세션 target_price·target_anchoring_price 저장
- 협력사유형: quotations.supplier_type(SupplierType) + 직전유형 조회 API(/supplier/{id}/last-type)
- 협상카드 용도: nego_cards/wild_cards.usage_type(CardUsageType: 공통/신규견적전용/재견적전용)
- 스키마(01-schema.sql)·ORM·protocol·service·crud·프론트(생성타입/폼) 일괄, /backend enums·models 미러
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
54 lines
2.1 KiB
TypeScript
54 lines
2.1 KiB
TypeScript
/**
|
|
* Generated by orval v7.21.0 🍺
|
|
* Do not edit manually.
|
|
* Negodata Api Server
|
|
* OpenAPI spec version: 0.1.0
|
|
*/
|
|
import type { ItemDataCode } from './itemDataCode';
|
|
import type { ItemDataCategory } from './itemDataCategory';
|
|
import type { ItemDataImageUrl } from './itemDataImageUrl';
|
|
import type { ItemDataModelName } from './itemDataModelName';
|
|
import type { ItemDataSpec } from './itemDataSpec';
|
|
import type { ItemDataManufacturer } from './itemDataManufacturer';
|
|
import type { ItemDataMadeIn } from './itemDataMadeIn';
|
|
import type { ItemDataPrice } from './itemDataPrice';
|
|
import type { ItemDataInternetLowestPrice } from './itemDataInternetLowestPrice';
|
|
import type { ItemDataPurchasePrice } from './itemDataPurchasePrice';
|
|
import type { ItemDataSellingPrice } from './itemDataSellingPrice';
|
|
import type { ItemDataMoq } from './itemDataMoq';
|
|
import type { ItemDataLeadTime } from './itemDataLeadTime';
|
|
import type { ItemDataQuantityUnit } from './itemDataQuantityUnit';
|
|
import type { ItemDataDeliveryType } from './itemDataDeliveryType';
|
|
import type { ItemDataVatYn } from './itemDataVatYn';
|
|
import type { ItemDataDeliveryFeeYn } from './itemDataDeliveryFeeYn';
|
|
import type { ItemDataCreatedAt } from './itemDataCreatedAt';
|
|
import type { ItemDataUpdatedAt } from './itemDataUpdatedAt';
|
|
|
|
export interface ItemData {
|
|
item_id: string;
|
|
company_id: string;
|
|
user_id: string;
|
|
name: string;
|
|
code?: ItemDataCode;
|
|
category?: ItemDataCategory;
|
|
category_type?: number;
|
|
image_url?: ItemDataImageUrl;
|
|
model_name?: ItemDataModelName;
|
|
spec?: ItemDataSpec;
|
|
manufacturer?: ItemDataManufacturer;
|
|
made_in?: ItemDataMadeIn;
|
|
price?: ItemDataPrice;
|
|
internet_lowest_price_yn?: boolean;
|
|
internet_lowest_price?: ItemDataInternetLowestPrice;
|
|
purchase_price?: ItemDataPurchasePrice;
|
|
selling_price?: ItemDataSellingPrice;
|
|
moq?: ItemDataMoq;
|
|
lead_time?: ItemDataLeadTime;
|
|
quantity_unit?: ItemDataQuantityUnit;
|
|
delivery_type?: ItemDataDeliveryType;
|
|
vat_yn?: ItemDataVatYn;
|
|
delivery_fee_yn?: ItemDataDeliveryFeeYn;
|
|
created_at?: ItemDataCreatedAt;
|
|
updated_at?: ItemDataUpdatedAt;
|
|
}
|