mirror of
https://github.com/hazemKrimi/crimson-vault.git
synced 2026-05-01 18:20:27 +00:00
chore: refactoring and fixes for the invoices api
This commit is contained in:
@@ -16,6 +16,7 @@ func (db *DB) CreateItem(userId, invoiceId uuid.UUID, body types.CreateItemReque
|
||||
Name: body.Name,
|
||||
Type: body.Type,
|
||||
Quantity: body.Quantity,
|
||||
Price: body.Price,
|
||||
Tax: body.Tax,
|
||||
}
|
||||
|
||||
@@ -135,6 +136,7 @@ func (db *DB) UpdateItem(userId, id uuid.UUID, body types.UpdateItemRequestBody,
|
||||
Name: body.Name,
|
||||
Type: body.Type,
|
||||
Quantity: body.Quantity,
|
||||
Price: body.Price,
|
||||
Tax: body.Tax,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user