Skip to main content

Đơn hàng công trình

Mục tiêu:

CRM sẽ tạo ra 1 khái niệm "Đơn hàng công trình" mới, phục vụ việc duyệt các đơn hàng đồng bộ từ hệ thống IWM.

Hệ thống CRM chỉ có quyền xem + thay đổi đại ý bán và thầu thợ + duyệt đơn.

Chú ý: Việc chọn tt dựa vào khu vực làm việc

Tên class: ConstructionSaleOrder

Tên trườngKiểu biếnÝ nghĩa
IdlongId đơn hàng
CodestringMã đơn hàng
AppUserCreatorIdlong?Id admin tạo đơn hàng
ConstructionIdlongId công trình mà đơn hàng được tạo 
ConstructionCustomerIdlongId kiểu Kh (enum)
CustomerIdlong?Id khách hàng
CustomerNamestringtên kh
CustomerPhonestring sdt kh
CustomerEmailstringemail kh
CustomerProvinceIdlong?
CustomerDistrictIdlong?
CustomerWardIdlong?
CustomerAddressstring
BrokerWorkerIdlong?Id KH thầu thợ môi giới
WorkerIdlong?Id KH thầu thợ thực hiện đơn
CustomerSellIdlong? Id KH đại lý bán hàng
PaymentTypeIdlong?Phương thức thanh toán (enum)
InformationBonusdecimal?Phí cung cấp thông tin
InstallationBonusdecimal?Phí cài đặt
MaintainBonusdecimal?Phí bảo hành
UseInformationBonusbool
UseInstallationBonusbool
UseMaintainBonusbool
SubTotaldecimalGiá niêm yết
DiscountAmountdecimal?Chiết khấu
TotaldecimalTổng đơn
AssignmentStatusIdlongTrạng thái điều phối (enum)
ApprovalStateIdlongTrạng thái duyệt (enum)
CreatedAtdatetimengày tạo
UpdatedAtdatetimengày cập nhật cuối
DeletedAtdatetime?ngày xoá

 

Tên class: ConstructionSaleOrderContent

Tên trườngKiểu biếnÝ nghĩa
Idlong
ConstructionSaleOrderIdlong
ItemIdlongId sản phẩm
QuantitydecimalSố lượng theo dvt đã chọn
UnitOfMeasureIdlongđvt đã chọn
RequestedQuantitydecimalsố lượng theo đvt cơ bản của sp
PrimaryUnitOfMeasureIdlongdvt cơ bản của sp
SalePricedecimal?Giá niêm yết
RetailPriceNotVATdecimalGiá bán chưa thuế
RetailPricedecimalGiá bán đã thuế
AmountdecimalTổng giá trị dòng
Factordecimal?hệ số quy đổi đơn vị tính
DiscountAmountdecimalChiết khấu dòng