feat: enhance sale invoice component with dynamic invoice ID handling and navigation improvements
Production CI / validate-and-build (push) Failing after 1m6s
Production CI / validate-and-build (push) Failing after 1m6s
This commit is contained in:
@@ -115,16 +115,16 @@ export class SharedSaleInvoiceSingleViewComponent {
|
||||
private pendingCorrectionSubmitResolver: Maybe<(allowed: boolean, payment?: IPayment) => void> =
|
||||
null;
|
||||
|
||||
publicInvoiceRoute = computed(() => {
|
||||
get publicInvoiceRoute() {
|
||||
if (this.invoice) {
|
||||
return `${window.location.origin}/sale-invoices/${this.invoice.id}`;
|
||||
}
|
||||
return '';
|
||||
});
|
||||
}
|
||||
|
||||
canDoActionOnInvoice = computed(() => {
|
||||
get canDoActionOnInvoice() {
|
||||
return !this.invoice?.referenced_by;
|
||||
});
|
||||
}
|
||||
|
||||
showErrors = () => {};
|
||||
inquiry = () => {
|
||||
|
||||
Reference in New Issue
Block a user