Snippets Collections
<<link rel="icon" href="https://neunous.com/wp-content/uploads/2024/12/favicon.webp" sizes="32x32" /> <link rel="icon" href="https://neunous.com/wp-content/uploads/2024/12/favicon.webp" sizes="192x192" /> <link rel="apple-touch-icon" href="https://neunous.com/wp-content/uploads/2024/12/favicon.webp" />
<link rel="shortcut icon" href="favicon.ico"/>
import random

# List of jokes
jokes = [
    "Why don't scientists trust atoms? Because they make up everything!",
    "Why did the scarecrow win an award? Because he was outstanding in his field!",
    "Why don't skeletons fight each other? They don't have the guts.",
    "What do you call fake spaghetti? An impasta!",
    "Why did the bicycle fall over? Because it was two-tired!",
    "Why did the math book look sad? Because it had too many problems.",
    "What do you call cheese that isn't yours? Nacho cheese!",
    "Why can't you give Elsa a balloon? Because she will let it go!",
    "Why was the computer cold? It left its Windows open!",
    "What do you call a bear with no teeth? A gummy bear!"
]

def tell_joke():
    """Randomly selects and prints a joke."""
    joke = random.choice(jokes)
    print("Here's a joke for you:")
    print(joke)

# Main program
if __name__ == "__main__":
    print("Welcome to the Random Joke Generator!")
    while True:
        user_input = input("Would you like to hear a joke? (yes/no): ").strip().lower()
        if user_input in ["yes", "y"]:
            tell_joke()
        elif user_input in ["no", "n"]:
            print("Alright, no jokes for now. Have a great day!")
            break
        else:
            print("Please enter 'yes' or 'no'.")
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Complex Nested Structure</title>
    <link
      rel="stylesheet"
      href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
    />
    <link
      rel="stylesheet"
      href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"
    />
    <style>
      .box {
        border: 2px solid #000;
        margin: 10px;
        padding: 10px;
        border-radius: 5px;
        transition: all 0.3s ease;
      }
      .box-1 {
        background-color: #f9f9f9;
      }
      .box-2 {
        background-color: #e9e9e9;
      }
      .box-3 {
        background-color: #d9d9d9;
      }
      .box-4 {
        background-color: #c9c9c9;
      }
      .box-5 {
        background-color: #b9b9b9;
      }

      .box:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      }

      .highlight {
        background-color: yellow;
        font-weight: bold;
        animation: flash 1s infinite;
      }

      .italic {
        font-style: italic;
      }

      .shadow {
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
      }

      .text-center {
        text-align: center;
      }

      .text-right {
        text-align: right;
      }

      .dashed {
        border-style: dashed;
      }

      .dotted {
        border-style: dotted;
      }

      .gradient {
        background: linear-gradient(45deg, #ff9a9e, #fad0c4);
      }

      ul {
        list-style-type: square;
      }

      ol {
        list-style-type: upper-roman;
      }

      table {
        border-collapse: collapse;
        width: 100%;
      }

      th,
      td {
        border: 1px solid #000;
        padding: 8px;
        text-align: left;
      }

      .circle {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: #ffebcd;
        display: inline-block;
      }

      .tooltip {
        position: relative;
        display: inline-block;
      }

      .tooltip .tooltiptext {
        visibility: hidden;
        width: 120px;
        background-color: #555;
        color: #fff;
        text-align: center;
        border-radius: 5px;
        padding: 5px;
        position: absolute;
        z-index: 1;
        bottom: 125%;
        left: 50%;
        margin-left: -60px;
        opacity: 0;
        transition: opacity 0.3s;
      }

      .tooltip:hover .tooltiptext {
        visibility: visible;
        opacity: 1;
      }

      .flex-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
      }

      .flex-item {
        flex: 1 1 200px;
        border: 1px solid #ccc;
        padding: 10px;
        background-color: #fff;
      }

      form {
        margin-top: 20px;
      }

      input,
      select,
      textarea,
      button {
        display: block;
        margin: 10px 0;
        padding: 5px;
        font-size: 16px;
      }

      a {
        color: blue;
        text-decoration: underline;
      }

      .button-primary {
        background-color: #007bff;
        color: #fff;
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
      }

      .button-primary:hover {
        background-color: #0056b3;
      }

      .button-secondary {
        background-color: #6c757d;
        color: #fff;
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
      }

      .button-secondary:hover {
        background-color: #5a6268;
      }

      @keyframes flash {
        0%,
        100% {
          opacity: 1;
        }
        50% {
          opacity: 0.5;
        }
      }
    </style>
  </head>
  <body>
    <div class="box box-1 animate__animated animate__bounceIn">
      Level 1
      <div  class="box box-2 animate__animated animate__fadeInLeft">
        Level 2
        <div class="box box-3 animate__animated animate__fadeInRight">
          Level 3
          <div class="box box-4 animate__animated animate__fadeInUp">
            Level 4
            <div class="box box-5 animate__animated animate__fadeInDown">
              Level 5
              <div id="target" class="flex-container">
                <div class="flex-item">
                  <ul>
                    <li>Item 1</li>
                    <li>Item 2</li>
                    <li>
                      Item 3
                      <ol>
                        <li>Sub-item A</li>
                        <li>Sub-item B</li>
                        <li>Sub-item C</li>
                      </ol>
                    </li>
                  </ul>
                </div>
                <div class="flex-item">
                  <table>
                    <tr>
                      <th>Header 1</th>
                      <th>Header 2</th>
                      <th>Header 3</th>
                    </tr>
                    <tr>
                      <td>Row 1 Col 1</td>
                      <td>Row 1 Col 2</td>
                      <td>Row 1 Col 3</td>
                    </tr>
                    <tr>
                      <td>Row 2 Col 1</td>
                      <td>Row 2 Col 2</td>
                      <td>Row 2 Col 3</td>
                    </tr>
                  </table>
                </div>
                <div class="flex-item gradient">
                  Gradient Background
                  <div class="tooltip">
                    Hover me
                    <span class="tooltiptext">Tooltip Text</span>
                  </div>
                  <div class="circle"></div>
                </div>
                <div
                  class="flex-item gradient"
                  style="
                    border: 2px solid #000;
                    margin: 10px;
                    padding: 10px;
                    border-radius: 5px;
                    transition: all 0.3s ease;
                    background-color: #b9b9b9;
                    transform: scale(1.05);
                    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
                    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
                  "
                >
                  All Styles Applied
                </div>
              </div>
              <div class="text-center shadow">
                <p class="highlight">Highlighted Centered Text</p>
                <p class="italic">Italic Centered Text</p>
              </div>
              <div>
                <form>
                  <label for="name">Name:</label>
                  <input
                    type="text"
                    id="name"
                    name="name"
                    placeholder="Enter your name"
                  />

                  <label for="email">Email:</label>
                  <input
                    type="email"
                    id="email"
                    name="email"
                    placeholder="Enter your email"
                  />

                  <label for="gender">Gender:</label>
                  <select id="gender" name="gender">
                    <option value="male">Male</option>
                    <option value="female">Female</option>
                    <option value="other">Other</option>
                  </select>

                  <label for="message">Message:</label>
                  <textarea
                    id="message"
                    name="message"
                    rows="4"
                    placeholder="Write your message"
                  ></textarea>

                  <button type="submit" class="button-primary">Submit</button>
                  <button type="reset" class="button-secondary">Reset</button>
                </form>
              </div>
              <div>
                <p>
                  Visit our
                  <a href="https://example.com" target="_blank">website</a> for
                  more information.
                </p>
              </div>
              <div>
                <button
                  onclick="alert('Button Clicked!')"
                  class="button-primary"
                >
                  Click Me
                </button>
                <button class="button-secondary">Another Button</button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Lists</title>
</head>
<body>
    <h1>shahrukh is the best actor </h1>
    <h2>Salman is also agood actor</h2>

    <ol>
        <li>orange <strong>tea</strong> </li> <!---strong -->
        <li>live  <em>tea </em> </li> <!---em tag isused  -->
        <li>hero </li>
    </ol>
    <div>
        <h1> blocklevel elements </h1>
        <ul>
            <li>hradings</li>
            <li>ol, li </li>
            <li> p</li>
            <li>li</li>
        </ul>
    </div>
    <div>
        <h1>  inline elements </h1>
        <ul>
            
            <li>a tags</li>
            <li>img</li>
            <li>strong</li>

        </ul>
    </div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=  , initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1 title="chai or code">My name is tanishq dhingra </h1>
    <h2> i  study in bennet university </h2>
    <a href="http://chaicode.com">go to cha   i code </a>
    <a href="TANISHQ DHINGRA.docx">tanishq dhingra document</a>
    <img src="./imageee.jpg.jpg" width = "300px">
    <h6> i not happy in my life  i want to became the high 3  </h6>
   

</body>
</html>
import mysql.connector as c

mydb = c.connect(
    host=" 172.16.25.53",
    user="root",
    password="1234",
    database="cvr"
)

mycursor = mydb.cursor()
mycursor.execute("select * from sunny order by score asc")
students=mycursor.fetchall()
for std in students:
    print(std)
import mysql.connector as c

mydb = c.connect(
    host="localhost",
    user="root",
    password="1234",
    database="cvr"
)

mycursor = mydb.cursor()
mycursor.execute("select * from student3")
students=mycursor.fetchall();
for std in students:
    print(std)
import mysql.connector as c

mydb = c.connect(
    host="localhost",
    user="root",
    password="1234",
    database="cvr"
)

mycursor = mydb.cursor()
id=int(input("enter the student id to delete:"))
mycursor.execute("delete from sunny where id=%s",(id))
print(f" record with id {id}  deleted successfully")
mydb.commit()
import mysql.connector as c

# Connect to the database
mydb = c.connect(
    host="localhost",
    user="root",
    password="1234",
    database="cvr"
)


mycursor = mydb.cursor()


mycursor.execute("DROP TABLE IF EXISTS student2")


mydb.commit()

print("Table 'student2' deleted successfully")


mycursor.close()
mydb.close()
import mysql.connector as c

mydb = c.connect(
    host="localhost",
    user="root",
    password="1234",
    database="cvr"
)

mycursor = mydb.cursor()
id=int(input("Enter the student id to update:"))
updated_name=input("Enter the  updated name: ")
mycursor.execute("update sunny  set name=%s where id=%s",(updated_name,id))
mydb.commit()
print("record updated successfully")

import mysql.connector as c

mydb = c.connect(
    host="localhost",
    user="root",
    password="1234",
    database="cvr"
)

mycursor = mydb.cursor()
id = input("Enter the id of the student to update: ")
new_name = input("Enter the new name: ")

# Update the name of the student where the id matches
mycursor.execute("UPDATE student3 SET sname = %s WHERE sid = %s", (new_name, id))
mydb.commit()
print("updated successfully")
import mysql.connector as c

mydb = c.connect(
    host="localhost",
    user="root",
    password="1234",
    database="cvr"
)

mycursor = mydb.cursor()
num_records=int(input("enter the no of records you want to insert:"))
for _ in range(num_records):
    id = input("Enter student ID: ")
    name = input("Enter student name: ")
    city = input("Enter student city: ")
    score = input("Enter student score: ")

    mycursor.execute("INSERT INTO sunny (id, name, city, score) VALUES (%s, %s, %s, %s)", (id, name, city, score))

mydb.commit()

print(f"{num_records} records inserted successfully")





mycursor.close()
mydb.close()
import mysql.connector as c

mydb = c.connect(
    host="localhost",
    user="root",
    password="1234",
    database="cvr"
)

mycursor = mydb.cursor()
#id=input("enter the id:")
#name=input("enter your name")
mycursor.execute("INSERT INTO student3 values (200,'sunny')")
print("inserted successfully")
mydb.commit()

import mysql.connector as c

mydb = c.connect(
    host="localhost",
    user="root",
    password="1234",
    database="cvr"
)

mycursor = mydb.cursor()

mycursor.execute("CREATE TABLE IF NOT EXISTS sunny (id INT PRIMARY KEY,name VARCHAR(100),city VARCHAR(100),score INT)")

mydb.commit()

print("Table 'student' created successfully")

mycursor.close()
mydb.close()
import mysql.connector as c

mydb = c.connect(
    host="localhost",
    user="root",
    password="1234",
    database="cvr"
)

mycursor = mydb.cursor()

mycursor.execute("CREATE TABLE student3 (sid INT, sname VARCHAR(20))")
print("table created")

class Solution {
    public boolean isPalindrome(int x) {
        if(x < 0) return false ;
        if(x != 0 && x % 10 == 0) return false ;
        int reverse = 0 ;
        while(x > reverse ){
            int lastdigit = x % 10;
            reverse = reverse * 10 + lastdigit ;
            x = x / 10 ; 
        }
        return( x == reverse) || (x == reverse / 10);
    }
}
function post_loop() {
    ob_start();

    // Query arguments
    $args = array(
        'post_type' => 'post',
        'posts_per_page' => -1,
    );

    $data = new WP_Query($args);
    ?>
    <div class="row">
        <?php if ($data->have_posts()): ?>
            <?php while ($data->have_posts()): $data->the_post(); ?>
                <div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
                    <div class="main-post">
                        <!-- Featured Image -->
                        <div class="MainImg">
                            <div class="blog-fig">
                                <?php if (has_post_thumbnail()): ?>
                                    <?php the_post_thumbnail('full'); ?>
                                <?php endif; ?>
                            </div>
                        </div>
                        
                        <!-- Post Excerpt -->
                        <div class="blg-content">
                            <div class="blg-ttl">
                                <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
                            </div>
                            <div class="blg-excerp">
                                <?php echo wp_trim_words(get_the_content(), 40, '...'); ?>
                            </div>
                            <div class="blg-btn">
                                <a href="<?php the_permalink(); ?>">Read More</a>
                            </div>
                        </div>
                    </div>
                </div>
            <?php endwhile; ?>
        <?php else: ?>
            <p>No posts found.</p>
        <?php endif; ?>
    </div>
    <?php

    // Reset Post Data
    wp_reset_postdata();

    return ob_get_clean();
}
add_shortcode('wp_post_data', 'post_loop');
{ "result":"{
 "Success":"True",
 "Error":"",
 "rs1":
 [
  {"class":"Assets","AccountNumber":"1000101","Opening_Balance":0.0,"DEBIT_VALUE":null,"CREDIT_VALUE":null,"Description":"Testing Transfer","Closing_Balance":0.0},
  {"class":"Assets","AccountNumber":"100107","Opening_Balance":0.0,"DEBIT_VALUE":null,"CREDIT_VALUE":null,"Description":"MainTest","Closing_Balance":0.0},
  {"class":"Assets","AccountNumber":"111203","Opening_Balance":0.0,"DEBIT_VALUE":null,"CREDIT_VALUE":null,"Description":"Saudi Fransi USD","Closing_Balance":0.0},
  {"class":"Assets","AccountNumber":"115001","Opening_Balance":0.0,"DEBIT_VALUE":null,"CREDIT_VALUE":null,"Description":"Due from SDI","Closing_Balance":0.0},
  {"class":"Assets","AccountNumber":"115002","Opening_Balance":0.0,"DEBIT_VALUE":null,"CREDIT_VALUE":null,"Description":"Due from SII","Closing_Balance":0.0},
  {"class":"Assets","AccountNumber":"115003","Opening_Balance":0.0,"DEBIT_VALUE":null,"CREDIT_VALUE":null,"Description":"Due from SPE","Closing_Balance":0.0},
  {"class":"Assets","AccountNumber":"115004","Opening_Balance":0.0,"DEBIT_VALUE":null,"CREDIT_VALUE":null,"Description":"DUE from SRE","Closing_Balance":0.0},
  {"class":"Assets","AccountNumber":"123458","Opening_Balance":0.0,"DEBIT_VALUE":null,"CREDIT_VALUE":null,"Description":"Public Relations","Closing_Balance":0.0},
  {"class":"Revenue","AccountNumber":"411256","Opening_Balance":0.0,"DEBIT_VALUE":null,"CREDIT_VALUE":null,"Description":"rgs","Closing_Balance":0.0}
 ]
}",
 "correlationID":"APIGW:853e679d-7311-44a2-a336-45a4efea22fc:25649" }
class Solution {
    public int singleNumber(int[] nums) {
       int single = 0;
       for (int num : nums){
        single = single ^ num;
       }
       return single ;

    }
}
Start your business potential with a Binance clone script, a proven strategy to accelerate growth in the cryptocurrency market. By Using its customizable features, you can create a secure, user-friendly exchange customized  to your audience. Incorporate advanced trading options, strong security protocols, and smooth integrations to attract users. Optimize your platform with multi-currency support and a responsive design. Stay competitive by launching faster, reducing development costs, and focusing on strategic user acquisition and engagement.
Create your own cryptocurrency exchange effortlessly with Beleaf Technologies. Our Binance clone script helps you create a safe, user-friendly platform, customized to your vision, ensuring fast and trustworthy results.
Contact today for free demo : https://www.beleaftechnologies.com/binance-clone-script-development
Whatsapp: +91 7904323274
Skype: live:.cid.62ff8496
d3390349
Telegram: @BeleafSoftTech
Mail to: mailto:business@beleaftechnologies.com

import java.util.ArrayList;
import java.util.List;

class Solution {
    public List<String> fizzBuzz(int n) {
        List<String> answer = new ArrayList<>();
        for (int i = 1; i <= n; i++) {
            if (i % 3 == 0 && i % 5 == 0) {
                answer.add("FizzBuzz");
            } else if (i % 3 == 0) {
                answer.add("Fizz");
            } else if (i % 5 == 0) {
                answer.add("Buzz");
            } else {
                answer.add(String.valueOf(i)); // Convert integer i to a string
            }
        }
        return answer;
    }
}
At Cryptocurrency exchange development company, we specialize in creating customize cryptocurrency exchange platforms  for modern traders. From smooth  user interfaces to strong security frameworks, we ensure your platform stands out. Our team integrates advanced features like multi-currency support, high-speed transactions, and secure wallets, ensuring a top-tier trading experience. As pioneers in the blockchain space, we focus on scalability and innovation, enabling you to lead in the rapidly evolving crypto market. Ready to redefine trading? Let’s shape the future of crypto exchanges together.

Visit now >>https://cryptocurrency-exchange-development-company.com/
Whatsapp :  +91 8056786622
Email id :  business@beleaftechnologies.com
Telegram : https://telegram.me/BeleafSoftTech 

.footer-spacer {
  overflow: hidden;
}

.footer-spacer .elementor-widget-container {
  background-color: transparent !important;
}

.footer-spacer .elementor-spacer-inner {
  height: 8px !important;
  border-bottom: 1px solid #d9d9d961 !important;
}

.footer-spacer .elementor-widget-container:after {
  content: "";
  content: "";
  position: absolute;
  bottom: -1px;
  left: -20%;
  height: 3px;
  width: 17%;
  opacity: 2;
  animation: left-to-right 2.5s ease-in-out infinite alternate;
  background: linear-gradient(90deg, rgba(51, 177, 173, 0.1) 0%, #89D501 48%, rgba(51, 177, 173, 0.5) 86%);
}

@keyframes left-to-right {
  0% {
    left: 0%;
  }

  100% {
    left: 83%;
  }
}


.main-tabs-wrapper ul::-webkit-scrollbar {
  display: none;
}
<script>
    document.querySelectorAll('.text-shadow .elementor-heading-title ').forEach((el) => {
  const text = el.textContent.trim();
  el.setAttribute('data-text', text); 
});
</script>
  <style>
      .text-shadow  .elementor-heading-title {
  position: relative; 
}

    .text-shadow  .elementor-heading-title:before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
    font-size: 50px;
  color: transparent;
  -webkit-text-stroke: 2px #FFF; 
  text-stroke: 3px #FFF; 
transform: translate(8px, -15px);
  opacity: 0.15;
  
}
@media (max-width: 1024px) {
.text-shadow .elementor-heading-title:before {
    font-size: 40px;
}
}

@media (max-width: 767px) {
.text-shadow .elementor-heading-title:before {
    font-size: 40px;
}
}
 
 </style>
.btn-animation a {
  margin: 0 auto;
  width: fit-content !important;
  height: 50px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.btngradienthov a:hover {
  color: #fff;
  background: linear-gradient(90deg, #89d501 0%, #33b1ad 100%);
}

.btn-animation a {
  position: relative;
}

.btn-animation a span.elementor-button-text {
  position: relative;
  z-index: 9999;
}

.btn-animation a:hover:before {
  background: linear-gradient(90deg, #89d501 0%, #33b1ad 100%);
}

.btn-animation a:before {
  content: "";
  position: absolute;
  width: 97%;
  height: 40px;
  z-index: 1;
  background: #ffffff;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  -ms-border-radius: 50px;
  -o-border-radius: 50px;
}

.btn-animation a:after {
  content: "";
  width: 100%;
  height: 420px;
  position: absolute;
  border-radius: 50px;
  background: conic-gradient(#d9d9d9 0%12.5%,
      #d9d9d9 12.5%25%,
      #62c554 25%37.5%,
      #62c554 37.5%50%,
      #62c554 50%62.5%,
      #62c554 62.5%75%,
      #62c554 75%87.5%,
      #62c554 87.5%100%);
  animation: border-animation 5s linear infinite;
  -webkit-animation: border-animation 5s linear infinite;
}

@keyframes border-animation {
  to {
    transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
  }
}
gethourdata = Hourly_Quality_Report[Release_Production_wo_recid == input.Release_Production_wo_recid].sum(Total_Complete_Qty);
hourdata = Hourly_Quality_Report[Release_Production_wo_recid == input.Release_Production_wo_recid];
hourdatanew = Hourly_Quality_Report[Release_Production_wo_recid == input.Release_Production_wo_recid] sort by Added_Time desc;
for each  rec in input.Specifications
{
	if(row.Defect_Type = "No Defects" && row.S_No == 1 && hourdatanew.Status == null)
	{
		input.Total_OK_Qty = ifnull(input.Actual_Qty,0);
	}
	if(row.Defect_Type = "No Defects" && row.S_No == 1 && hourdatanew.Status == "Hourly QC Partially Completed")
	{
		//input.Total_OK_Qty = ifnull(hourdatanew.Total_OK_Qty,0);
		input.Total_OK_Qty = ifnull(input.Actual_Qty,0);
	}
	if(row.Defect_Type = "No Defects")
	{
		if(hourdata.count() == 0)
		{
			row.Actual_Qty=null;
		}
		//input.Total_OK_Qty = ifnull(input.Actual_Qty,0);
		disable row.Defects;
		disable row.Actual_Qty;
	}
	else
	{
		enable row.Defects;
		enable row.Actual_Qty;
	}
	/* 	if(rec.Defect_Type = "No Defects")
	{
		if(hourdata.count() == 0)
		{
			//rec.Actual_Qty=ifnull(input.Actual_Qty,0);
			rec.Actual_Qty=null;
		}
		else if(hourdata.count() > 0)
		{
			rec.Actual_Qty=ifnull(input.Actual_Qty,0) - ifnull(gethourdata,0);
		}
		input.Do_you_want_to_Complete_QC_fully = True;
		//input.Total_OK_Qty = ifnull(input.Actual_Qty,0);
		disable row.Defects;
		disable row.Actual_Qty;
	} */
	// 	if(hourdata.count() == 0 || hourdata.count() > 0 && row.Defect_Type == "No Defects")
	// 	{
	// 		alert "You can only choose No Defects, If the above rows not choosed as Reject/Rework/COD";
	// 		row.Defect_Type=null;
	// 		row.Actual_Qty=null;
	// 		input.Do_you_want_to_Complete_QC_fully = null;
	// 	}
	// 	else
	// 	{
	// 		input.Do_you_want_to_Complete_QC_fully = False;
	// 		enable row.Actual_Qty;
	// 		enable row.Defects;
	// 	}
}
if(row.Defect_Type != "COD")
{
	fet_qc = QC_Department_Master[Production_Department == input.Line];
	fet_def = Defects_Master[QC_Department == fet_qc.ID && Defect_Type == row.Defect_Type].ID.getAll();
	row.Defects:ui.add(fet_def);
}
//---If COD choosen & ,Department RIM / Disc  means show all Raw material defects & if Assembly Means show All defects Raw+Rim+Disc Defects-------------
if(row.Defect_Type == "COD")
{
	//info"cod";
	if(row.Department.Department == "Front Rim Line" || row.Department.Department == "Rear Rim Line" || row.Department.Department == "Front Disc Line" || row.Department.Department == "Rear Disc Line")
	{
		//info "---" + row.Department.Department;
		//fet_qc = QC_Department_Master[Production_Department.Department == "Raw Material"];
		fet_def1 = Defects_Master[QC_Department.QC_Department == "Raw Material"].ID.getAll();
		info fet_def1;
		row.Defects:ui.add(fet_def1);
	}
	else if(row.Department.Department == "Front Assembly" || row.Department.Department == "Rear Assembly" || row.Department.Department == "Rear Lug Welding" || row.Department.Department == "Front Lug Welding")
	{
		//info "--Assebly--" + row.Department.Department;
		//fet_qc = QC_Department_Master[Production_Department.Department == "Raw Material"];
		fet_def2 = Defects_Master[QC_Department.QC_Department == "Raw Material" || QC_Department.QC_Department == "Rim Line" || QC_Department.QC_Department == "Disc Line"].ID.getAll();
		//info fet_def2;
		row.Defects:ui.add(fet_def2);
		/* 	raw = List();
	rim =List();
	disc = List();
		fet_def3 = Defects_Master[QC_Department.QC_Department == "Raw Material" ].ID.getAll();

	fet_def4 = Defects_Master[QC_Department.QC_Department == "Rim Line" ].ID.getAll();
		fet_def5 = Defects_Master[QC_Department.QC_Department == "Disc Line" ].ID.getAll();

row.Defects:ui.add(fet_def3);
row.Defects:ui.add(fet_def4);
row.Defects:ui.add(fet_def5); */
	}
}
//-----------------------COLOUR Change Option-------------
// if(row.Defect_Type == "Rejected")
// {
// 	css = "<style>";
// 	//css = css + "#zc-BoM_Details_CWPL-S_No {background : red;}";
// 	//css = css + "#s2id_autogen39 {background : red;}";
// 	//                         css = css + "#zc-BoM_Details_CWPL-Level {background : #ff3333;}";
// 	//               
// 	css = css + "#zc-Specifications {background : #ff3333;}";
// 	css = css + ".zc-Specifications-S_No {background : #ff3333;}";
// 	css = css + ".zc-Specifications-From_Time {background : #ff3333;}";
// 	css = css + ".zc-Specifications-To_Time {background : #ff3333;}";
// 	css = css + ".zc-Specifications-Defect_Type {background : #ff3333;}";
// 	css = css + ".zc-Specifications-Actual_Qty {background : #ff3333;}";
// 	css = css + ".zc-Specifications-Defects {background : #ff3333;}";
// 	css = css + ".zc-Specifications-Department {background : #ff3333;}";
// 	css = css + ".zc-Specifications-Remarks {background : #ff3333;}";
// 	          css = css + ".zc-BoM_Details_CWPL-S_No {background : #ff3333;}";
// 	css = css + "</style>";
// 	input.plain2 = css;
// }
// else
// {
// 	css1 = "<style>";
// 	css1 = css1 + "#zc-Specifications {background : #ffffff;}";
// 	css1 = css1 + "</style>";
// 	input.plain2 = css1;
// }
hide Hourly_Production_Balance;
hide Hourly_Production_Done_Qty;
disable MRP_Actual_Qty;
if(Release_Production_wo_recid != null && Form_Mode == "Create")
{
	input.Hourly_Quality_ID = input.ID;
	input.Actual_Date = zoho.currentdate;
	relprdsf = Release_Production_workorder_subform[Release_Production_wo_existid == input.Release_Production_wo_recid] sort by Production_Sequence_No asc;
	relprdmain = Release_Production_workorder[ID == input.Release_Production_wo_recid];
	fet_hour_prod = Hourly_Production_Process[Release_Production_wo_mainid == relprdmain.ID] sort by Production_Sequence_No asc;
	fet_prodsub = Hourly_Production_Process_Subform[Hourly_Production_Report_RECID == fet_hour_prod.ID];
	//hour_prodsub1 = Hourly_Production_Process_Subform[Hourly_Production_Report_RECID == fet_hour_prod.ID].sum(Actual_Qty);
	if(input.Line.Department != "Raw Material")
	{
		input.MRP_No = relprdmain.MRP_No;
	}
	input.Shift = fet_hour_prod.Shift;
	//input.Start_Time = fet_hour_prod.Start_Time;
	//input.End_Time = fet_hour_prod.End_Time;
	input.Hourly_QC_Date = zoho.currentdate;
	input.Production_Date = relprdmain.Production_Date;
	input.Actual_Production_Date = fet_hour_prod.Actual_Date;
	disable Actual_Production_Date;
	//input.Production_Date = fet_hour_prod.Actual_Date;
	input.Line = relprdsf.Production_Department;
	input.Work_Order_No = ifnull(relprdmain.Work_Order_No,"");
	input.Production_workorder = ifnull(relprdmain.ID,"");
	input.Production_Sequence_No = ifnull(relprdmain.Production_Sequence_No,"");
	input.Part_No1:ui.add(relprdsf.Part_No.getall());
	input.Part_Name1:ui.add(relprdsf.Part_Name.getall());
	//input.Actual_Qty = fet_hour_prod.Total_Completed_Qty;
	input.MRP_Block_Qty = ifnull(relprdmain.MRP_Block_Qty,0);
	input.MRP_Actual_Qty = ifnull(relprdmain.MRP_Actual_Qty,0);
	input.Actual_Qty = ifnull(relprdmain.Actual_Qty,0.0);
	//input.Actual_Qty = ifnull(relprdmain.MRP_Actual_Qty,0);
	input.Hourly_Production_Done_Qty = ifnull(relprdmain.Actual_Qty,0);
	input.Hourly_Production_Balance = ifnull(relprdmain.Balance_Production_Qty,0);
	if(zoho.loginuserid == "admin@carrierwheels.com")
	{
		show Hourly_Production_Balance;
		show Hourly_Production_Done_Qty;
	}
	hourqc = Hourly_Quality_Report[Release_Production_wo_recid == input.Release_Production_wo_recid && Hourly_Production_Done_Qty > 0 && Hourly_Production_Balance > 0] sort by Added_Time desc;
	//info hourqc.ID +"-----HHHH";
	if(hourqc.count() > 0 && hourqc.Do_you_want_to_Complete_QC_fully == true || hourqc.Do_you_want_to_Complete_QC_fully == false)
	{
		input.Hourly_QC_Completed_Qty = ifnull(hourqc.Hourly_Production_Done_Qty,0);
		newactual = ifnull(relprdmain.Actual_Qty,0) - ifnull(hourqc.Hourly_Production_Done_Qty,0);
		//info newactual;
		input.Actual_Qty = ifnull(newactual,0);
	}
	fet_hourqc = Hourly_Quality_Report[Release_Production_wo_recid == input.Release_Production_wo_recid].sum(Total_Complete_Qty);
	if(fet_hourqc > 0)
	{
		input.Actual_Qty_sofar = ifnull(fet_hourqc,0);
		hide No_Defects;
	}
	else
	{
		show No_Defects;
	}
	//info input.Actual_Qty_sofar;
	input.Balance_Qty = ifnull(input.Actual_Qty,0) - ifnull(input.Actual_Qty_sofar,0);
	input.Planned_Qty = input.MRP_No.MRP_Qty;
	input.Quality_supervisor = Employee_Details[Employee_Email == zoho.loginuserid].ID;
	input.Inspector_Name = Employee_Details[Employee_Email == zoho.loginuserid].ID;
	input.Production_Supervisor_Name = Employee_Details[Employee_Email == zoho.loginuserid].ID;
	//input.Actual_Qty = input.MRP_No.MRP_Qty;
	gettotqty = Hourly_Quality_Report[Work_Order_No == input.Work_Order_No && Production_workorder == input.Production_workorder && Line == input.Line].sum(Total_Complete_Qty);
	//input.Total_Complete_Qty = gettotqty;
	// 	if(relprdmain.Planned_Date == null)
	// 	{
	// 		input.Planned_Date = Confirm_Release_Production[Work_Order_No == input.Work_Order_No].Added_Time;
	// 	}
	// 	else
	// 	{
	// 		input.Planned_Date = ifnull(relprdmain.Planned_Date,"");
	// 	}
	// 	if(relprdmain.Production_Date != null)
	// 	{
	// 		input.Production_Date = relprdmain.Production_Date;
	// 	}
	partnolist = List();
	partnalist = List();
	for each  relprec in relprdsf
	{
		partnolist.add(relprec.Part_No);
		partnalist.add(relprec.Part_Name);
	}
	input.Part_No1 = partnolist;
	input.Part_Name1 = partnalist;
	if(input.Line.Department == "Raw Material")
	{
		hide Specifications.Type_field;
		hide Specifications.hr1;
		hide Specifications.hr2;
		hide Specifications.hr3;
		hide Specifications.hr4;
		hide Specifications.hr5;
		hide Specifications.hr6;
		hide Specifications.hr7;
		hide Specifications.hr8;
		hide Specifications.hr9;
		hide Specifications.hr10;
		hide Specifications.hr11;
		hide Specifications.hr12;
		hide Specifications.Process;
		show Specifications.Start_Date;
		show Specifications.End_Date;
	}
	if(input.Line.Department != "Raw Material")
	{
		hide Specifications.Start_Date;
		hide Specifications.End_Date;
	}
	//__________________________________________________________________________________
	// 	fet_qc = QC_Department_Master[Production_Department == input.Line];
	// 	fet_def = Defects_Master[QC_Department == fet_qc.ID] sort by Prority asc;
	// 	if(input.Line.Department != "Raw Material")
	// 	{
	// 		i = 0;
	// 		insrow = Hourly_Quality_Report.Specifications();
	// 		for each  ins in fet_def
	// 		{
	// 			i = i + 1;
	// 			insrow.S_No=i;
	// 			insrow.Defects=ins.ID;
	// 			insrow.Process=ins.Process;
	// 			insrow.Type_field=ins.ID;
	// 			insrow.Planned_Qty=relprdmain.MRP_No.MRP_Qty;
	// 			col = Collection();
	// 			col.insert(insrow);
	// 			input.Specifications.insert(col);
	// 		}
	// 	}
	// 	else if(input.Line.Department == "Raw Material")
	// 	{
	// 		hoursfrow = Hourly_Quality_Report.Specifications();
	// 		//show Hourly_Production_Details.Production_Date;
	// 		hoursfrow.S_No=1;
	// 		hoursfrow.Start_Date=zoho.currentdate;
	// 		hoursfrow.End_Date=zoho.currentdate;
	// 		hoursfrow.Planned_Qty=relprdmain.MRP_No.MRP_Qty;
	// 		hoursfcol = Collection();
	// 		hoursfcol.insert(hoursfrow);
	// 		input.Specifications.insert(hoursfcol);
	// 	}
}
//--------------------------------------------------------------------------------------------------------------------------------
gethour = Hourly_Quality_Report[Work_Order_No == input.Work_Order_No && Line == input.Line && Production_workorder == input.Production_workorder && Status == "Hourly QC Partially Completed"];
if(gethour.count() == 0)
{
	hide plain1;
}
if(gethour.count() > 0)
{
	show plain1;
	history = "<table border=1 Style ='color:#2186EA;border-collapse:collapse;'><tr border=1><th>S.No</th><th>Actual Date</th><th>From Time</th><th>To time</th><th>Defect Type</th><th>Department</th><th>Defects</th><th>Qty</th><th>Remarks</th></tr>";
	sno = 0;
	totqty = 0;
	for each  rec in gethour
	{
		//info gethour +"qc";
		hqrsub = Hourly_Quality_Subform[Exists_ID == rec.ID];
		//&& Defect_Type != "No Defects"
		for each  fullsub in hqrsub
		{
			//	info "for";
			totqty = totqty + ifnull(fullsub.Actual_Qty,0);
			hqccc = Hourly_Quality_Report[ID == fullsub.Exists_ID];
			sno = sno + 1;
			if(fullsub.Defect_Type == "Rejected")
			{
				//	info "if";
				history = history + "<tr style ='color:	 #ff6666;'><td>" + ifnull(sno,"") + "</td> <td>" + ifnull(hqccc.Actual_Date,"") + "</td><td>" + ifnull(fullsub.From_Time.toString(),"") + "</td><td>" + ifnull(fullsub.To_Time.toString(),"") + "</td><td>" + ifnull(fullsub.Defect_Type,"") + "</td><td>" + ifnull(fullsub.Department.Department,"") + "</td><td>" + ifnull(fullsub.Defects.Defects,"") + "</td> <td>" + ifnull(fullsub.Actual_Qty,0) + "</td> <td>" + ifnull(fullsub.Remarks,"") + "</td></tr>";
			}
			else if(fullsub.Defect_Type == "Rework" || fullsub.Defect_Type == "COD" || fullsub.Defect_Type == "No Defects")
			{
				//info "else";
				history = history + "<tr><td>" + ifnull(sno,"") + "</td> <td>" + ifnull(hqccc.Actual_Date,"") + "</td><td>" + ifnull(fullsub.From_Time.toString(),"") + "</td><td>" + ifnull(fullsub.To_Time.toString(),"") + "</td><td>" + ifnull(fullsub.Defect_Type,"") + "</td><td>" + ifnull(fullsub.Department.Department,"") + "</td><td>" + ifnull(fullsub.Defects.Defects,"") + "</td> <td>" + ifnull(fullsub.Actual_Qty,0) + "</td> <td>" + ifnull(fullsub.Remarks,"") + "</td></tr>";
			}
			input.plain1 = history;
		}
	}
}
input.Actual_Qty_sofar = totqty;
if(input.Auto_Approval == "Yes")
{
	input.Approval = "Approved";
	//input.WO_Status = "Open";
	input.WO_Status = "WO Created";
	input.Material_Details.Work_Order_Status = "WO Created";
	if(input.Form_Mode == "Direct WO")
	{
		// 		input.Approval = "Approved";
		// 		input.WO_Status = "WO Created";
		// 		input.Material_Details.Work_Order_Status = "WO Created";
		input.Approval = "Pending";
		input.WO_Status = "Waiting for approval";
		for each  stat in input.Material_Details
		{
			stat.Work_Order_Status="Waiting for approval";
		}
	}
	if(input.Form_Mode == "Draft WO-Regular Wheels")
	{
		input.Approval = "Approved";
		//input.WO_Status = "Open";
		input.WO_Status = "WO Created";
		input.Material_Details.Work_Order_Status = "WO Created";
		//---------After creating WO, status Change in Draft WO-Regular Wheels Form 
		DFWO = Create_WO_for_Regular_Wheels[ID == input.Draft_Work_Order_ID];
		DFWOSUB = DF_Work_Order_Subform[Draft_Work_Order_RecID == DFWO.ID];
		DFWO.WO_Status="WO Created";
		DFWOSUB.Status="Draft WO Created";
		// 		input.Material_Details.Work_Order_Status = "WO Created";
		for each  darftstat in input.Material_Details
		{
			darftstat.Work_Order_Status="WO Created";
		}
	}
	fet_so = Sales_Order[ID == input.Sales_Order_Nos];
	for each  var in input.Material_Details
	{
		sosub = Sale_Order_Subform[ID == var.Sale_Order_Subform_ID];
		wosub = Work_Order_Subform[Sale_Order_Subform_ID == sosub.ID].sum(WO_Qty);
		//----------Block the Qty in Inventory while creating WO-------------
		if(input.Form_Mode == "WO against SO")
		{
			inventory = Inventory[Part_No == sosub.Part_No] sort by Available_Qty desc;
			//------------Changing inventory as Virtual stock ----------------------
			//inventory = Virtual_Stock[Part_No == sosub.Part_No] sort by Available_Qty desc;
			WosubID = Work_Order_Subform[Part_No == var.Part_No];
			// WO_RECID = WosubID.Work_Order_Exis_ID;
			//var.Block_Qty=var.WO_Qty;
			blkqty = if(var.WO_Qty >= var.Stock_Qty,var.Stock_Qty,var.WO_Qty);
			blkqty = if(var.Stock_Qty >= var.SO_Quantity,var.Block_Qty,blkqty);
			var.Block_Qty=blkqty;
			sosub.WO_Blk_Qty=blkqty;
			if(inventory.count() > 0)
			{
				balqty = 0;
				i = 1;
				if(var.Block_Qty != null)
				{
					for each  inven in inventory
					{
						if(blkqty > inven.Available_Qty)
						{
							inven.Block_Qty=ifnull(inven.Available_Qty,0) + ifnull(inven.Block_Qty,0);
							blkqty = blkqty - ifnull(inven.Available_Qty,0);
							inven.Available_Qty=0.00;
							// inventory.Total_Qty = 0.00;
						}
						else if(blkqty <= inven.Available_Qty)
						{
							// inven.Total_Qty = ifnull(inven.Total_Qty,0)  - ifnull(var.Block_Qty ,0);
							inven.Available_Qty=ifnull(inven.Available_Qty,0) - ifnull(blkqty,0);
							inven.Block_Qty=ifnull(blkqty,0) + ifnull(inven.Block_Qty,0);
							blkqty = 0.00;
						}
						//----------New Code checking for block & wo are same eg 50=50 & stock 100 is > 50--------
						// 						else if ( var.WO_Qty == var.Block_Qty && var.Stock_Qty >= var.Block_Qty ) 
						//                         {
						// 						inven.Available_Qty=ifnull(inven.Available_Qty,0) - ifnull(blkqty,0);
						// 							inven.Block_Qty=ifnull(blkqty,0) + ifnull(inven.Block_Qty,0);
						// 							blkqty = 0.00;
						//                         }
						//------------------------------------------------------------------------------
						/* 						if(balqty > 0 && i > 1)
						{
							//info "balance qty is more than zero";
							//Balance Qty is less 
							if(balqty <= inven.Available_Qty)
							{
								//info "balance qty is less than total qty";
								//inven.Total_Qty=ifnull(inven.Total_Qty,0.0) - ifnull(balqty,0.0);
								inven.Available_Qty=ifnull(inven.Available_Qty,0.0) - ifnull(balqty,0.0);
								balqty = 0;
							}
							//----Balance Qty is More------
							else if(balqty >= inven.Available_Qty)
							{
								//info "balance qty is greater than total qty";
								balqty = ifnull(balqty,0.0) - ifnull(inven.Available_Qty,0.0);
								//inven.Total_Qty=0;
								inven.Available_Qty=0;
							}
						} */
						if(blkqty == 0)
						{
							//info "before break";
							break;
						}
						//i = i + 1;
					}
					insblock = insert into Block_Quantity
					[
						Part_No=var.Part_No
						Part_Name=var.Part_Description
						Form_Type=input.Form_Mode
						Block_Qty=var.Block_Qty
						WO_No=input.ID
						WO_RECID=input.ID
						Status="Blocked from WO"
						Added_User=zoho.loginuser
					];
					insblock = insert into FG_Block_Stock1
					[
						Part_No=var.Part_No
						Part_Name=var.Part_Description
						Form_Type=input.Form_Mode
						Block_Qty=var.Block_Qty
						WO_No=input.ID
						WO_RECID=input.ID
						Status="Blocked from WO"
						Added_User=zoho.loginuser
					];
				}
			}
		}
		//______________________________________________________________________________________
		if(sosub.count() > 0 && fet_so.count() > 0)
		{
			/* 			if(sosub.Qty != wosub && input.Form_Mode == "WO against SO")
			{
				sosub.Status="WO Partially Completed";
				input.WO_Status = "WO Partially Completed";
				fet_so.SO_Status="WO Partially Completed";
				fet_so.CWPL_SO_Status="WO Partially Completed";
			} */
			// 			if( input.Form_Mode == "WO against SO")
			// 			{
			// 				sosub.Status="Active";
			// 				//input.WO_Status = "WO Partially Completed";
			// 				fet_so.SO_Status="Open";
			// 				fet_so.CWPL_SO_Status="Active";
			// 			} 
			salsub = Sale_Order_Subform[Sales_Order_Exis_ID == fet_so.ID && ID != var.Sale_Order_Subform_ID && Status == "Active"];
			if(input.Form_Mode == "WO against SO")
			{
				sosub.Status="WO Created";
				input.WO_Status = "WO Created";
				for each  wotstat in input.Material_Details
				{
					wotstat.Work_Order_Status="WO Created";
					//---------If stock > So & Wo is 0 , WO is closed ,then Wo status is WO Closed
					if(wotstat.Stock_Qty >= wotstat.SO_Quantity && wotstat.WO_Qty == 0)
					{
						input.WO_Status = "WO Closed";
						wotstat.Work_Order_Status="WO Closed";
						sosub.Status="WO Closed";
					}
					//------------------------------------------------
				}
				//----------------------------------------------------
				sosub.Work_Order_RECID=input.ID;
				sosub.Work_Order_Subform_ID=WosubID.ID;
				sosub.Wo_Delivery_Date_in_sosub=input.Expected_Delivery_Date;
				sosub.WO_Status_in_sosub=input.WO_Status;
				//------------------------------------------------
				if(salsub.count() == 0)
				{
					fet_so.SO_Status="WO Created";
					fet_so.CWPL_SO_Status="WO Created";
				}
				//fet_so.SO_Status="WO Created";
				//fet_so.CWPL_SO_Status="WO Created";
				/* 				for each  updstatus in Work_Order[Sales_Order_Nos == input.Sales_Order_Nos]
				{
					updstatus.WO_Status="WO Created";
				} */
			}
		}
	}
	//-----------------Direct WO , Block QTY Calculation-----------------
	/* 	for each  var1 in input.Material_Details
	{
		var1.Block_Qty=var1.WO_Qty;
		if(var1.Block_Qty != null)
		{
			wo = Work_Order[ID == input.ID];
			wosub = Work_Order_Subform[Work_Order_Exis_ID = wo.ID];
			if(input.Form_Mode == "Direct WO")
			{
				//info input.Form_Mode;
				//fet_inventory = Inventory[Part_No == var1.Part_No] sort by Available_Qty desc;
				//------------Changing inventory as Virtual stock ----------------------
				fet_inventory = Virtual_Stock[Part_No == var1.Part_No] sort by Available_Qty desc;
				WOSUB = Work_Order_Subform[Part_No == var1.Part_No];
				if(fet_inventory.count() > 0)
				{
					balqty = 0;
					i = 1;
					info fet_inventory.count();
					//info var1.Block_Qty + "block qty";
					for each  inv1 in fet_inventory
					{
						//info "inven for";
						//info var1.WO_Qty ;
						//info inv1.Available_Qty; 
						if(var1.WO_Qty > inv1.Available_Qty)
						{
							//info " WO > INV";
							inv1.Block_Qty=ifnull(inv1.Available_Qty,0);
							inv1.Available_Qty=0.00;
						}
						else if(var1.WO_Qty <= inv1.Available_Qty)
						{
							//info " WO <= INV";
							//avail = ifnull(inv1.Available_Qty,0) - ifnull(var1.Block_Qty,0);
							//info avail;
							inv1.Available_Qty=ifnull(inv1.Available_Qty,0) - ifnull(var1.Block_Qty,0);
							inv1.Block_Qty=ifnull(var1.Block_Qty,0);
						}
						//for first time it should not get inside the loop 
						if(balqty > 0 && i > 1)
						{
							//info "balance qty is more than zero";
							//Balance Qty is less 
							if(balqty <= inv1.Total_Qty)
							{
								//info "balance qty is less than total qty";
								inv1.Total_Qty=ifnull(inv1.Total_Qty,0.0) - ifnull(balqty,0.0);
								inv1.Available_Qty=ifnull(inv1.Available_Qty,0.0) - ifnull(balqty,0.0);
								balqty = 0;
							}
							//----Balance Qty is More------
							else if(balqty >= inv1.Total_Qty)
							{
								//info "balance qty is greater than total qty";
								balqty = ifnull(balqty,0.0) - ifnull(inv1.Total_Qty,0.0);
								inv1.Total_Qty=0;
								inv1.Available_Qty=0;
							}
						}
						if(balqty == 0)
						{
							//info "before break";
							break;
						}
						i = i + 1;
					}
				}
			}
		}
	} */
	//----------Draft WO- Reguakr Wheels Block QTY Calculation------------------
	/* 		for each  var2 in input.Material_Details
		{
			var2.Block_Qty=var2.WO_Qty;
			if(var2.Block_Qty != null)
			{
				DFWO = Create_WO_for_Regular_Wheels[ID == input.Draft_Work_Order_ID];
				DFWOSUB = DF_Work_Order_Subform[Draft_Work_Order_RecID == DFWO.ID];
				if(input.Form_Mode == "Draft WO-Regular Wheels")
				{
					//info input.Form_Mode;
					//get_inventory = Inventory[Part_No == var2.Part_No] sort by Available_Qty desc;
					//------------Changing inventory as Virtual stock ----------------------
					get_inventory = Virtual_Stock[Part_No == var2.Part_No] sort by Available_Qty desc;
					dfsub = DF_Work_Order_Subform[Part_No == var2.Part_No];
					if(get_inventory.count() > 0)
					{
						balqty = 0;
						i = 1;
						//info get_inventory.count();
						//info var2.Block_Qty + "block qty";
						for each  inv in get_inventory
						{
							//info "inven for";
							if(var2.WO_Qty > inv.Available_Qty)
							{
								inv.Block_Qty=ifnull(inv.Available_Qty,0);
								inv.Available_Qty=0.00;
							}
							else if(var2.WO_Qty < inv.Available_Qty)
							{
								inv.Available_Qty=ifnull(inv.Available_Qty,0) - ifnull(var2.Block_Qty,0);
								inv.Block_Qty=ifnull(var2.Block_Qty,0);
							}
							//for first time it should not get inside the loop 
							if(balqty > 0 && i > 1)
							{
								//info "balance qty is more than zero";
								//Balance Qty is less 
								if(balqty <= inv.Total_Qty)
								{
									//info "balance qty is less than total qty";
									inv.Total_Qty=ifnull(inv.Total_Qty,0.0) - ifnull(balqty,0.0);
									inv.Available_Qty=ifnull(inv.Available_Qty,0.0) - ifnull(balqty,0.0);
									balqty = 0;
								}
								//Balance Qty is More
								else if(balqty >= inv.Total_Qty)
								{
									//info "balance qty is greater than total qty";
									balqty = ifnull(balqty,0.0) - ifnull(inv.Total_Qty,0.0);
									inv.Total_Qty=0;
									inv.Available_Qty=0;
								}
							}
							if(balqty == 0)
							{
								//info "before break";
								break;
							}
							i = i + 1;
						}
					}
				}
			}
		} */
	//------------end of If statement-------------
}
else if(input.Auto_Approval == "No")
{
	input.Approval = "Pending";
	input.WO_Status = "Waiting for approval";
	// 	if(input.Form_Mode == "Direct WO")
	// 	{
	// 		input.Approval = "Pending";
	// 		//input.WO_Status = "Waiting for approval";
	// 	}
	fet_so = Sales_Order[ID == input.Sales_Order_Nos];
	for each  var in input.Material_Details
	{
		sosub = Sale_Order_Subform[ID == var.Sale_Order_Subform_ID];
		wosub = Work_Order_Subform[Sale_Order_Subform_ID == sosub.ID].sum(WO_Qty);
		//wo = Work_Order[Sales_Order_Nos == input.Sales_Order_Nos];
		//info "sosub" + sosub.Qty;
		//info "wosub" + wosub;
		if(sosub.count() > 0 && fet_so.count() > 0)
		{
			/* 			if(sosub.Qty != wosub && input.Form_Mode == "WO against SO")
			{
				sosub.Status="WO Partially Completed";
				input.WO_Status = "Waiting for approval";
				fet_so.SO_Status="WO Partially Completed";
				fet_so.CWPL_SO_Status="WO Partially Completed";
			} */
			salsub = Sale_Order_Subform[Sales_Order_Exis_ID == fet_so.ID && ID != var.Sale_Order_Subform_ID && Status == "	Active"];
			if(input.Form_Mode == "WO against SO")
			{
				sosub.Status="WO Created";
				//input.WO_Status = "Waiting for approval";
				if(salsub.count() == 0)
				{
					fet_so.SO_Status="WO Created";
					fet_so.CWPL_SO_Status="WO Created";
				}
				for each  updstatus in Work_Order[Sales_Order_Nos == input.Sales_Order_Nos]
				{
					updstatus.WO_Status="Waiting for approval";
				}
			}
		}
	}
}
var = 0;
if(isBlank(input.Work_Order_No.trim()))
{
	var = 1;
	input.Work_Order_No = thisapp.Common.Number_Function_New("Work Order");
}
if(var == 1 && input.Form_Mode == "WO against SO")
{
	openUrl("#Form:Alert_Messages?Status=" + "WO" + "&Value=" + input.Work_Order_No + "&zc_LoadIn=dialog","same window");
}
else if(input.Form_Mode == "Direct WO")
{
	openUrl("#Form:Alert_Messages?Status=" + "WOAlert" + "&Value=" + input.Work_Order_No + "&zc_LoadIn=dialog","same window");
}
else if(input.Form_Mode == "Draft WO-Regular Wheels")
{
	openUrl("#Form:Alert_Messages?Status=" + "DWO" + "&Value=" + input.Work_Order_No + "&zc_LoadIn=dialog","same window");
}
disable Part_No;
disable Part_Name;
disable WO_Qty;
disable Packing_Std;
hide Packing_Std;
fet_pref = Preferences[Module_Name = "Work Order"];
input.Auto_Approval = fet_pref.Auto_Approval;
input.Virtual_Stock_Enable = fet_pref.Virtual_Stock;
//info input.Form_Mode;
input.Created_By = Employee_Details[Employee_Email == zoho.loginuserid].ID;
if(input.Sale_Order_Subform_ID != null || input.Sale_Order_Subform_ID.size() > 0 || input.Sale_Order_Subform_ID.len() > 0)
{
	// 	fetch_sosub = Sale_Order_Subform[ID == input.Sales_Order_Nos];
	// 	fetch_so = Sales_Order[ID == fetch_sosub.Sales_Order_Exis_ID];
	// 	Sales_Order_Nos = fetch_so.ID;
	// 	info fetch_so;
	sno = 0;
	for each  a1 in input.Sale_Order_Subform_ID
	{
		sosub = Sale_Order_Subform[ID == a1.ID];
		fetch_so = Sales_Order[ID == a1.Sales_Order_Exis_ID];
		inven = Inventory[Part_No == sosub.Part_No].sum(Available_Qty);
		fet_inven = Inventory[Part_No == sosub.Part_No].sum(Total_Qty);
		WO = Work_Order[Draft_Work_Order_ID == input.ID];
		Wosub = Work_Order_Subform[Part_No == a1.Part_No && Work_Order_Status != "WO Closed" && Work_Order_Status != "WO Cancelled" && Work_Order_Status != "Cancelled"].sum(WO_Qty);
		// 		if(a1.WO_Qty > = a1.Stock_Qty) 
		//     {
		// 		alert "Stock is already Available, Check and Proceed";
		//     }
		//----------- fet_mat = MPS_Master [Part_No == row.Part_No];
		//input.Front1 = Materials[ID == sosub.Part_No].Front;
		//input.Regular1 = Materials[ID == sosub.Part_No].Regular;
		//input.CED_Product1 = Materials[ID == sosub.Part_No].CED_Product;
		//input.Batch_Size1 = Materials[ID == sosub.Part_No].Batch_Size;
		row1 = Work_Order.Material_Details();
		row1.Stock_Qty=inven;
		row1.Total_Stock=fet_inven;
		row1.WO_Pipeline=Wosub;
		row1.SO_Quantity=a1.Qty;
		row1.Part_No=a1.Part_No;
		sno = sno + 1;
		row1.S_No=sno;
		row1.Sales_Order_No=fetch_so.ID;
		row1.Part_Description=a1.Part_Description;
		row1.UOM=a1.UoM;
		input.Category = Materials[ID == sosub.Part_No].Category;
		input.Sub_Category = Materials[ID == sosub.Part_No].Sub_Category;
		input.Part_No = a1.Part_No;
		input.Part_Name = a1.Part_Description;
		input.Packing_Std = ifnull(sosub.Packing_Std,null);
		wosub = Work_Order_Subform[Sale_Order_Subform_ID == sosub.ID && Part_No == a1.Part_No].sum(WO_Qty);
		row1.WO_Sofar=wosub;
		woqty = a1.Qty - wosub;
		if(row1.WO_Sofar > 0)
		{
			row1.Balance=woqty;
		}
		else
		{
			row1.Balance=0.00;
		}
		//row1.Balance=ifnull(row1.Quantity,0) - ifnull(row1.WO_Sofar,0) + ifnull(row1.WO_Qty,0);
		//row1.WO_Qty=woqty;
		row1.Buffer_Percentage=0.0;
		//row1.Required_Qty=ifnull(row1.SO_Quantity,0) - ifnull(row1.WO_Pipeline,0) - ifnull(row1.Stock_Qty,0);
		row1.Required_Qty=ifnull(row1.SO_Quantity,0) - ifnull(row1.Stock_Qty,0);
		if(row1.Stock_Qty >= row1.SO_Quantity)
		{
			// info"Stk > so";			
			row1.Block_Qty=ifnull(row1.SO_Quantity,0);
		}
		if(row1.Stock_Qty <= row1.SO_Quantity)
		{
			//info"Stk < so ";
			row1.Block_Qty=ifnull(row1.Stock_Qty,0);
		}
		if(row1.Stock_Qty <= row1.SO_Quantity && row1.Stock_Qty == 0)
		{
			//info"stk < so & stk =0";
			row1.Block_Qty=ifnull(row1.Stock_Qty,0);
		}
		// 		if(row1.Required_Qty > 0 && row1.Stock_Qty != 0)
		// 		{
		// 			info "req is > than 0";
		// 			row1.WO_Qty=row1.Required_Qty;
		// 			row1.Block_Qty=row1.WO_Qty;
		// 		}
		if(row1.Required_Qty < 0)
		{
			//	info "req is 0";
			row1.Required_Qty=0.0;
			row1.WO_Qty=0.0;
			input.WO_Qty = 0.0;
			//row1.Block_Qty=ifnull(row1.SO_Quantity,0) - ifnull(row1.Stock_Qty,0);
		}
		else
		{
			//	info " req > 0";
			//row1.WO_Qty=woqty;
			row1.WO_Qty=row1.Required_Qty;
			input.WO_Qty = row1.Required_Qty;
			//row1.Block_Qty=row1.WO_Qty;
		}
		//if(row1.Required_Qty > 0 && row1.Stock_Qty != 0)
		row1.WO_Qty_with_buffer=(ifnull(row1.WO_Qty,0.0) + ifnull(row1.WO_Qty,0.0) * ifnull(row1.Buffer_Percentage,0.0) / 100).ceil();
		//row1.To_be_Blocked=a1.Blocke_Qty;
		inventory = Inventory[Part_No == sosub.Part_No];
		//row1.Block_Qty=row1.WO_Qty;
		row1.Specification=a1.Remarks_multiline;
		row1.Sale_Order_Subform_ID=sosub.ID;
		row1.Work_Order_Exis_ID=input.ID;
		input.Material_Details.insert(row1);
	}
	if(fetch_so.count() > 0)
	{
		input.Customer_Name = ifnull(fetch_so.Customer_Name,"");
		disable Customer_Name;
		input.Expected_Delivery_Date = ifnull(fetch_so.Expected_Shipment_Date,"");
		/* 		if(fetch_so.Expected_Shipment_Date.getDay() >= 20)
		{
			input.Expected_Delivery_Date = ifnull(fetch_so.Expected_Shipment_Date,"");
		}
		else if(fetch_so.Expected_Shipment_Date.getDay() <= 20)
		{
			input.Expected_Delivery_Date = ifnull(fetch_so.Sale_Order_Date.addDay(20),"");
		}
		//info "salesorder " + fetch_so.Expected_Shipment_Date;
		// 		if(fetch_so.Expected_Shipment_Date >= zoho.currentdate && fetch_so.Expected_Shipment_Date != null)
		// 		{
		//input.Expected_Delivery_Date = ifnull(fetch_so.Expected_Shipment_Date,"");
		//} */
		input.Sales_Order_Nos = fetch_so.ID;
	}
}
//----------------------------------DRAFT WO ---------------------------------------------
//info Draft_Work_Order_ID ;
//info Form_Mode;
if(Draft_Work_Order_ID != null && input.Form_Mode == "Draft WO-Regular Wheels")
{
	//info "IF";
	hide Material_Details.SO_Quantity;
	DFWO = Create_WO_for_Regular_Wheels[ID == input.Draft_Work_Order_ID];
	DFWOSUB = DF_Work_Order_Subform[Draft_Work_Order_RecID == DFWO.ID];
	// 	childwo = Regular_Child_Item_Parts[ID == input.Draft_Work_Order_ID];
	//WO = Work_Order[Draft_Work_Order_ID == input.ID];
	//Wosub = Work_Order_Subform[Work_Order_Exis_ID == WO.ID];
	//inven1 = Inventory[Part_No == DFWOSUB.Part_No].sum(Available_Qty);
	//------------Changing inventory as Virtual stock ----------------------
	inven1 = Inventory[Part_No == DFWOSUB.Part_No].sum(Available_Qty);
	input.Draft_WO_Date = DFWO.Draft_WO_Date;
	input.Draft_Work_Order_ID = DFWO.ID;
	info input.Draft_Work_Order_ID + "after";
	input.Created_By = DFWO.Created_By;
	input.Work_Order_Date = zoho.currentdate;
	input.WO_Status = "Draft WO";
	input.Production_Start_Date = DFWO.Production_Start_Date;
	input.Expected_Delivery_Date = DFWO.Delivery_Date;
	// 	if(DFWO.Delivery_Date != null && DFWO.Delivery_Date >= zoho.currentdate)
	// 	{
	// 		//info "if";
	// 		input.Expected_Delivery_Date = ifnull(DFWO.Delivery_Date,"");
	// 	}
	// 	else
	// 	{
	// 		input.Expected_Delivery_Date = zoho.currentdate;
	// 	}
	input.Production_End_Date = DFWO.Production_End_Date;
	input.Approval = DFWO.Approval;
	input.CED_Product1 = DFWO.Category;
	input.Front1 = DFWO.Front1;
	input.Regular1 = DFWO.Regular1;
	input.Batch_Size1 = DFWO.BATCH_SIZE1;
	input.Category = Materials[ID == DFWOSUB.Part_No].Category;
	input.Sub_Category = Materials[ID == DFWOSUB.Part_No].Sub_Category;
	sno = 0;
	for each  var in DFWO.Material_Details_SF
	{
		//info"FOR";
		WO = Work_Order[Draft_Work_Order_ID == input.ID];
		Wosub = Work_Order_Subform[Part_No == var.Part_No && Work_Order_Status != "WO Closed" && Work_Order_Status != "WO Cancelled" && Work_Order_Status != "Cancelled" && Work_Order_Status != "WO Reverted"].sum(WO_Qty);
		inven2 = Inventory[Part_No == var.Part_No].sum(Available_Qty);
		fet_inv2 = Inventory[Part_No == var.Part_No].sum(Total_Qty);
		reg_master = Regular_Item_Master[Part_No == var.Part_No];
		childwo = Regular_Child_Item_Parts[Part_No == var.Part_No];
		row2 = Work_Order.Material_Details();
		row2.Stock_Qty=inven2;
		row2.Total_Stock=fet_inv2;
		row2.WO_Pipeline=Wosub;
		sno = sno + 1;
		row2.S_No=sno;
		row2.Part_No=var.Part_No;
		row2.Part_Description=var.Part_Description;
		input.Part_No = var.Part_No;
		input.Part_Name = var.Part_Description;
		row2.UOM=var.UOM;
		row2.SO_Quantity=0;
		// 		row2.WO_Qty=var.WO_Qty;
		// 		row2.Block_Qty=row2.WO_Qty;
		row2.Buffer_Percentage=0.0;
		//row2.Required_Qty=ifnull(row2.SO_Quantity,0) - ifnull(row2.WO_Pipeline,0) - ifnull(row2.Stock_Qty,0);
		row2.Required_Qty=ifnull(row2.SO_Quantity,0) - ifnull(row2.Stock_Qty,0);
		if(row2.Required_Qty < 0)
		{
			row2.Required_Qty=0.0;
			row2.WO_Qty=0.0;
			input.WO_Qty = 0.0;
		}
		else
		{
			//row2.WO_Qty=var.WO_Qty;
			row2.WO_Qty=row2.Required_Qty;
			input.WO_Qty = row2.Required_Qty;
			//row2.Block_Qty=row2.WO_Qty;
		}
		row2.WO_Qty_with_buffer=(ifnull(row2.WO_Qty,0.0) + ifnull(row2.WO_Qty,0.0) * ifnull(row2.Buffer_Percentage,0.0) / 100).ceil();
		// 		inv_subform = Invoice_Subform[Part_No == var.Part_No && Added_Time >= "01-Jan-2023" && Added_Time <= "31-Dec-2023"].sum(Qty);
		//row2.Six_Month_Sale = ifnull(thisapp.Invoice.Calculation_last_6_months_invoiceQty(row2.Part_No)," ");
		//_________Calculating Six month sales Qty in invoice________________
		//info curdate;
		//curdate = "17-Jan-2024";
		curdate = zoho.currentdate;
		startmonth = curdate.eomonth(-6);
		//info startmonth;
		startdate = startmonth.toStartOfMonth();
		curstartdate = curdate.toStartOfMonth();
		enddate = curstartdate.subday(1);
		startdate = startdate + " 00:00:00";
		enddate = enddate + " 23:59:59";
		//info "startdate " + startdate;
		//info "enddate " + enddate;
		inv_qty = Invoice_Subform[Part_No == row2.Part_No && Added_Time >= startdate && Added_Time <= enddate].sum(Qty);
		//info inv_qty;
		average_sale = ifnull(inv_qty / 6,0.00);
		row2.Six_Month_Sale=average_sale;
		//___________________________________________________________
		row2.Min_Stock=reg_master.Min_Stock;
		row2.Batch_Size=reg_master.Batch_Size;
		row2.Specification=var.Specification;
		input.Six_Month_Avg_Sale = average_sale;
		// 		input.Minimum_Stock = reg_master.Min_Stock;
		// 				input.Batch_Size = reg_master.Batch_Size;
		if(reg_master.Min_Stock != null)
		{
			//info "reg";
			input.Minimum_Stock = reg_master.Min_Stock;
			input.Batch_Size = reg_master.Batch_Size;
		}
		else
		{
			//info"else";
			//info childwo.Minimum_Qty +"m";
			//info childwo.Batch_Size +"b";
			input.Minimum_Stock = childwo.Minimum_Qty;
			input.Batch_Size = childwo.Batch_Size;
		}
		input.Material_Details.insert(row2);
	}
	//--------------------------------------
	disable Six_Month_Avg_Sale;
	disable Minimum_Stock;
	disable Batch_Size;
	hide Material_Details.Six_Month_Sale;
	hide Material_Details.Batch_Size;
	hide Material_Details.Min_Stock;
	hide Draft_WO_Date;
	disable Material_Details.Min_Stock;
	disable Material_Details.Six_Month_Sale;
	disable Material_Details.Batch_Size;
	disable Schedule_WO;
	hide Sales_Order_Nos;
	hide Customer_Name;
	hide Material_Details.WO_Sofar;
	hide Material_Details.Balance;
	hide Material_Details.Buffer_Percentage;
	hide Material_Details.WO_Qty_with_buffer;
	//hide Material_Details.SO_Quantity;
	disable Material_Details.WO_Pipeline;
	disable Material_Details.Stock_Qty;
	//-------------------
	disable Created_By;
	disable Sales_Order_Nos;
	disable Customer_Name;
	disable Expected_Delivery_Date;
	disable Warehouse;
	hide Material_Details.To_be_Blocked;
	disable Material_Details.S_No;
	hide Material_Details.MRP_ID;
	disable Material_Details.WO_Qty_with_buffer;
	disable Material_Details.To_be_Blocked;
	disable Material_Details.Part_Description;
	disable Material_Details.Part_No;
	disable Material_Details.SO_Quantity;
	disable Material_Details.Buffer_Percentage;
	disable Material_Details.WO_Sofar;
	disable Material_Details.Balance;
	disable Material_Details.UOM;
	disable Material_Details.Required_Qty;
	hide WO_Status;
	hide Approval;
	hide Approval;
	//hide Status;
	hide Schedule_WO;
	hide Production_Start_Date;
	hide Production_End_Date;
	hide Delivery_Address;
	hide Sale_Order_Subform_ID;
	hide Material_Details.Stock_FG_Qty;
	hide Material_Details.Stock_SFG_Qty;
	hide Material_Details.MRP_Qty;
	hide Material_Details.To_be_Blocked;
	hide Material_Details.Work_Order_Status;
	hide Material_Details.Scheduled_so_far;
	hide Material_Details.Sale_Order_Subform_ID;
	hide Material_Details.Balance_Qty;
	hide Form_Mode;
	hide Draft_Work_Order_ID;
	disable Front1;
	disable Regular1;
	//disable Batch_Size1;
	disable CED_Product1;
	disable Material_Details.S_No;
	disable Material_Details.Block_Qty;
	disable Category;
	disable Sub_Category;
	hide Category;
	hide Sub_Category;
	hide Material_Details.Block_Qty;
}
//-------------------------------------------
// 		if(row1.Stock_Qty > row1.SO_Quantity && row1.Stock_Qty > row1.WO_Pipeline)
// 		{
// 			reqqty = ifnull(row1.Stock_Qty,0) - ifnull(row1.WO_Pipeline,0) - ifnull(row1.SO_Quantity,0);
// 			info reqqty + " Stock > So & Stock > wopipe";
// 			row1.Required_Qty=reqqty;
// 		}
// 		else if(row1.SO_Quantity > row1.WO_Pipeline && row1.SO_Quantity > row1.Stock_Qty)
// 		{
// 			reqqty2 = ifnull(a1.Qty,0) - ifnull(Wosub,0) - ifnull(inven,0);
// 			info reqqty2 + " So > wopipe & So > stock";
// 			row1.Required_Qty=reqqty2;
// 		}
// 		else if(row1.WO_Pipeline > row1.SO_Quantity && row1.WO_Pipeline > row1.Stock_Qty)
// 		{
// 			reqqty3 = ifnull(Wosub,0) - ifnull(a1.Qty,0) - ifnull(inven,0);
// 			info reqqty3 + " wopipe > So & wopipe > stock";
// 			row1.Required_Qty=reqqty3;
// 		}
// 		else if(row1.WO_Pipeline > row1.WO_Qty || row1.WO_Pipeline > row1.Stock_Qty)
// 		{
// 			reqqty4 = ifnull(row1.WO_Pipeline,0) - ifnull(row1.WO_Qty,0) - ifnull(row1.Stock_Qty,0);
// 			info reqqty4 + " Wopipe > Wo (Or) wopipe > stock";
// 			row1.Required_Qty=reqqty4;
// 		}
// 		else if(row1.WO_Qty > row1.WO_Pipeline && row1.WO_Pipeline > row1.Stock_Qty)
// 		{
// 			reqqty5 = ifnull(row1.WO_Qty,0) - ifnull(row1.WO_Pipeline,0) - ifnull(row1.Stock_Qty,0);
// 			info reqqty5 + "  Wo > wopipe > stock";
// 			row1.Required_Qty=reqqty5;
// 		}
// ----- To Remove the Negative values in Requires Qty -----
// 		reqqty = ifnull(a1.Qty,0) - ifnull(Wosub,0) - ifnull(inven,0);
// 		Req = reqqty.toString();
// 		if(Req.contains("-"))
// 		{
// 			row1.Required_Qty=Req.removeFirstOccurence("-").toLong();
// 		}
// 		else
// 		{
// 			row1.Required_Qty=reqqty;
// 		}
//-------------------------------------
IF(
  CONTAINS({!$Flow.FaultMessage}, "REQUIRED_FIELD_MISSING"),
  MID(
    {!$Flow.FaultMessage},
    FIND("REQUIRED_FIELD_MISSING: ", {!$Flow.FaultMessage}) + LEN("REQUIRED_FIELD_MISSING: "),
    FIND(". You can look up ExceptionCode values in the", {!$Flow.FaultMessage}) - FIND("REQUIRED_FIELD_MISSING: ", {!$Flow.FaultMessage}) - LEN("REQUIRED_FIELD_MISSING: ")
  ),
  IF(
    CONTAINS({!$Flow.FaultMessage}, "FIELD_CUSTOM_VALIDATION_EXCEPTION"),
    MID(
      {!$Flow.FaultMessage},
      FIND("FIELD_CUSTOM_VALIDATION_EXCEPTION: ", {!$Flow.FaultMessage}) + LEN("FIELD_CUSTOM_VALIDATION_EXCEPTION: "),
      FIND(". You can look up ExceptionCode values in the", {!$Flow.FaultMessage}) - FIND("FIELD_CUSTOM_VALIDATION_EXCEPTION: ", {!$Flow.FaultMessage}) - LEN("FIELD_CUSTOM_VALIDATION_EXCEPTION: ")
    ),
    IF(
      CONTAINS({!$Flow.FaultMessage}, "_EXCEPTION"),
      MID(
        {!$Flow.FaultMessage},
        FIND("_EXCEPTION: ", {!$Flow.FaultMessage}) + LEN("_EXCEPTION: "),
        FIND(". You can look up ExceptionCode values in the", {!$Flow.FaultMessage}) - FIND("_EXCEPTION: ", {!$Flow.FaultMessage}) - LEN("_EXCEPTION: ")
      ),
      {!$Flow.FaultMessage}
    )
  )
)



/*

For "REQUIRED_FIELD_MISSING" error:

MID({!$Flow.FaultMessage}, FIND('REQUIRED_FIELD_MISSING: ', {!$Flow.FaultMessage}) + LEN('REQUIRED_FIELD_MISSING: '), FIND('. You can look up ExceptionCode values in the', {!$Flow.FaultMessage}) - FIND('REQUIRED_FIELD_MISSING: ', {!$Flow.FaultMessage}) - LEN('REQUIRED_FIELD_MISSING: '))


For "_EXCEPTION" endigns (i.e, "FIELD_CUSTOM_VALIDATION_EXCEPTION"):

MID({!$Flow.FaultMessage}, FIND('_EXCEPTION: ', {!$Flow.FaultMessage}) + LEN('_EXCEPTION: '), FIND('. You can look up ExceptionCode values in the', {!$Flow.FaultMessage}) - FIND('_EXCEPTION: ', {!$Flow.FaultMessage}) - LEN('_EXCEPTION: '))

// Note there are many other exceptions that don't fall into these 2 types. Check the developer guide and make sure the full error is displayed of not found.

// The "SOAP API Developer Guide" is a hyperlink - that's why it's not part of the formula


*/
 &__content{
    width: 100%;
    display: flex;
   
    margin-right: auto;
    margin-left: auto;
  
    @media (min-width: 576px) {
      max-width: 540px;
    }
  
    @media (min-width: 768px) {
      max-width: 720px;
    }
  
    @media (min-width: 992px) {
      max-width: 960px;
    }
  
    @media (min-width: 1200px) {
      max-width: 1140px;
    }
  
    @media (min-width: 1400px) {
      max-width: 1320px;
    }
  }
{
	"blocks": [
		{
			"type": "header",
			"text": {
				"type": "plain_text",
				"text": ":xero-boost: Your Boost Day Lineup for the Week :xero-boost:"
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "Morning Ahuriri :wave: it’s time for another exciting week with our Boost Day Program"
			}
		},
		{
			"type": "divider"
		},
		{
			"type": "header",
			"text": {
				"type": "plain_text",
				"text": ":calendar-date-22: Wednesday, 22nd January",
				"emoji": true
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "\n:coffee: *Café Partnership*: Enjoy coffee and café-style beverages from our cafe partner, *Adoro*, located in our office building *8:00AM - 11:30AM*.\n:breakfast: *Breakfast*: Provided by *Mitzi and Twinn* *9:30AM - 10:30AM* in the Kitchen.\n:gah-update: *Global All Hands*: Streamed live in Clearview *10:00AM - 11:00AM*. \n :xero: *Your Business Supercharged Activation*: Treats from *1PM*, from *SugaronTop & Hapi* to celebrate our new brand platform activation *Your Business Supercharged*."
			}
		},
		{
			"type": "header",
			"text": {
				"type": "plain_text",
				"text": ":calendar-date-23: Thursday, 23rd January",
				"emoji": true
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": ":coffee: *Café Partnership*: Enjoy coffee and café-style beverages from our cafe partner, *Adoro*, located in our office building *8:00AM - 11:30AM*. \n:lunch: *Lunch*: Provided by *Roam* *12:30PM - 1:30PM* in the Kitchen."
			}
		},
		{
			"type": "divider"
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "Stay tuned to this channel for more details, check out the <https://calendar.google.com/calendar/u/0?cid=eGVyby5jb21fbXRhc2ZucThjaTl1b3BpY284dXN0OWlhdDRAZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ|*Hawkes Bay Social Calendar*>, and get ready to Boost your workdays!\n\nWX Team :party-wx:"
			}
		}
	]
}
// /----------------------- Custom Post type Testimonial ------------------------------------/

//Testimonial Post Type
add_action('init', 'tesimonial_post_type_init');
function tesimonial_post_type_init()
{
 
    $labels = array(
 
        'name' => __('Testimonial', 'post type general name', ''),
        'singular_name' => __('Testimonial', 'post type singular name', ''),
        'add_new' => __('Add New', 'Testimonial', ''),
        'add_new_item' => __('Add New Testimonial', ''),
        'edit_item' => __('Edit Testimonial', ''),
        'new_item' => __('New Testimonial', ''),
        'view_item' => __('View Testimonial', ''),
        'search_items' => __('Search Testimonial', ''),
        'not_found' =>  __('No Testimonial found', ''),
        'not_found_in_trash' => __('No Services found in Trash', ''),
        'parent_item_colon' => ''
    );
    $args = array(
        'labels' => $labels,
        'public' => true,
        'publicly_queryable' => true,
        'show_ui' => true,
        'rewrite' => true,
        'query_var' => true,
        'menu_icon' => "dashicons-testimonial",
        'capability_type' => 'post',
        'hierarchical' => true,
        'public' => true,
        'has_archive' => true,
        'show_in_nav_menus' => true,
        'menu_position' => null,
        'rewrite' => array(
            'slug' => 'testimonial',
            'with_front' => true
        ),
        'supports' => array(
            'title',
            'editor',
            'thumbnail',
            'excerpt'
        )
    );
 
    register_post_type('testimonial', $args);
}
 
  
// Add Shortcode [our_testimonial];
add_shortcode('our_testimonial', 'codex_our_testimonial');
function codex_our_testimonial()
{
    ob_start();
    wp_reset_postdata();
?>
 
<div class="testimonialsSlider">
    <?php
    $arg = array(
        'post_type' => 'testimonial',
        'posts_per_page' => -1,
    );
    $po = new WP_Query($arg);
    if ($po->have_posts()) :
        while ($po->have_posts()) : $po->the_post(); ?>
            <div class="testimonials_wrapper">
                <div class="testimonials_content">
                    <div class="testimonial-content">
                        <div class="testipara"><?php echo wp_trim_words(get_the_content(), 50, '...'); ?></div> 
                    </div>
                    <div class="footer-testimoni">
                        <div class="thumbnail-blog">
                            <div class="testimain">
                                <h3 class="testi-title"><?php the_title(); ?></h3>
                                <div class="short-desc"><?php the_excerpt(); ?></div>
                                <div>
                                    <?php echo get_the_post_thumbnail(get_the_ID(), 'full'); ?>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        <?php endwhile;
    endif;
    wp_reset_postdata();
    ?>
</div>

 
 
<?php
    wp_reset_postdata();
    return '' . ob_get_clean();
}
{
	"blocks": [
		{
			"type": "header",
			"text": {
				"type": "plain_text",
				"text": ":cute-sun: Boost Days - What's On This Week :cute-sun:"
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "\n\n Happy Monday Melbourne!\n\n"
			}
		},
		{
			"type": "divider"
		},
		{
			"type": "header",
			"text": {
				"type": "plain_text",
				"text": "Xero Café :coffee:",
				"emoji": true
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "\n :new-thing: *This week we are offering:* \n\n :cookiemonster2: Cookies 'n' Cream Biscuits  \n\n :red-velvet-cookie: Red Velvet Cookies  \n\n *Weekly Café Special:* _Iced Long Black_"
			}
		},
		{
			"type": "header",
			"text": {
				"type": "plain_text",
				"text": " Wednesday, 22nd January :calendar-date-22:",
				"emoji": true
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": " \n\n :hands: *January Global All Hands:* 8am - 9am in the Wominjeka Breakout Space \n\n :lunch: *Light Lunch*: Provided by Kartel Catering from *12pm* \n\n"
			}
		},
		{
			"type": "header",
			"text": {
				"type": "plain_text",
				"text": "Thursday, 23rd January :calendar-date-23:",
				"emoji": true
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": ":breakfast: *Breakfast*: Provided by *Kartel Catering* from *8:30am - 10:30am* in the Wominjeka Breakout Space. \n\n :cheers-9743: *Social Happy Hour:* from 4pm - 5:30pm in the L3 Kitchen & Wominjeka Breakout Space!"
			}
		},
		{
			"type": "divider"
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "Stay tuned for more fun throughout the year. Happy 2025! :party-wx:"
			}
		}
	]
}
/**
 * Implements hook_form_FORM_ID_alter().
 */
function actency_module_form_config_pages_configuration_modules_et_options_form_alter(&$form, FormStateInterface $form_state, $form_id) {
  unset($form['field_activation_du_service_dete']['widget']['#default_value']);
  $form['#validate'][] = '_check_ai_service_required_field';
}

/**
 * Validation callback for detection service field.
 */
function _check_ai_service_required_field($form, FormStateInterface $form_state) {
  $field_controls = [
    'field_activation_du_service_dete' => 'field_activation_du_module_assis',
    'field_activation_du_service_sugg' => 'field_activation_du_service_dete',
    'field_activation_du_service_eval' => 'field_activation_du_service_dete',
    'field_delai_maximum_pour_soumett' => 'field_activation_du_service_eval',
    'field_aide_memoire_fonction_asse' => 'field_activation_du_service_dete',
    'field_aide_memoire_fonction_prof' => 'field_activation_du_service_dete',
    'field_sujet_attente_definition' => 'field_activation_du_service_dete',
    'field_texte_attente_definition' => 'field_activation_du_service_dete',
    'field_sujet_attente_resultat' => 'field_activation_du_service_eval',
    'field_texte_attente_resultat' => 'field_activation_du_service_eval',
    'field_sujet_attente_traitement' => 'field_activation_du_service_eval',
    'field_text_attente_traitement' => 'field_activation_du_service_eval',
  ];

  foreach ($field_controls as $dependent_field => $control_field) {
    $field_value = $form_state->getValue($control_field)[0]['value'];

    if (!$field_value) {
      $form_errors = $form_state->getErrors();
      $form_state->clearErrors();
      $dependent_field_value = $dependent_field.'][0][value';
      $dependent_field_uri = $dependent_field.'][0][uri';
      $dependent_field_title = $dependent_field.'][0][title';
      if(isset($form_errors[$dependent_field_value])){
        unset($form_errors[$dependent_field_value]);
      }elseif (isset($form_errors[$dependent_field_uri])){
        unset($form_errors[$dependent_field_uri], $form_errors[$dependent_field_title]);
      }else{
        unset($form_errors[$dependent_field]);
      }
      foreach ($form_errors as $name => $error_message) {
        $form_state->setErrorByName($name, $error_message);
      }
    }
  }
}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>REACT</title>

</head>
<body>
    <BUTTON> button clicked </BUTTON>
    
    <!---bind keyword ued in javascript -->
</body>
<script>
    class 
    {
        constructor (){
            this.library = "REACT"
            this.server = "http//jnvnvnf"

            document
            .querySelector('button')
            .addEventListener('click',this.handleclicked.
            bind(this))/// bind is used to access this server to get all the refereneces 
        
            handleclicked() 
            {
                console.log("button clicked");
                console.log(this.server);
            }
        }
    }
</script>
</html>
//BAR
import pandas as pd
import matplotlib.pyplot as plt

# Sample dataset with two parameters: X and Y
data = {
    'X': [1, 2, 3, 4, 5],
    'Y': [10, 20, 25, 30, 35]
}

# Create DataFrame
df = pd.DataFrame(data)


plt.figure(figsize=(6, 4))
plt.bar(df['X'], df['Y'], color='orange', label='Bar')
plt.xlabel('X')
plt.ylabel('Y')
plt.title('Bar Plot')
plt.show()

plt.savefig('bar_graph.png')

//LINE
import pandas as pd
import matplotlib.pyplot as plt

# Sample dataset with two parameters: X and Y
data = {
    'X': [1, 2, 3, 4, 5],
    'Y': [10, 20, 25, 30, 35]
}

# Create DataFrame
df = pd.DataFrame(data)


plt.figure(figsize=(6, 4))
plt.plot(df['X'], df['Y'], marker='o', color='blue', label='Line')
plt.xlabel('X')
plt.ylabel('Y')
plt.title('Line Plot')
plt.grid(True)
plt.show()

plt.savefig('line_graph.png')

//SCATTER
import pandas as pd
import matplotlib.pyplot as plt

# Sample dataset with two parameters: X and Y
data = {
    'X': [1, 2, 3, 4, 5],
    'Y': [10, 20, 25, 30, 35]
}

# Create DataFrame
df = pd.DataFrame(data)


plt.figure(figsize=(6, 4))
plt.scatter(df['X'], df['Y'], color='green', label='Scatter')
plt.xlabel('X')
plt.ylabel('Y')
plt.title('Scatter Plot')
plt.grid(True)
plt.show()

plt.savefig('scatter_plot.png') 
What is Smart Order Routing and Why is it Important?
Smart order routing (SOR) automates trade execution by analyzing multiple venues to find the best prices. It addresses market fragmentation by connecting platforms, ensuring efficiency and effectiveness. By leveraging advanced algorithms, SOR ensures traders achieve cost-effective and precise execution in a fast-paced market environment.
Beleaf Technologies: Your Partner in Smart Order Routing
Beleaf Technologies specializes in delivering state-of-the-art smart order routing solutions tailored to modern trading needs. With a focus on innovation and reliability, Beleaf Technologies’ systems empower traders to navigate fragmented markets with confidence. By offering seamless integration and real-time analytics, they ensure optimal execution, cost efficiency, and access to diverse liquidity sources, making them a trusted name in the industry.
Reach us:
Whatsapp: +91 7904323274
Skype: live:.cid.62ff8496d3390349
Telegram: @BeleafSoftTech
Mail to: business@beleaftechnologies.com\
Website : https://beleaftechnologies.com/ or 
https://beleaftechnologies.com/crypto-smart-order-routing-services
/**VLOŽIT DO FUNCTIONS***/
 function alena_rysava_scripts() {
 // Načtěte soubor scripts.js
 wp_enqueue_script('alena-rysava-scripts', get_stylesheet_directory_uri() . '/scripts.js', array('jquery'), null, true);
}
add_action('wp_enqueue_scripts', 'alena_rysava_scripts');


/**VLOŽIT JQUERY - DO CHILDKY VLOŽIT NOVÝ SOUBOR scripts.js***/

<script>
    jQuery(document).ready(function() {
        var text_expand_text = "Rozbalit recenzi";
        var text_collapse_text = "Zavřít recenzi";
        var text_expand_icon = "3";
        var text_collapse_icon = "2";

        jQuery(".pa-toggle-text").each(function() {
            jQuery(this).append('<div class="pa-text-expand-button"><span class="pa-text-collapse-button">' + text_expand_text + ' <span class="pa-text-toggle-icon">' + text_expand_icon + '</span></span></div>');
            jQuery(this).find(".pa-text-collapse-button").on("click", function() {
                jQuery(this).parent().siblings(".et_pb_text_inner").toggleClass("pa-text-toggle-expanded");
                if (jQuery(this).parent().siblings(".et_pb_text_inner").hasClass("pa-text-toggle-expanded")) {
                    jQuery(this).html(text_collapse_text + "<span class='pa-text-toggle-icon'>" + text_collapse_icon + "</span>");
                } else {
                    jQuery(this).html(text_expand_text + "<span class='pa-text-toggle-icon'>" + text_expand_icon + "</span>");
                }
            });
        });
    });
</script>



/**DO TEXTU VLOŽIT CSS TŘÍDU pa-toggle-text***/

/*collpse and set the height of the toggle text*/

.pa-toggle-text .et_pb_text_inner {
	max-height: 150px;
	transition: max-height 0.3s ease-out;
	overflow: hidden;
}


/*add gradient to the collapsed text*/

.pa-toggle-text .et_pb_text_inner:after {
	content: "";
	display: inline-block;
	position: absolute;
	pointer-events: none;
	height: 100px;
	width: 100%;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: linear-gradient(0deg, #fff 1%, transparent);
}


/*style the expand text link*/

.pa-toggle-text .pa-text-expand-button {
	padding: 10px 0;
	text-align: left;
	color: #e30074!important;
}


/*change the curor to a pointed when hovering over the expand text link*/

.pa-toggle-text .pa-text-expand-button span {
	cursor: pointer;
}


/*define the font family for the toggle icon*/

.pa-toggle-text .pa-text-expand-button .pa-text-toggle-icon {
	font-family: ETMODULES, "sans-serif";
}


/*set the max height and transition of the expanded toggle*/

.pa-toggle-text .pa-text-toggle-expanded {
	max-height: 2000px;
	transition: max-height 3.3s ease-in;
}


/*hide the gradient when the toggle is expanded*/

.pa-toggle-text .pa-text-toggle-expanded.et_pb_text_inner:after {
	background: none;
}
.cmplz-btn.cmplz-manage-consent{
  font-size: 0px;
  color: white;
  bottom: 20px !important;
  right: 20px !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  line-height: 0 !important;
  background-image: url('VLOŽITurl'); 
  background-size: 25px auto;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 10px !important;
}
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CustomMethodLibrary;

using group24.PT.Objects.IN;

using PX.Common;
using PX.Data;
using PX.Data.BQL;
using PX.Data.BQL.Fluent;
using PX.Objects;
using PX.Objects.CM;
using PX.Objects.Common.Extensions;
using PX.Objects.CS;
using PX.Objects.GL;
using PX.Objects.IN;


namespace PX.Objects.IN
{
  public class GRR_INReceiptEntry : PXGraphExtension<PX.Objects.IN.INReceiptEntry>
  {
    public PXAction<INRegister> usrNullifyReceipt;
    [PXButton]
    [PXUIField(DisplayName = "Wareneingang annullieren")]
    protected void UsrNullifyReceipt()
    {
      INRegister register = Base.receipt.Current;

      if (register == null)
        return;

      PXLongOperation.StartOperation(Base, () =>
      {
        INReceiptEntry longGraph = PXGraph.CreateInstance<INReceiptEntry>();
        PXCache longCache = longGraph.receipt.Cache;
        TraceMessageCollector tmsg = new TraceMessageCollector();
        
        try
        {
          tmsg.AddMsg(false, $"Start GRR_INReceiptEntry.UsrNullifyReceipt");
        
          INRegister adjustment = methods.CreateStockAdjustment(longGraph, longCache, register, tmsg);
        
          if (adjustment == null)
          {
            tmsg.AddMsg(true, "Adjustment creation returned null. Exiting operation.");
            return;
          }
        
          tmsg.AddMsg(false, $"Stock adjustment created with RefNbr: {adjustment.RefNbr}");

          var registerExt_GRR = register.GetExtension<INRegisterExt_GRR>();
          var registerExt_GRA = register.GetExtension<INRegisterExt_GRA>();
          registerExt_GRR.UsrINRegisterAdjustmentNbr = adjustment.RefNbr;
          longCache.SetValueExt<INRegisterExt_GRR.usrINRegisterAdjustmentNbr>(register, adjustment.RefNbr);
        
          longCache.Update(register);
          tmsg.AddMsg(false, "Updated INRegister extension with adjustment number.");

          var adjustmentExt_GRR = adjustment.GetExtension<INRegisterExt_GRR>();
          var adjustmentExt_GRA = adjustment.GetExtension<INRegisterExt_GRA>();
          adjustmentExt_GRR.UsrINRegisterOriginAdjustment = register.RefNbr;
          longCache.SetValueExt<INRegisterExt_GRR.usrINRegisterOriginAdjustment>(adjustment, register.RefNbr);
          adjustmentExt_GRA.UsrOrderNbr = registerExt_GRA.UsrOrderNbr;
          longCache.SetValueExt<INRegisterExt_GRA.usrOrderNbr>(adjustment, registerExt_GRA.UsrOrderNbr);
          
          longCache.Update(adjustment);
        
          tmsg.AddMsg(false, "Updated adjustment extensions with register details.");
        
          longCache.Persist(PXDBOperation.Update);
          tmsg.AddMsg(false, $"Adjustment {adjustment.RefNbr} saved successfully.");

          INAdjustmentEntry adjustmentEntryGraph = methods.AddStockAdjustmentLines(longGraph, longCache, register, adjustment, tmsg);

          if (adjustmentEntryGraph == null)
            return;

          adjustmentEntryGraph.SelectTimeStamp();
          adjustmentEntryGraph.Persist();
    
          throw new PXRedirectRequiredException(adjustmentEntryGraph, false, "IN Register"){Mode = PXBaseRedirectException.WindowMode.Same};
        }
        catch (Exception ex)
        {
          tmsg.AddMsg(false, $"Error in GRR_INReceiptEntry.UsrNullifyReceipt: {ex.Message}");
          throw;
        }
        finally
        {
          tmsg.AddMsg(true, $"End GRR_INReceiptEntry.UsrNullifyReceipt");
        }
      });
    }
  
    protected void INRegister_RowSelected(PXCache cache, PXRowSelectedEventArgs e)
    {      
      var register = (INRegister)e.Row;

      INRegisterExt_GRR registerExt_GRR = register.GetExtension<INRegisterExt_GRR>();
      INRegisterExt_GRA registerExt_GRA = register.GetExtension<INRegisterExt_GRA>();

      bool isNotNullified = (registerExt_GRR.UsrINRegisterAdjustmentNbr == null);

      usrNullifyReceipt.SetEnabled(isNotNullified);
    }
      
    private TraceMessageCollector tmsg;
    private GRR_INReceipt_Methods methods;
 
    public override void Initialize()
    {
      base.Initialize();
      tmsg = new TraceMessageCollector();
      methods = new GRR_INReceipt_Methods();
    }
  }
}
Willing to ride the meme coin success wave? Partner with our expert team to create your very own meme coin customized to your vision. We specialize in designing, developing, and deploying unique meme coins that capture the essence of your idea while ensuring strong functionality and market appeal. From tokenomics design to blockchain integration, we offer end-to-end solutions that set your project apart. Whether you’re aiming for viral success or building a community-driven asset, we provide the expertise to make it happen. Start your journey with confidence and bring your meme coin concept to life today.
Beleaf Technologies specializes in creating trending meme coins with innovative designs, powerful tokenomics, and seamless blockchain integration. Let us turn your idea into a viral sensation with expert development and support.
Contact us  and get a free demo today : https://www.beleaftechnologies.com/meme-coin-development-company

Whatsapp: +91 7904323274
Skype: live:.cid.62ff8496
D3390349

Telegram: @BeleafSoftTech

Mail to:business@beleaftechnologies.com


function prefix_contact_form_custom_js() {
?>
<script type='text/javascript'>
    /** Document ready. We are waiting for the full page load. */
    jQuery( document ).ready( function() {
         
        /** Click on link or button that opens the popup. It contain "#elementor-action" in href. */
        jQuery( document ).on( 'click', "a[href*='#elementor-action']", function () {
         	//alert(111);
            /** Let's give the elementor some time to animate popup. */
            setTimeout( function() {
                document.querySelectorAll(".elementor-popup-modal form.wpcf7-form:not(.elementor)").
                    forEach((e => {
                        wpcf7.init(e),
                        e.closest(".wpcf7").classList.replace("no-js", "js"),
                        e.closest(".wpcf7").classList.add("mystyle");
                    }));
            }, 800 ); // END Timeout.
         
        } ); // END link click.
         
    } ); // END Document ready.
</script>
<?php 
}
add_action( 'wp_footer', 'prefix_contact_form_custom_js', 100 );
star

Fri Jan 17 2025 17:47:29 GMT+0000 (Coordinated Universal Time) https://neunous.com/wp-admin/tools.php?page

@anbizz

star

Fri Jan 17 2025 17:27:34 GMT+0000 (Coordinated Universal Time) https://neunous.com/wp-admin/tools.php?page

@anbizz #undefined

star

Fri Jan 17 2025 15:39:37 GMT+0000 (Coordinated Universal Time)

@itz_me_vallabh

star

Fri Jan 17 2025 13:49:20 GMT+0000 (Coordinated Universal Time)

@Thinkworks #html

star

Fri Jan 17 2025 10:36:23 GMT+0000 (Coordinated Universal Time)

@E23CSEU1151

star

Fri Jan 17 2025 09:43:39 GMT+0000 (Coordinated Universal Time)

@E23CSEU1151

star

Fri Jan 17 2025 09:24:56 GMT+0000 (Coordinated Universal Time) https://github.com/Nagul-Tekworks/Python-Db1/blob/main/DA.ipynb

@enter123

star

Fri Jan 17 2025 08:24:38 GMT+0000 (Coordinated Universal Time)

@enter123

star

Fri Jan 17 2025 08:24:18 GMT+0000 (Coordinated Universal Time)

@enter123

star

Fri Jan 17 2025 08:23:40 GMT+0000 (Coordinated Universal Time)

@enter123

star

Fri Jan 17 2025 08:23:16 GMT+0000 (Coordinated Universal Time)

@enter123

star

Fri Jan 17 2025 08:22:45 GMT+0000 (Coordinated Universal Time)

@enter123

star

Fri Jan 17 2025 08:22:24 GMT+0000 (Coordinated Universal Time)

@enter123

star

Fri Jan 17 2025 08:21:54 GMT+0000 (Coordinated Universal Time)

@enter123

star

Fri Jan 17 2025 08:21:26 GMT+0000 (Coordinated Universal Time)

@enter123

star

Fri Jan 17 2025 08:20:58 GMT+0000 (Coordinated Universal Time)

@enter123

star

Fri Jan 17 2025 08:19:45 GMT+0000 (Coordinated Universal Time)

@enter123

star

Thu Jan 16 2025 19:44:35 GMT+0000 (Coordinated Universal Time)

@E23CSEU1151

star

Thu Jan 16 2025 19:26:34 GMT+0000 (Coordinated Universal Time)

@shahmeeriqbal

star

Thu Jan 16 2025 14:07:54 GMT+0000 (Coordinated Universal Time)

@MinaTimo

star

Thu Jan 16 2025 13:40:25 GMT+0000 (Coordinated Universal Time)

@E23CSEU1151

star

Thu Jan 16 2025 12:56:21 GMT+0000 (Coordinated Universal Time) https://www.beleaftechnologies.com/binance-clone-script-development

@stvejhon #crypto #cryptocurrency #exchange #meme

star

Thu Jan 16 2025 12:07:46 GMT+0000 (Coordinated Universal Time)

@E23CSEU1151

star

Thu Jan 16 2025 10:34:19 GMT+0000 (Coordinated Universal Time) https://cryptocurrency-exchange-development-company.com/

@raydensmith #crypto #cryptoexchangedevelopment #cryptoexchange #cryptoexchangesoftwaredevelopment

star

Thu Jan 16 2025 09:55:24 GMT+0000 (Coordinated Universal Time) https://www.addustechnologies.com/blog/triangular-arbitrage-bot-trading-opportunities

@Seraphina

star

Thu Jan 16 2025 07:58:35 GMT+0000 (Coordinated Universal Time) https://chatgpt.com/c/6787bc7e-5ea4-8002-8744-5f06b8c762ad

@mustafa

star

Thu Jan 16 2025 07:32:10 GMT+0000 (Coordinated Universal Time)

@Huzaifa

star

Thu Jan 16 2025 07:29:32 GMT+0000 (Coordinated Universal Time)

@Huzaifa

star

Thu Jan 16 2025 07:26:34 GMT+0000 (Coordinated Universal Time)

@Huzaifa

star

Thu Jan 16 2025 05:13:57 GMT+0000 (Coordinated Universal Time)

@Nisha

star

Thu Jan 16 2025 05:12:22 GMT+0000 (Coordinated Universal Time)

@Nisha

star

Thu Jan 16 2025 04:50:45 GMT+0000 (Coordinated Universal Time)

@Nisha

star

Thu Jan 16 2025 04:49:36 GMT+0000 (Coordinated Universal Time)

@Nisha

star

Thu Jan 16 2025 04:06:41 GMT+0000 (Coordinated Universal Time) https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_concepts_core_data_objects.htm#

@dannygelf #salesforce #screnflow #formulas

star

Thu Jan 16 2025 01:13:23 GMT+0000 (Coordinated Universal Time)

@davidmchale #container #media-queries

star

Thu Jan 16 2025 01:07:33 GMT+0000 (Coordinated Universal Time)

@FOHWellington

star

Wed Jan 15 2025 22:56:42 GMT+0000 (Coordinated Universal Time)

@shahmeeriqbal

star

Wed Jan 15 2025 21:47:56 GMT+0000 (Coordinated Universal Time)

@FOHWellington

star

Wed Jan 15 2025 16:36:17 GMT+0000 (Coordinated Universal Time)

@E23CSEU1151

star

Wed Jan 15 2025 16:24:36 GMT+0000 (Coordinated Universal Time)

@Mohith134

star

Wed Jan 15 2025 15:20:52 GMT+0000 (Coordinated Universal Time) https://www.glaxindev.xyz/

@okoli

star

Wed Jan 15 2025 12:59:00 GMT+0000 (Coordinated Universal Time) https://beleaftechnologies.com/crypto-smart-order-routing-services

@DAVIDDUNN #smartorderrouting

star

Wed Jan 15 2025 12:17:06 GMT+0000 (Coordinated Universal Time)

@hedviga

star

Wed Jan 15 2025 12:13:38 GMT+0000 (Coordinated Universal Time)

@hedviga

star

Wed Jan 15 2025 11:51:55 GMT+0000 (Coordinated Universal Time) https://crm.irntours.com/wp-admin/admin.php?page

@aliabrasa #undefined

star

Wed Jan 15 2025 07:36:43 GMT+0000 (Coordinated Universal Time) https://www.beleaftechnologies.com/meme-coin-development-company

@stvejhon #crypto #cryptocurrency #exchange #meme

star

Wed Jan 15 2025 07:12:07 GMT+0000 (Coordinated Universal Time)

@mamba

star

Tue Jan 14 2025 17:21:57 GMT+0000 (Coordinated Universal Time) https://www.roblox.com/home

@blaisegang123

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension