Package com.storedobject.core
Interface HasReference
- All Known Implementing Classes:
Consignment
,CustomerInvoice
,InventoryGRN
,InventoryPO
,InventoryRO
,InventorySale
,InventoryTransfer
,JournalVoucher
,MaterialIssued
,MaterialRequest
,MaterialReturned
,MaterialTransferred
public interface HasReference
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final record
HasReference.Amend<T extends StoredObject>
-
Method Summary
Modifier and TypeMethodDescriptiondefault <O extends StoredObject>
HasReference.Amend<O> getAmend()
getDate()
int
getNo()
default Id
Get the prefix of the tag to be used for generating the reference.default String
Get the suffix of the tag to be used for generating the reference.default String
serialTag
(int index)
-
Method Details
-
getSystemEntity
SystemEntity getSystemEntity() -
getSystemEntityId
-
getNo
int getNo() -
getDate
Date getDate() -
getReference
String getReference() -
getTagPrefix
String getTagPrefix()Get the prefix of the tag to be used for generating the reference.Warning: This should be a fixed string value.
- Returns:
- A fixed tag value to be used as the prefix.
-
getTagSuffix
Get the suffix of the tag to be used for generating the reference.Note: This could be a dynamically generated string value based on the object instance.
- Returns:
- A tag value (possibly a dynamic value) to be used as the suffix.
-
getAmend
-
serialTag
-