execute the bellow file before installing bench
sudo apt-get install build-essential python-dev
sudo apt install supervisor
sudo apt install ngnix
sudo apt install fail2ban
| // from http://developer.gstsystem.co.in/apiportal/howToStart/download | |
| package org.gst.poc.util; | |
| import java.util.Scanner; | |
| public class GSTINValidator { | |
| public static final String GSTINFORMAT_REGEX = "[0-9]{2}[a-zA-Z]{5}[0-9]{4}[a-zA-Z]{1}[1-9A-Za-z]{1}[Z]{1}[0-9a-zA-Z]{1}"; | |
| public static final String GSTN_CODEPOINT_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; | |
| public static void main(String args[]) { |
execute the bellow file before installing bench
sudo apt-get install build-essential python-dev
sudo apt install supervisor
sudo apt install ngnix
sudo apt install fail2ban
| // Here, Supplier DocType Contains a custom field (readonly) Called "UID". | |
| // This feild is auto populated with the next number based on the highest UID in the supplier table. | |
| frappe.ui.form.on("Supplier", { | |
| validate: function(frm) { | |
| if(frm.doc.__islocal == '1'){ | |
| frappe.db.get_list("Supplier", {fields:'uid', order_by:"uid desc",limit:1}).then((data) => { | |
| frm.set_value("uid",String(parseInt(data[0].uid)+1).padStart(5,'0')); | |
| }); | |
| } |
| <div style="border:0px solid #aaa; border-radius: 10px; border-collapse: collapse;" class="container-fluid"> | |
| <div class="row"> | |
| <div class="col-xs-7"> | |
| <div class="row"> | |
| <div class="col-xs-6" style="border-right:1px solid #ddd; padding: 0px 3px 0px 0px; font-size:95%;"> | |
| <small>Deliver to Address:</small> | |
| <br><strong>{{doc.shipping_address_title}}</strong> | |
| <br>{{doc.shipping_address}} | |
| {% if "GSTIN:" not in doc.shipping_address %} | |
| {% if doc.customer_gstin %}<br>GSTIN: {{ doc.customer_gstin }} {% endif -%} |
To run this script:
pip install opencv-python streamlinkpython livestream_frame_capture.py <live_stream_url> --stream-quality best -ipf 8