feat(#10): Add per-ledger acquisitions view + ledger column
This commit is contained in:
@@ -7,6 +7,7 @@ export type AcquiredTypeSource = 'bo' | 'so' | 'prod' | 'misc';
|
||||
|
||||
export type RawAcquiredType = {
|
||||
id: string;
|
||||
ledgerId: string;
|
||||
type: number;
|
||||
quantity: number;
|
||||
remaining: number;
|
||||
@@ -15,8 +16,9 @@ export type RawAcquiredType = {
|
||||
source: ActivitySourceResponse;
|
||||
}
|
||||
|
||||
const toAcquiredType = (a: AcquisitionResponse): RawAcquiredType => ({
|
||||
export const toAcquiredType = (a: AcquisitionResponse): RawAcquiredType => ({
|
||||
id: a.acquisitionId,
|
||||
ledgerId: a.ledgerId,
|
||||
type: a.marketTypeId,
|
||||
quantity: a.quantity,
|
||||
remaining: a.remaining,
|
||||
|
||||
Reference in New Issue
Block a user