package dto import ( "time" customerDTO "gitlab.com/mbugroup/lti-api.git/internal/modules/master/customers/dto" ) type CustomerPaymentReportRow struct { TransactionType string `json:"transaction_type"` TransactionID int64 `json:"transaction_id"` TransDate time.Time `json:"trans_date"` DeliveryDate *time.Time `json:"delivery_date"` Reference string `json:"reference"` VehicleNumbers string `json:"vehicle_numbers"` Qty float64 `json:"qty"` Weight float64 `json:"weight"` AverageWeight float64 `json:"average_weight"` Price float64 `json:"price"` CreditNote float64 `json:"credit_note"` FinalPrice float64 `json:"final_price"` PPN float64 `json:"ppn"` TotalPrice float64 `json:"total_price"` PaymentAmount float64 `json:"payment_amount"` AccountsReceivable float64 `json:"accounts_receivable"` AgingDay int `json:"aging_day"` Status string `json:"status"` PickupInfo string `json:"pickup_info"` SalesPerson string `json:"sales_person"` } type CustomerPaymentReportSummary struct { TotalQty float64 `json:"total_qty"` TotalWeight float64 `json:"total_weight"` TotalInitialAmount float64 `json:"total_initial_amount"` TotalCreditNote float64 `json:"total_credit_note"` TotalFinalAmount float64 `json:"total_final_amount"` TotalPPN float64 `json:"total_ppn"` TotalGrandAmount float64 `json:"total_grand_amount"` TotalPayment float64 `json:"total_payment"` TotalAccountsReceivable float64 `json:"total_accounts_receivable"` } type CustomerPaymentReportItem struct { Customer customerDTO.CustomerRelationDTO `json:"customer"` InitialBalance float64 `json:"initial_balance"` Rows []CustomerPaymentReportRow `json:"rows"` Summary CustomerPaymentReportSummary `json:"summary"` } type CustomerPaymentReportResponse struct { Data []CustomerPaymentReportItem `json:"data"` }