Package com.storedobject.core
Interface HasReference
- All Known Implementing Classes:
Consignment,CustomerInvoice,InventoryGRN,InventoryLoanOut,InventoryPO,InventoryReturn,InventoryRO,InventorySale,InventoryTransfer,JournalVoucher,MaterialIssued,MaterialRequest,MaterialReturned,MaterialTransferred
public interface HasReference
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordHasReference.Amend<T extends StoredObject> -
Method Summary
Modifier and TypeMethodDescriptiondefault <O extends StoredObject>
HasReference.Amend<O> getAmend()getDate()intgetNo()default IdGet the prefix of the tag to be used for generating the reference.default StringGet the suffix of the tag to be used for generating the reference.default StringserialTag(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
-