add: api for dashboard
This commit is contained in:
		| @@ -1,4 +1,4 @@ | ||||
| import { Column, Entity, ManyToOne } from 'typeorm'; | ||||
| import { Column, Entity, ManyToOne, OneToMany } from 'typeorm'; | ||||
| import { BaseModel } from '../../config/basemodel.entity'; | ||||
| import { statusTransaction, typeTransaction } from '../../helper/enum-list'; | ||||
| import { ProductHistoryPrice } from '../../product/entities/product-history-price.entity'; | ||||
| @@ -65,9 +65,13 @@ export class Transactions extends BaseModel { | ||||
|   }) | ||||
|   callback_json: string; | ||||
|  | ||||
|   @OneToMany( | ||||
|     () => TransactionJournal, | ||||
|     (transaction_journal) => transaction_journal.transaction_head, | ||||
|   ) | ||||
|   transactionJournal: TransactionJournal[]; | ||||
|  | ||||
|   mark_up_price: number; | ||||
|  | ||||
|   userData: UserDetail; | ||||
|  | ||||
|   transactionJournal: TransactionJournal; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user