mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-23 23:05:44 +00:00
fix get search keuangan; add bank name to supplier and customer
This commit is contained in:
@@ -14,6 +14,7 @@ type CustomerRelationDTO struct {
|
||||
Name string `json:"name"`
|
||||
Type string `json:"type"`
|
||||
AccountNumber string `json:"account_number"`
|
||||
BankName string `json:"bank_name"`
|
||||
Address string `json:"address,omitempty"`
|
||||
Balance float64 `json:"balance"`
|
||||
Pic *userDTO.UserRelationDTO `json:"pic,omitempty"`
|
||||
@@ -28,6 +29,7 @@ type CustomerListDTO struct {
|
||||
Phone string `json:"phone"`
|
||||
Email string `json:"email"`
|
||||
AccountNumber string `json:"account_number"`
|
||||
BankName string `json:"bank_name"`
|
||||
Balance float64 `json:"balance"`
|
||||
Pic userDTO.UserRelationDTO `json:"pic"`
|
||||
CreatedUser userDTO.UserRelationDTO `json:"created_user"`
|
||||
@@ -53,6 +55,7 @@ func ToCustomerRelationDTO(e entity.Customer) CustomerRelationDTO {
|
||||
Name: e.Name,
|
||||
Type: e.Type,
|
||||
AccountNumber: e.AccountNumber,
|
||||
BankName: e.BankName,
|
||||
Address: e.Address,
|
||||
Balance: e.Balance,
|
||||
Pic: pic,
|
||||
@@ -81,6 +84,7 @@ func ToCustomerListDTO(e entity.Customer) CustomerListDTO {
|
||||
Phone: e.Phone,
|
||||
Email: e.Email,
|
||||
AccountNumber: e.AccountNumber,
|
||||
BankName: e.BankName,
|
||||
Pic: pic,
|
||||
CreatedAt: e.CreatedAt,
|
||||
UpdatedAt: e.UpdatedAt,
|
||||
|
||||
Reference in New Issue
Block a user