IO-1212 Missing stripe hyperlinks.
This commit is contained in:
@@ -202,8 +202,8 @@ function Header({
|
|||||||
context: null,
|
context: null,
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
|
icon={<Icon component={FaCreditCard} />}
|
||||||
>
|
>
|
||||||
<Icon component={FaCreditCard} />
|
|
||||||
{t("menus.header.enterpayment")}
|
{t("menus.header.enterpayment")}
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
<Menu.Divider key="div5" />
|
<Menu.Divider key="div5" />
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ import { TemplateList } from "../../utils/TemplateConstants";
|
|||||||
import CaBcEtfTableModalContainer from "../ca-bc-etf-table-modal/ca-bc-etf-table-modal.container";
|
import CaBcEtfTableModalContainer from "../ca-bc-etf-table-modal/ca-bc-etf-table-modal.container";
|
||||||
import PrintWrapperComponent from "../print-wrapper/print-wrapper.component";
|
import PrintWrapperComponent from "../print-wrapper/print-wrapper.component";
|
||||||
|
|
||||||
|
const stripeTestEnv = process.env.REACT_APP_STRIPE_PUBLIC_KEY; //.includes("test");
|
||||||
|
|
||||||
const mapStateToProps = createStructuredSelector({
|
const mapStateToProps = createStructuredSelector({
|
||||||
//currentUser: selectCurrentUser
|
//currentUser: selectCurrentUser
|
||||||
bodyshop: selectBodyshop,
|
bodyshop: selectBodyshop,
|
||||||
@@ -128,6 +130,18 @@ export function PaymentsListPaginated({
|
|||||||
title: t("payments.fields.stripeid"),
|
title: t("payments.fields.stripeid"),
|
||||||
dataIndex: "stripeid",
|
dataIndex: "stripeid",
|
||||||
key: "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"),
|
title: t("payments.fields.created_at"),
|
||||||
|
|||||||
@@ -426,12 +426,6 @@ function CalculateTaxesTotals(job, otherTotals) {
|
|||||||
.add(ret.state_tax)
|
.add(ret.state_tax)
|
||||||
.add(ret.local_tax);
|
.add(ret.local_tax);
|
||||||
|
|
||||||
console.log(
|
|
||||||
"Checking GST",
|
|
||||||
job.ca_customer_gst !== 0,
|
|
||||||
job.ca_customer_gst !== null
|
|
||||||
);
|
|
||||||
|
|
||||||
ret.custPayable = {
|
ret.custPayable = {
|
||||||
deductible: Dinero({ amount: Math.round((job.ded_amt || 0) * 100) }) || 0,
|
deductible: Dinero({ amount: Math.round((job.ded_amt || 0) * 100) }) || 0,
|
||||||
federal_tax: job.ca_gst_registrant
|
federal_tax: job.ca_gst_registrant
|
||||||
|
|||||||
Reference in New Issue
Block a user