X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fcust_main-import_charges.cgi;h=215cc4c9d095ace256636244dcf0f57084982982;hb=a284ef4c8d9d43db336a77db4c34996344cd5717;hp=3801929e86a537c9c2922686412f9b4bd22d6121;hpb=40a7b3dc653e099f7bd0bd762b649b04c4432db2;p=freeside.git
diff --git a/httemplate/misc/cust_main-import_charges.cgi b/httemplate/misc/cust_main-import_charges.cgi
index 3801929e8..215cc4c9d 100644
--- a/httemplate/misc/cust_main-import_charges.cgi
+++ b/httemplate/misc/cust_main-import_charges.cgi
@@ -1,22 +1,102 @@
-<% include('/elements/header.html', 'Batch Customer Charge') %>
+<% include("/elements/header.html",'Batch Charge Import') %>
-
+
+
+Simple file format is CSV, with the following field order: custnum, agent_custid, amount, description
+
+
+
+
+Field information:
+
+
+
+ - custnum: This is the freeside customer number. It may be left blank. If specified, agent_custid must be blank.
+
+
- agent_custid: This is the reseller's idea of the customer number or identifier. It may be left blank. If specified, custnum must be blank.
+
+
- amount: A numeric value with at most two digits after the decimal point. If amount is negative, a credit will be applied instead.
+
+
- description: Text describing the transaction.
+
+
+
+
+
+Ooma format has the following field order: Description, Description2, Record Type, Customer Number, Billing Phone Number or Zip Code, Bus/Res Indicator, Invoice Date, Invoice Number, Group, Item, Revenue<%$req%>, LineCount, Exempt, ExemptList, State, City, Zipcode, OfferingPK, Offering name<%$req%>, Quantity, AccountNo<%$req%>, Status, Cust Created, PartnerID
+
+
+
<% include('/elements/footer.html') %>
+<%once>
+ my $req = qq!*!;
+%once>
+
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Import');
+ tie my %formats, 'Tie::IxHash', FS::cust_main::Import_Charges->import_formats;
+
+ my $custbatch = time2str('webimport-%Y/%m/%d-%T'. "-$$-". rand() * 2**32, time);
+
%init>
+