|
@@ -3,7 +3,7 @@
|
|
|
form-wizard(title="" subtitle="" finishButtonText="Finalizar" color="#8c9bad" nextButtonText="Continuar" backButtonText="Volver" transition="fade" @on-complete="completeSale()")
|
|
|
tab-content(title="Quien es el cliente?" :before-change="checkPartner")
|
|
|
partner-step
|
|
|
- tab-content(title="Cual es la factura?")
|
|
|
+ tab-content(title="Cual es la factura?" :before-change="checkInvoice")
|
|
|
invoice-step
|
|
|
tab-content(title="Que cuota es?")
|
|
|
h6 Move Line
|
|
@@ -32,16 +32,22 @@
|
|
|
Loader
|
|
|
},
|
|
|
computed: mapGetters([
|
|
|
- 'hasSelectedPartner'
|
|
|
+ 'hasSelectedPartner',
|
|
|
+ 'haSelectedInvoices'
|
|
|
]),
|
|
|
methods: {
|
|
|
checkPartner() {
|
|
|
if (!this.hasSelectedPartner){
|
|
|
this.notify('Nesesitas selecionar un cliente para continuar')
|
|
|
}
|
|
|
-
|
|
|
return this.hasSelectedPartner
|
|
|
},
|
|
|
+ checkInvoice(){
|
|
|
+ if(!this.haSelectedInvoices){
|
|
|
+ this.notify('Nesesitas selecionar una factura para continuar')
|
|
|
+ }
|
|
|
+ return this.haSelectedInvoices
|
|
|
+ },
|
|
|
...mapActions([
|
|
|
'initPayment',
|
|
|
'notify',
|