-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #168 from scottp-dpaw/parkstay_pay
Current works on Parkstay + Django 1.10 upgrade
- Loading branch information
Showing
157 changed files
with
13,840 additions
and
572 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,3 +83,9 @@ media/ | |
*.dump | ||
*.db | ||
*.sqlite3 | ||
|
||
#parkstay import ignores | ||
import/ | ||
importo.py | ||
build.js | ||
build.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.10.5 on 2017-01-06 08:00 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('basket', '0009_auto_20160905_1208'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='line', | ||
name='product', | ||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='basket_lines', to='catalogue.Product', verbose_name='Product'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
from django.db import models | ||
from oscar.apps.basket.abstract_models import AbstractBasket as CoreAbstractBasket | ||
from oscar.apps.basket.abstract_models import AbstractBasket as CoreAbstractBasket, AbstractLine as CoreAbstractLine | ||
|
||
class Basket(CoreAbstractBasket): | ||
system = models.CharField(max_length=4) | ||
|
||
class Line(CoreAbstractLine): | ||
product = models.ForeignKey('catalogue.Product', related_name='basket_lines', on_delete=models.SET_NULL, verbose_name='Product', blank=True, null=True) | ||
|
||
def __str__(self): | ||
return _( | ||
u"Basket #%(basket_id)d, Product #%(product_id)d, quantity" | ||
u" %(quantity)d") % {'basket_id': self.basket.pk, | ||
'product_id': self.product.pk if self.product else None, | ||
'quantity': self.quantity} | ||
|
||
from oscar.apps.basket.models import * # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.10.5 on 2017-01-06 08:00 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('catalogue', '0012_auto_20160905_1208'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='product', | ||
name='oracle_code', | ||
field=models.CharField(blank=True, max_length=50, null=True, verbose_name='Oracle Code'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.10.5 on 2017-01-06 08:00 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('order', '0006_auto_20160905_1208'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='line', | ||
name='oracle_code', | ||
field=models.CharField(blank=True, max_length=50, null=True, verbose_name='Oracle Code'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
126 changes: 126 additions & 0 deletions
126
ledger/payments/bpay/migrations/0007_auto_20170106_1600.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.10.5 on 2017-01-06 08:00 | ||
from __future__ import unicode_literals | ||
|
||
import django.core.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('bpay', '0006_auto_20160912_1134'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='bpayfile', | ||
name='created', | ||
field=models.DateTimeField(help_text='File Creation Date Time.'), | ||
), | ||
migrations.AlterField( | ||
model_name='bpayfile', | ||
name='file_id', | ||
field=models.BigIntegerField(help_text='File Identification Number.'), | ||
), | ||
migrations.AlterField( | ||
model_name='bpaygrouprecord', | ||
name='modifier', | ||
field=models.IntegerField(choices=[(1, 'interim/previous day'), (2, 'final/previous day'), (3, 'interim/same day'), (4, 'final/same day')], help_text='As of Date modifier'), | ||
), | ||
migrations.AlterField( | ||
model_name='bpaygrouprecord', | ||
name='settled', | ||
field=models.DateTimeField(help_text='File Settlement Date Time'), | ||
), | ||
migrations.AlterField( | ||
model_name='bpaytransaction', | ||
name='car', | ||
field=models.CharField(help_text='Customer Additional Reference.', max_length=20, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='bpaytransaction', | ||
name='cheque_num', | ||
field=models.IntegerField(default=0, help_text='Number of cheques in deposit'), | ||
), | ||
migrations.AlterField( | ||
model_name='bpaytransaction', | ||
name='country', | ||
field=models.CharField(help_text='Country of payment.', max_length=3, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='bpaytransaction', | ||
name='crn', | ||
field=models.CharField(help_text='Customer Referencer Number', max_length=20), | ||
), | ||
migrations.AlterField( | ||
model_name='bpaytransaction', | ||
name='discount_method', | ||
field=models.CharField(blank=True, help_text='Discount Method Code.', max_length=3, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='bpaytransaction', | ||
name='discount_ref', | ||
field=models.CharField(blank=True, help_text='Discount Reference Code.', max_length=20, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='bpaytransaction', | ||
name='discretionary_data', | ||
field=models.CharField(help_text='Reason for refund or reversal.', max_length=50, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='bpaytransaction', | ||
name='entry_method', | ||
field=models.CharField(blank=True, choices=[('000', 'undefined'), ('001', 'key entry by operator'), ('002', 'touch tone entry by payer'), ('003', 'speech recognition'), ('004', 'internet/on-line banking'), ('005', 'electtronic bill presentment'), ('006', 'batch data entry'), ('007', 'mobile entry')], help_text='Manner in which the payment details are captured.', max_length=3, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='bpaytransaction', | ||
name='orig_ref_num', | ||
field=models.CharField(blank=True, help_text='Contains the original/previous CRN in the case of a refund or reversal.', max_length=21, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='bpaytransaction', | ||
name='p_date', | ||
field=models.DateTimeField(help_text='Date of payment.'), | ||
), | ||
migrations.AlterField( | ||
model_name='bpaytransaction', | ||
name='p_instruction_code', | ||
field=models.CharField(choices=[('05', 'payment'), ('15', 'error correction'), ('25', 'reversal')], help_text='Payment instruction method.', max_length=2, validators=[django.core.validators.MinLengthValidator(2)]), | ||
), | ||
migrations.AlterField( | ||
model_name='bpaytransaction', | ||
name='p_method_code', | ||
field=models.CharField(choices=[('001', 'Debit Account'), ('101', 'Visa'), ('201', 'Mastercard'), ('301', 'Bankcard')], help_text='Method of payment.', max_length=3, validators=[django.core.validators.MinLengthValidator(3)]), | ||
), | ||
migrations.AlterField( | ||
model_name='bpaytransaction', | ||
name='payer_name', | ||
field=models.CharField(blank=True, help_text="Name of payer extracted from payer's account details.", max_length=40, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='bpaytransaction', | ||
name='ref_rev_code', | ||
field=models.CharField(blank=True, choices=[('001', 'payer paid twice'), ('002', 'payer paid wrong account'), ('003', 'payer paid wrong biller'), ('004', 'payer paid wrong amount'), ('005', 'payer did not authorise'), ('400', 'Visa chargeback'), ('500', 'MasterCard chargeback'), ('600', 'Bankcard chargeback')], help_text='Reason code for reversal or refund.', max_length=3, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='bpaytransaction', | ||
name='service_code', | ||
field=models.CharField(help_text='Unique identification for a service provider realting to a bill.', max_length=7, validators=[django.core.validators.MinLengthValidator(1)]), | ||
), | ||
migrations.AlterField( | ||
model_name='bpaytransaction', | ||
name='state', | ||
field=models.CharField(blank=True, help_text='State code of payer institution.', max_length=4, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='bpaytransaction', | ||
name='txn_ref', | ||
field=models.CharField(help_text='Transaction Reference Number', max_length=21, validators=[django.core.validators.MinLengthValidator(12)]), | ||
), | ||
migrations.AlterField( | ||
model_name='bpaytransaction', | ||
name='type', | ||
field=models.CharField(choices=[('399', 'credit'), ('699', 'debit')], help_text='Indicates whether it is a credit or debit item', max_length=3, validators=[django.core.validators.MinLengthValidator(3)]), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.