mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-24 07:15:43 +00:00
add api for update is paid to expense
This commit is contained in:
@@ -29,6 +29,7 @@ type ExpenseBaseDTO struct {
|
||||
RealizationDate *time.Time `json:"realization_date,omitempty"`
|
||||
TransactionDate time.Time `json:"transaction_date"`
|
||||
Location *locationDTO.LocationRelationDTO `json:"location,omitempty"`
|
||||
IsPaid bool `json:"is_paid"`
|
||||
}
|
||||
|
||||
type ExpenseListDTO struct {
|
||||
@@ -127,6 +128,7 @@ func ToExpenseBaseDTO(e *entity.Expense) ExpenseBaseDTO {
|
||||
RealizationDate: realizationDate,
|
||||
TransactionDate: e.TransactionDate,
|
||||
Location: location,
|
||||
IsPaid: e.IsPaid,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user