diff --git a/src/handlers/orderPlaceholderHandler.ts b/src/utils/orderUtils.ts similarity index 83% rename from src/handlers/orderPlaceholderHandler.ts rename to src/utils/orderUtils.ts index 9df8993..a60b229 100644 --- a/src/handlers/orderPlaceholderHandler.ts +++ b/src/utils/orderUtils.ts @@ -1,4 +1,7 @@ -// For use inside OrderS and OrderN +export const getOrderFullId = (orderNumber: string, sceneryHash: string) => { + return `RD-${orderNumber}-${sceneryHash}-${new Date().getUTCFullYear().toString().slice(2)}`; +}; + export const handleOrderPlaceholders = (isRowEnabled: boolean, rowRef: HTMLTableElement) => { rowRef.querySelectorAll('input[type="text"]').forEach((node) => { if (!isRowEnabled) { @@ -22,4 +25,4 @@ export const handleOrderPlaceholders = (isRowEnabled: boolean, rowRef: HTMLTable node.setAttribute('holder', node.getAttribute('placeholder')!); node.removeAttribute('placeholder'); }); -}; +}; \ No newline at end of file