feat (frontend): add payment method.
This commit is contained in:
parent
66495e25ff
commit
ea77124ee4
@ -116,6 +116,13 @@
|
|||||||
readonly
|
readonly
|
||||||
persistent-placeholder="true"
|
persistent-placeholder="true"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
|
<v-select
|
||||||
|
:items="payment_methods"
|
||||||
|
v-model="purchase.payment_method"
|
||||||
|
item-title="text"
|
||||||
|
item-value="value"
|
||||||
|
label="Pago en"
|
||||||
|
></v-select>
|
||||||
<v-btn @click="submit" color="green">Comprar</v-btn>
|
<v-btn @click="submit" color="green">Comprar</v-btn>
|
||||||
</v-form>
|
</v-form>
|
||||||
</v-container>
|
</v-container>
|
||||||
@ -137,10 +144,16 @@
|
|||||||
valid: false,
|
valid: false,
|
||||||
client_search: '',
|
client_search: '',
|
||||||
product_search: '',
|
product_search: '',
|
||||||
|
payment_methods: [
|
||||||
|
{'text': 'Efectivo', 'value': 'CASH'},
|
||||||
|
{'text': 'Confiar', 'value': 'CONFIAR'},
|
||||||
|
{'text': 'Bancolombia', 'value': 'BANCOLOMBIA'},
|
||||||
|
],
|
||||||
purchase: {
|
purchase: {
|
||||||
date: this.getCurrentDate(),
|
date: this.getCurrentDate(),
|
||||||
customer: null,
|
customer: null,
|
||||||
notes: '',
|
notes: '',
|
||||||
|
payment_method: {'text': 'Efectivo', 'value': 'CASH'},
|
||||||
saleline_set: [{product:'', unit_price: 0, quantity: 0, unit: ''}],
|
saleline_set: [{product:'', unit_price: 0, quantity: 0, unit: ''}],
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
|
Loading…
Reference in New Issue
Block a user