Skip to content

Commit

Permalink
[Enh]: Item Price - Settable Name
Browse files Browse the repository at this point in the history
Pass through to item
  • Loading branch information
seandenigris committed Sep 9, 2024
1 parent 161e3a2 commit da09281
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/VirtualStash-Core/VsItemPrice.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@ VsItemPrice >> name [
^ self item ifNotNil: #name
]

{ #category : #accessing }
VsItemPrice >> name: aString [

self item ifNil: [ self error: 'no item to rename!' ].

self item name: aString
]

{ #category : #accessing }
VsItemPrice >> total [
self unitPrice ifNil: [ ^ nil ].
Expand Down

0 comments on commit da09281

Please sign in to comment.