سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 15:45 UTC
Register purchases in cloud collections
davoodmehraban89 committed
Sep 28, 2026 at 12:51 UTC
a032a1a850fbf574ec7cbf828667ef1828d9f185
1 file changed
+1
-1
js/core.js
+1
-1
@@ -34,7 +34,7 @@ const SUPABASE_URL='https://hcsixhqbyuhpshfwqpjx.supabase.co';
34
const SUPABASE_KEY='sb_publishable_2y8IsGdhqeLDPkEp7mBF4w_X4yji16D'; // publishable (public by design); access is enforced by RLS on the server
35
const sb=window.supabase.createClient(SUPABASE_URL,SUPABASE_KEY,{auth:{persistSession:true,autoRefreshToken:true,detectSessionInUrl:true,flowType:'pkce'}});
36
const ID_RE=/^[A-Za-z0-9_-]{1,64}$/;
37
-const COLLS=['companies','contacts','products','invoices','cheques','expenses','settings'];
37
+const COLLS=['companies','contacts','products','invoices','purchases','cheques','expenses','settings'];
38
39
function esc(v){return String(v==null?'':v).replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"').replace(/'/g,''');}
40
function todayISO(){return new Intl.DateTimeFormat('en-CA',{timeZone:'Asia/Tehran',year:'numeric',month:'2-digit',day:'2-digit'}).format(new Date());}