MAJOR CHANGE: Renamed invoices to bills BOD-410

This commit is contained in:
Patrick Fic
2020-09-22 17:01:03 -07:00
parent 95ee3ae2bc
commit f84520c260
91 changed files with 2510 additions and 2624 deletions

View File

@@ -1,7 +1,10 @@
import React from "react";
import { connect } from "react-redux";
import { createStructuredSelector } from "reselect";
import { selectBodyshop, selectCurrentUser } from "../../redux/user/user.selectors";
import {
selectBodyshop,
selectCurrentUser,
} from "../../redux/user/user.selectors";
import DocumentsUploadComponent from "./documents-upload.component";
import { handleUpload } from "./documents-upload.utility";
@@ -13,7 +16,7 @@ const mapStateToProps = createStructuredSelector({
export function DocumentsUploadContainer({
jobId,
tagsArray,
invoiceId,
billId,
currentUser,
bodyshop,
callbackAfterUpload,
@@ -26,7 +29,7 @@ export function DocumentsUploadContainer({
bodyshop: bodyshop,
uploaded_by: currentUser.email,
jobId: jobId,
invoiceId: invoiceId,
billId: billId,
tagsArray: tagsArray,
callback: callbackAfterUpload,
})

View File

@@ -67,14 +67,7 @@ export const uploadToS3 = (
onProgress,
context
) => {
const {
bodyshop,
jobId,
invoiceId,
uploaded_by,
callback,
tagsArray,
} = context;
const { bodyshop, jobId, billId, uploaded_by, callback, tagsArray } = context;
let timestamp = Math.floor(Date.now() / 1000);
let public_id = fileName;
@@ -121,7 +114,7 @@ export const uploadToS3 = (
jobid: jobId,
uploaded_by: uploaded_by,
key: fileName,
invoiceid: invoiceId,
billid: billId,
type: fileType,
},
],