PageSourceSearch

https://vizops360.ai/assets/financeMappers-CUv1G2pV.js

js vizops360.ai collected 2026-10-05 13:52:35 UTC 12,164 bytes, 1 lines download raw bytes

1import{d0 as c}from"./index-CpeGhXo5.js";const a=e=>Number(e??0);function y(e){let n=(e.companyName||"").trim();(!n||n==="TWS"||n==="Tekki Web Solutions")&&(n="Tekki Web Solutions Pvt. Ltd.");let i=(e.departmentName||"").trim();i==="ENG"?i="Engineering":i==="SALES"?i="Growth & Sales":i==="MKT"?i="Marketing":i==="FIN"&&(i="Finance");const o=(e.employeeName||"").trim(),d=(e.salesPersonName||"").trim(),u=(e.teamName||"").trim();return{id:e.id,clientId:e.clientId,projectId:e.projectId,departmentId:e.departmentId,teamId:e.teamId,employeeId:e.employeeId,salesPersonId:e.salesPersonId,companyId:e.companyId,date:e.entryDate,invoiceNo:e.invoiceNo,client:e.clientName,project:e.projectName,department:i,team:u,employee:o,salesPerson:d,company:n,gross:a(e.gross),tax:a(e.tax),net:a(e.net),status:e.status}}function g(e){return{clientId:e.clientId,projectId:e.projectId,departmentId:e.departmentId,teamId:e.teamId,employeeId:e.employeeId,salesPersonId:e.salesPersonId,companyId:e.companyId,entryDate:c(e.date)||new Date().toISOString().slice(0,10),invoiceNo:e.invoiceNo,clientName:e.client,projectName:e.project,departmentName:e.department,teamName:e.team,employeeName:e.employee??"",salesPersonName:e.salesPerson??"",companyName:e.company??"",gross:e.gross,tax:e.tax,net:e.net,status:e.status}}function N(e){if(!e)return{};const t=e?.data&&e?.success!==void 0?e.data:e;let s=(t.companyName||t.company_name||"").trim();(!s||s==="TWS"||s==="Tekki Web Solutions")&&(s="Tekki Web Solutions Pvt. Ltd.");const i=t.entryDate||t.entry_date||t.date||t.createdAt||"";return{id:t.id,departmentId:t.departmentId||t.department_id,teamId:t.teamId||t.team_id,employeeId:t.employeeId||t.employee_id,approverId:t.approverId||t.approver_id,companyId:t.companyId||t.company_id,projectId:t.projectId||t.project_id,date:typeof i=="string"?i:i instanceof Date?i.toISOString():String(i||""),voucherNo:t.voucherNo||t.voucher_no||"",expenseType:t.expenseType||t.expense_type||"Variable",category:t.category||"",vendor:t.vendor||"",description:t.description||"",department:t.departmentName||t.department_name||"",team:t.teamName||t.team_name||"",employee:t.employeeName||t.employee_name||"",approver:t.approverName||t.approver_name||"",company:s,paymentMethod:t.paymentMethod||t.payment_method||"Bank Transfer",gross:a(t.gross),tax:a(t.tax),net:a(t.net),status:t.status||"Pending",amountPaid:a(t.amountPaid??t.amount_paid),paidPercentage:a(t.paidPercentage??t.paid_percentage),balanceDue:a(t.balanceDue??t.balance_due),balanceDueDate:t.balanceDueDate||t.balance_due_date?String(t.balanceDueDate||t.balance_due_date):void 0,advanceReference:t.advanceReference||t.advance_reference||void 0,attachmentUrl:t.attachmentUrl||t.attachment_url||void 0,attachmentName:t.attachmentName||t.attachment_name||void 0,isLocked:!!(t.isLocked||t.is_locked),lockedById:t.lockedById||t.locked_by_id||void 0,lockedByName:t.lockedByName||t.locked_by_name||void 0,lockedAt:t.lockedAt||t.locked_at?String(t.lockedAt||t.locked_at):void 0,lockReason:t.lockReason||t.lock_reason||void 0,unlockRequested:!!(t.unlockRequested||t.unlock_requested),unlockRequestReason:t.unlockRequestReason||t.unlock_request_reason||void 0,unlockRequestedAt:t.unlockRequestedAt||t.unlock_requested_at?String(t.unlockRequestedAt||t.unlock_requested_at):void 0,unlockRequestedById:t.unlockRequestedById||t.unlock_requested_by_id||void 0,unlockRequestedByName:t.unlockRequestedByName||t.unlock_requested_by_name||void 0}}function v(e){const t=Number(e.gross)||0,n=e.taxApplicable!==!1&&Number(e.taxRate)||0,s=e.tax!==void 0?Number(e.tax):Math.round(t*n/100),i=e.net!==void 0?Number(e.net):t+s,o=["Fixed","Variable","Direct","Indirect","Operational","Capital Expenditure (CapEx)","Liabilities"];let d=e.expenseType||"Variable";o.includes(d)||(d="Variable");const u=e.status||e.paymentStatus||"Pending";return{departmentId:e.departmentId,teamId:e.teamId,employeeId:e.employeeId,approverId:e.approverId,companyId:e.companyId,projectId:e.projectId,entryDate:c(e.date||e.entryDate)||new Date().toISOString().slice(0,10),voucherNo:e.voucherNo||e.referenceNo||"",expenseType:d,category:e.category||"General Expense",vend
1or:e.vendor||e.vendorName||"",description:e.description||"",departmentName:e.department||e.departmentName||"",teamName:e.team||e.teamName||"",employeeName:e.employee||e.employeeName||"",approverName:e.approver||e.approverName||"",companyName:e.company||e.companyName||"",paymentMethod:e.paymentMethod||e.paymentMode||"Bank Transfer",gross:t,tax:s,net:i,status:u,amountPaid:e.amountPaid!==void 0?Number(e.amountPaid):0,paidPercentage:e.paidPercentage!==void 0?Number(e.paidPercentage):0,balanceDue:e.balanceDue!==void 0?Number(e.balanceDue):0,balanceDueDate:e.balanceDueDate||null,advanceReference:e.advanceReference||null,attachmentUrl:e.attachmentUrl||null,attachmentName:e.attachmentName||null}}function r(e){const t=a(e.balance),n=a(e.beginningBalance??e.beginning_balance??0),s=a(e.totalDeposits??e.total_deposits??0),i=a(e.totalWithdrawals??e.total_withdrawals??0);let o=(e.companyName||e.company_name||"").trim();return(!o||o==="TWS"||o==="Tekki Web Solutions")&&(o="Tekki Web Solutions Pvt. Ltd."),{id:e.id,account:e.accountName||e.account_name||e.bank||"Bank Account",bank:e.bank||e.accountName||e.account_name||"Bank",accountNo:e.accountNo||e.account_no||"",type:e.type||"Current",balance:t,beginningBalance:n,totalDeposits:s,totalWithdrawals:i,lastUpdated:e.lastUpdated||e.last_updated||"—",company:o,branch:e.branch||"",bankAddress:e.bankAddress||e.bank_address||"",ifscCode:e.ifscCode||e.ifsc_code||"",swiftCode:e.swiftCode||e.swift_code||"",upiId:e.upiId||e.upi_id||"",qrCodeUrl:e.qrCodeUrl||e.qr_code_url||""}}const f=r;function h(e){return{accountName:e.account||e.bank||"Bank Account",bank:e.bank||"Bank",accountNo:e.accountNo||"",type:e.type||"Current",balance:e.balance??0,beginningBalance:e.beginningBalance??0,totalDeposits:e.totalDeposits??0,totalWithdrawals:e.totalWithdrawals??0,lastUpdated:e.lastUpdated||new Date().toLocaleString("en-IN",{day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"}),companyName:e.company||"Tekki Web Solutions Pvt. Ltd.",branch:e.branch||null,bankAddress:e.bankAddress||null,ifscCode:e.ifscCode||null,swiftCode:e.swiftCode||null,upiId:e.upiId||null,qrCodeUrl:e.qrCodeUrl||null}}function k(e){return{id:e.id,name:e.name,category:e.category,purchaseDate:e.purchaseDate,value:a(e.value),depPct:a(e.depPct),currentValue:a(e.currentValue),location:e.location,status:e.status}}function I(e){return{name:e.name,category:e.category,purchaseDate:e.purchaseDate,value:e.value,depPct:e.depPct,currentValue:e.currentValue,location:e.location,status:e.status}}function A(e){return{id:e.id,name:e.name,type:e.type,principal:a(e.principal),ratePct:e.ratePct??null,emi:e.emi??null,start:e.start,outstanding:a(e.outstanding),status:e.status}}function _(e){return{name:e.name,type:e.type,principal:e.principal,ratePct:e.ratePct,emi:e.emi,start:e.start,outstanding:e.outstanding,status:e.status}}function S(e){return{id:e.id,name:e.name,type:e.type,invested:a(e.invested),date:e.investedOn,currentValue:a(e.currentValue),roi:a(e.roi),status:e.status}}function m(e){if(!e)return"";if(typeof e=="string"){if(/^\d{4}-\d{2}-\d{2}$/.test(e))return e;if(e.includes("T")){const s=e.split("T")[0].split("-");if(s.length>=3)return`${s[0]}-${s[1].padStart(2,"0")}-${s[2].padStart(2,"0")}`}if(e.includes("/")){const n=e.split("/");if(n.length===3){if(n[0].length===4)return`${n[0]}-${n[1].padStart(2,"0")}-${n[2].padStart(2,"0")}`;if(n[2].length===4)return`${n[2]}-${n[1].padStart(2,"0")}-${n[0].padStart(2,"0")}`}}const t=new Date(e);if(!isNaN(t.getTime())){const n=t.getFullYear(),s=String(t.getMonth()+1).padStart(2,"0"),i=String(t.getDate()).padStart(2,"0");return`${n}-${s}-${i}`}return e}if(e instanceof Date&&!isNaN(e.getTime())){const t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getDate()).padStart(2,"0");return`${t}-${n}-${s}`}return String(e)}function p(e){return{id:e.id,date:m(e.entryDate||e.date),entryTime:e.entryTime||e.time||"",voucherNo:e.voucherNo||`CASH-${(e.id||"").slice(0,5)}`,type:e.type||(a(e.payment)>0?"Cash Out (Cr)":"Cash In (Dr)"),category:e.category||(e.description?e.description.slice(0,30):"General Expense"),subCategory:e.subCategory||"",givenBy:e.givenBy||e.allocatedBy||(a(e.receipt)>0?"Pawandeep Kaur (CFO)":"Gurcharan Singh Kang (COO)"),assignTo:e.assignTo||e.custodianName||e.handledBy||"",custodianName:e.custodianName||e.assignTo||e.handledBy||"",company:e.company||e.companyName||"Tekki Web Solutions Pvt. Ltd.",department:e.department||e.departmentName||"Growth",handledBy:e.handledBy||e.assignTo||e.custodianName||"",description:e.description||"",receipt:a(e.receipt||e.gross),payment:a(e.payment),balance:a(e.balance),net:a(e.receipt||e.payment||e.net||e.gross),gross:a(e.gross||e.receipt||e.payment),paymentMode:e.paymentMode||"Cash",billUrl:e.billUrl||null,isEdited:!!e.isEdited,auditStatus:e.auditStatus||"Pending",auditRemarks:e.auditRemarks||"",allocatedBy:e.allocatedBy||e.givenBy||(a(e.receipt)>0?"CFO / Pawan":""),floatBatchId:e.floatBatchId||"",verificationStatus:e.verificationStatus||"Pending",verificationNote:e.verificationNote||"",status:e.status||e.auditStatus||"Pending"}}const P=p;function D(e){return{id:e.id,batchNo:e.batchNo||`FLOAT-${e.id?.slice(0,6)}`,department:e.department||"Growth",requestedBy:e.requestedBy||"Gurcharan Singh Kang (COO)",requestedAmount:a(e.requestedAmount),allocatedAmount:a(e.allocatedAmount),allocatedBy:e.allocatedBy||"Pawan (CFO)",allocatedAt:e.allocatedAt?m(e.allocatedAt):"",purpose:e.purpose||"Weekly cash float",totalSpent:a(e.totalSpent),remainingCash:a(e.remainingCash),status:e.status||"Active",submittedAt:e.submittedAt?m(e.submittedAt):"",signedOffAt:e.signedOffAt?m(e.signedOffAt):"",signedOffBy:e.signedOffBy||"",waiverAmount:a(e.waiverAmount),waiverReason:e.waiverReason||"",auditRemarks:e.auditRemarks||"",totalSlipsCount:Number(e.totalSlipsCount||0),verifiedSlipsCount:Number(e.verifiedSlipsCount||0)}}function B(e){return{id:e.id,invoiceNo:e.invoiceNo,client:e.clientName,project:e.projectName,issueDate:e.issueDate,dueDate:e.dueDate,amount:a(e.amount),paid:a(e.paidAmount),outstanding:a(e.outstanding),status:e.status,attachmentUrl:e.attachmentUrl||null,attachmentName:e.attachmentName||null}}function C(e){return{invoiceNo:e.invoiceNo,clientName:e.client,projectName:e.project,issueDate:c(e.issueDate),dueDate:c(e.dueDate),amount:e.amount,paidAmount:e.paid,outstanding:e.outstanding,status:e.status,attachmentUrl:e.attachmentUrl||null,attachmentName:e.attachmentName||null}}function T(e){return{id:e.id,name:e.name,client:e.clientName,budget:a(e.budget),start:e.startLabel,end:e.endLabel,status:e.status,team:e.teamName,revenue:a(e.revenue),cost:a(e.cost),profit:a(e.profit)}}function R(e){return{name:e.name,clientName:e.client,budget:e.budget,startLabel:e.start,endLabel:e.end,status:e.status,teamName:e.team,revenue:e.revenue,cost:e.cost,profit:e.profit}}function b(e){const t=(e.monthlyAmounts??[]).map(i=>a(i));for(;t.length<12;)t.push(0);const n=a(e.annualAmount),s=t.reduce((i,o)=>i+o,0);return{id:e.id,category:e.category,monthly:t.slice(0,12),annual:n>0?n:s,targetPercentage:e.targetPercentage!=null?a(e.targetPercentage):void 0}}function x(e){const t=e.monthly??[];return{category:e.category,fiscalYear:e.fiscalYear??new Date().getFullYear(),monthlyAmounts:t,annualAmount:e.annual??t.reduce((n,s)=>n+s,0),targetPercentage:e.targetPercentage!=null?a(e.targetPercentage):void 0}}function q(e){return{id:e.id,title:e.title,date:e.meetingDate,time:e.meetingTime,organizer:e.organizer,attendees:e.attendees,dept:e.departmentCode,project:e.projectRef??null,actionItems:e.actionItems,status:e.status,minutesPayload:e.minutesPayload??null}}function F(e){return{title:e.title,meetingDate:c(e.date),meetingTime:e.time,organizer:e.organizer,attendees:e.attendees,departmentCode:e.dept,projectRef:e.project,actionItems:e.actionItems,status:e.status,minutesPayload:e.minutesPayload}}export{b as a,x as b,y as c,g as d,r as e,v as f,B as g,T as h,R as i,h as j,k,I as l,N as m,m as n,A as o,_ as p,q,F as r,S as s,p as t,f as u,D as v,P as w,C as x};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.