feat (frontend): add payment method on summary purchase.
This commit is contained in:
		@@ -23,6 +23,12 @@
 | 
				
			|||||||
            <v-list-item-subtitle v-if="purchase.customer">{{ purchase.customer.name }}</v-list-item-subtitle>
 | 
					            <v-list-item-subtitle v-if="purchase.customer">{{ purchase.customer.name }}</v-list-item-subtitle>
 | 
				
			||||||
          </v-list-item-content>
 | 
					          </v-list-item-content>
 | 
				
			||||||
        </v-list-item>
 | 
					        </v-list-item>
 | 
				
			||||||
 | 
					        <v-list-item>
 | 
				
			||||||
 | 
					          <v-list-item-content>
 | 
				
			||||||
 | 
					            <v-list-item-title>Pagado en:</v-list-item-title>
 | 
				
			||||||
 | 
					            <v-list-item-subtitle v-if="purchase.payment_method">{{ purchase.payment_method }}</v-list-item-subtitle>
 | 
				
			||||||
 | 
					          </v-list-item-content>
 | 
				
			||||||
 | 
					        </v-list-item>
 | 
				
			||||||
        <v-list-item>
 | 
					        <v-list-item>
 | 
				
			||||||
          <v-list-item-content>
 | 
					          <v-list-item-content>
 | 
				
			||||||
            <v-list-item-title>Total:</v-list-item-title>
 | 
					            <v-list-item-title>Total:</v-list-item-title>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -164,6 +164,7 @@ def purchase_json_summary(request, id):
 | 
				
			|||||||
            'name': purchase.customer.name,
 | 
					            'name': purchase.customer.name,
 | 
				
			||||||
            # 'phone': _mask_phone(purchase.customer.phone)
 | 
					            # 'phone': _mask_phone(purchase.customer.phone)
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
 | 
					        'payment_method': purchase.payment_method,
 | 
				
			||||||
        'set_lines': lines,
 | 
					        'set_lines': lines,
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    return JsonResponse(to_response, safe=False)
 | 
					    return JsonResponse(to_response, safe=False)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user