mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 23:00:34 +00:00
refactor: inventory adjustments to GL
This commit is contained in:
@@ -18,10 +18,8 @@ export class GetInventoryAdjustmentService {
|
||||
const inventoryAdjustment = await InventoryAdjustment.query()
|
||||
.findById(inventoryAdjustmentId)
|
||||
.withGraphFetched('entries.item')
|
||||
.withGraphFetched('adjustmentAccount');
|
||||
|
||||
// Throw not found if the given adjustment transaction not exists.
|
||||
this.throwIfAdjustmentNotFound(inventoryAdjustment);
|
||||
.withGraphFetched('adjustmentAccount')
|
||||
.throwIfNotFound();
|
||||
|
||||
return this.transformer.transform(
|
||||
inventoryAdjustment,
|
||||
|
||||
Reference in New Issue
Block a user