IO-1212 Missing stripe hyperlinks.

This commit is contained in:
Patrick Fic
2021-06-21 11:48:48 -07:00
parent 6de9007c3a
commit d90a0cd0c8
3 changed files with 15 additions and 7 deletions

View File

@@ -202,8 +202,8 @@ function Header({
context: null,
});
}}
icon={<Icon component={FaCreditCard} />}
>
<Icon component={FaCreditCard} />
{t("menus.header.enterpayment")}
</Menu.Item>
<Menu.Divider key="div5" />

View File

@@ -15,6 +15,8 @@ import { TemplateList } from "../../utils/TemplateConstants";
import CaBcEtfTableModalContainer from "../ca-bc-etf-table-modal/ca-bc-etf-table-modal.container";
import PrintWrapperComponent from "../print-wrapper/print-wrapper.component";
const stripeTestEnv = process.env.REACT_APP_STRIPE_PUBLIC_KEY; //.includes("test");
const mapStateToProps = createStructuredSelector({
//currentUser: selectCurrentUser
bodyshop: selectBodyshop,
@@ -128,6 +130,18 @@ export function PaymentsListPaginated({
title: t("payments.fields.stripeid"),
dataIndex: "stripeid",
key: "stripeid",
render: (text, record) =>
record.stripeid ? (
<a
href={
stripeTestEnv
? `https://dashboard.stripe.com/${bodyshop.stripe_acct_id}/test/payments/${record.stripeid}`
: `https://dashboard.stripe.com/${bodyshop.stripe_acct_id}/payments/${record.stripeid}`
}
>
{record.stripeid}
</a>
) : null,
},
{
title: t("payments.fields.created_at"),

View File

@@ -426,12 +426,6 @@ function CalculateTaxesTotals(job, otherTotals) {
.add(ret.state_tax)
.add(ret.local_tax);
console.log(
"Checking GST",
job.ca_customer_gst !== 0,
job.ca_customer_gst !== null
);
ret.custPayable = {
deductible: Dinero({ amount: Math.round((job.ded_amt || 0) * 100) }) || 0,
federal_tax: job.ca_gst_registrant