Fix various bits for import
This commit is contained in:
parent
697c1494b0
commit
a29c09c9bf
8 changed files with 111 additions and 69 deletions
|
@ -21,7 +21,6 @@
|
|||
<p><strong>NOTE:</strong> Files must be in CSV format.<br>
|
||||
Redundant columns and rows above and to the left of the table in the CSV must be deleted.<br>
|
||||
There can be no duplicate header columns, and there can be no fields with values outside the table.</p>
|
||||
<p>Warning: Large files will take a long time to process, just leave the tab open until the Success message appears.</p>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="card col-md-6 m-3">
|
||||
|
@ -39,6 +38,12 @@
|
|||
<h4 class="card-title">LCC Procurement Import - Transactions</h4>
|
||||
<p>Expected headers at very least: "supplier_id", "transaction_id", "net_amount", "vat amount" , "gross_amount".</p>
|
||||
<form action="/admin/import_from/transactions" method="POST" enctype="multipart/form-data">
|
||||
<select name="entity_id">
|
||||
<option>Select an Organisation</option>
|
||||
<% for my $org ( @$org_entities ) { %>
|
||||
<option value="<%= $org->{id}; %>"><%= $org->{name}; %></option>
|
||||
<% } %>
|
||||
</select><br/>
|
||||
<input type="file" name="transactions_csv" accept="text/csv">
|
||||
<input type="submit" value="Upload Transactions CSV">
|
||||
</form>
|
||||
|
|
Reference in a new issue