new
parent
406d89696e
commit
43e8203fc1
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,7 @@
|
||||
from django.urls import path
|
||||
from billing.delete import views
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
path('orderitem<int:orderitem_id>/', views.delete_orderitem, name='deleteorderitem'),
|
||||
]
|
@ -0,0 +1,11 @@
|
||||
from django.shortcuts import render, get_object_or_404, redirect
|
||||
from osinacore.models import *
|
||||
from billing.models import *
|
||||
from osinacore.decorators import *
|
||||
|
||||
@staff_login_required
|
||||
def delete_orderitem(request, orderitem_id):
|
||||
order_item = get_object_or_404(OrderItem, id=orderitem_id)
|
||||
order_id = order_item.order.id
|
||||
order_item.delete()
|
||||
return redirect('orderdetails', order_id=order_id)
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,19 @@
|
||||
# Generated by Django 4.2.5 on 2024-04-26 08:49
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('customercore', '0008_rename_ticketupdatereadstatus_ticketread'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='ticketattachment',
|
||||
name='ticket',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='customercore.ticket'),
|
||||
),
|
||||
]
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* Front to the WordPress application. This file doesn't do anything, but loads
|
||||
* wp-blog-header.php which does and tells WordPress to load the theme.
|
||||
*
|
||||
* @package WordPress
|
||||
*/
|
||||
|
||||
/**
|
||||
* Tells WordPress to load the WordPress theme and output it.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
define( 'WP_USE_THEMES', true );
|
||||
|
||||
/** Loads the WordPress Environment and Template */
|
||||
require __DIR__ . '/wp-blog-header.php';
|
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* Front to the WordPress application. This file doesn't do anything, but loads
|
||||
* wp-blog-header.php which does and tells WordPress to load the theme.
|
||||
*
|
||||
* @package WordPress
|
||||
*/
|
||||
|
||||
/**
|
||||
* Tells WordPress to load the WordPress theme and output it.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
define( 'WP_USE_THEMES', true );
|
||||
|
||||
/** Loads the WordPress Environment and Template */
|
||||
require __DIR__ . '/wp-blog-header.php';
|
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* Front to the WordPress application. This file doesn't do anything, but loads
|
||||
* wp-blog-header.php which does and tells WordPress to load the theme.
|
||||
*
|
||||
* @package WordPress
|
||||
*/
|
||||
|
||||
/**
|
||||
* Tells WordPress to load the WordPress theme and output it.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
define( 'WP_USE_THEMES', true );
|
||||
|
||||
/** Loads the WordPress Environment and Template */
|
||||
require __DIR__ . '/wp-blog-header.php';
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue