package models

// ========================================================
// 📌 OrderList — Sipariş Listeleme Modeli (FINAL & UI SAFE)
// ========================================================
type OrderList struct {

	// 🆔 Sipariş Bilgileri
	OrderHeaderID string `json:"OrderHeaderID"`
	OrderNumber   string `json:"OrderNumber"`
	OrderDate     string `json:"OrderDate"`
	TerminTarihi  string `json:"TerminTarihi"`

	// 🧾 Cari Bilgileri
	CurrAccCode        string `json:"CurrAccCode"`
	CurrAccDescription string `json:"CurrAccDescription"`

	// 👤 Müşteri Tanımları
	MusteriTemsilcisi string `json:"MusteriTemsilcisi"`
	Piyasa            string `json:"Piyasa"`

	// ℹ️ Sipariş Durumu
	CreditableConfirmedDate string `json:"CreditableConfirmedDate"`
	IsCreditableConfirmed   bool   `json:"IsCreditableConfirmed"`
	HasUretimUrunu          bool   `json:"HasUretimUrunu"`

	// 💱 Para Birimi
	DocCurrencyCode string `json:"DocCurrencyCode"`

	// 💰 Tutarlar
	TotalAmount    float64 `json:"TotalAmount"`
	TotalAmountUSD float64 `json:"TotalAmountUSD"`
	PackedAmount   float64 `json:"PackedAmount"`
	PackedUSD      float64 `json:"PackedUSD"`
	PackedRatePct  float64 `json:"PackedRatePct"`

	// 📝 Açıklama
	Description     string  `json:"Description"`
	ExchangeRateUSD float64 `json:"ExchangeRateUSD"`
}
