This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$n = 9; | |
$index = 1; | |
$trend = 'upward'; | |
for ($i=1; $i <= $n; $i++) { | |
$stars = $n - ($n - $index); | |
if($index >= $n){ | |
$trend = 'downward'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Load Data from a text file with comma separated columns | |
LOAD DATA LOCAL INFILE '/path/to/file.txt' INTO TABLE `tableName` | |
FIELDS TERMINATED BY 'x' | |
-- (here x could be comma ',', tab '\t', semicolon ';', space ' ') | |
LINES TERMINATED BY 'y'; | |
-- (here y is a new line character, it can be ¬, \n or anything) sometimes you may need to use only fields teminated by | |
---------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Issue#1 | |
Freshly installed ERPNext, run following command | |
- bench --site [site name] set-limit users 2000 | |
It will give you an error, in user.py line 315 | |
system_manager = get_system_managers(only_name=True)[-1] | |
This list will get out of index if there's no system manager added, as on fresh | |
installation there's only Administrator and Guest user. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.add-new-payment').on('click', function(){ | |
var received_amount = $('.payment-detail-row:last').find('.received_amount_input').val(); | |
var remaining_amount = $('.payment-detail-row:last').find('.remaining_amount_input').val(); | |
var receiving_date = $('.payment-detail-row:last').find('.mydatepicker').val(); | |
if( | |
received_amount == '' || received_amount == null || | |
remaining_amount == '' || remaining_amount == null || | |
receiving_date == '' || receiving_date == null | |
){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pls follow below step to get install ERPNext Version 12. | |
# I have installed fresh ERPNext 12 on Ubuntu 18.0.4LTS on Windows Subsystem Linux | |
# Ran the below commands | |
sudo apt-get update && upgrade | |
# Rebooted server | |
sudo mkdir -p /run/dbus | |
sudo service dbus start | |
sudo apt-get install python3-setuptools python3-minimal redis-server build-essential |