From d6439b78a31835704d3c7635e90112c0d4e91a2e Mon Sep 17 00:00:00 2001 From: Irina Peshinskaya Date: Mon, 30 Mar 2015 06:18:06 +0300 Subject: [PATCH] MT#5879 Fix invoice generation script location in the embedded doc Change-Id: Ic0717c07996fba4ffa2613fe036dfe0ea0339009 --- share/tools/generate_invoices.pl | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/share/tools/generate_invoices.pl b/share/tools/generate_invoices.pl index bf2ee0e377..386c935c9c 100755 --- a/share/tools/generate_invoices.pl +++ b/share/tools/generate_invoices.pl @@ -1,5 +1,4 @@ #!/usr/bin/perl -w -use lib '/root/VMHost/ngcp-panel/lib'; use strict; use Getopt::Long qw/GetOptionsFromString/; @@ -773,25 +772,25 @@ Prints the manual page and exits. =item To generate invoices for current month: -perl /usr/share/ngcp-panel/tools/generate_invoice.pl +perl /usr/share/ngcp-panel/tools/generate_invoices.pl =item To generate invoices for previous month: -perl /usr/share/ngcp-panel/tools/generate_invoice.pl --prevmonth +perl /usr/share/ngcp-panel/tools/generate_invoices.pl --prevmonth Crontab example #m h d M dw - 5 5 1 * * perl /usr/share/ngcp-panel-tools/generate_invoice.pl --prevmonth 2>&1 >/dev/null + 5 5 1 * * perl /usr/share/ngcp-panel/tools/generate_invoices.pl --prevmonth 2>&1 >/dev/null =item To send invoices which weren't sent yet To get invoices, which weren't sent yet, period value will be considered too. It means that started from cron to send invoices generated for previous month, script should get "--prevmonth" option. -perl /usr/share/ngcp-panel/tools/generate_invoice.pl --sendonly --prevmonth +perl /usr/share/ngcp-panel/tools/generate_invoices.pl --sendonly --prevmonth Crontab example #m h d M dw - 5 */2 * * * perl /usr/share/ngcp-panel-tools/generate_invoice.pl --sendonly --prevmonth 2>&1 >/dev/null + 5 */2 * * * perl /usr/share/ngcp-panel/tools/generate_invoices.pl --sendonly --prevmonth 2>&1 >/dev/null =back