마스터 고객/제품/창고 테스트 및 UI 구현
This commit is contained in:
@@ -59,3 +59,28 @@ class Vendor {
|
||||
}
|
||||
}
|
||||
|
||||
/// 벤더 신규/수정 입력 모델
|
||||
///
|
||||
/// - code는 생성 시 필수, 수정 시 읽기 전용이지만 API 전송을 위해 포함
|
||||
class VendorInput {
|
||||
VendorInput({
|
||||
required this.vendorCode,
|
||||
required this.vendorName,
|
||||
this.isActive = true,
|
||||
this.note,
|
||||
});
|
||||
|
||||
final String vendorCode;
|
||||
final String vendorName;
|
||||
final bool isActive;
|
||||
final String? note;
|
||||
|
||||
Map<String, dynamic> toPayload() {
|
||||
return {
|
||||
'vendor_code': vendorCode,
|
||||
'vendor_name': vendorName,
|
||||
'is_active': isActive,
|
||||
'note': note,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user