-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for accounts payable (#198)
* Add support for accounts payable * move the export_settings
- Loading branch information
1 parent
39ef4c1
commit cdef2d3
Showing
7 changed files
with
120 additions
and
5 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
apps/accounting_exports/migrations/0003_alter_accountingexport_type.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,19 @@ | ||
# Generated by Django 4.1.2 on 2024-06-25 05:00 | ||
|
||
from django.db import migrations | ||
import sage_desktop_api.models.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('accounting_exports', '0002_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='accountingexport', | ||
name='type', | ||
field=sage_desktop_api.models.fields.StringOptionsField(choices=[('PURCHASE_INVOICE', 'PURCHASE_INVOICE'), ('DIRECT_COST', 'DIRECT_COST'), ('FETCHING_REIMBURSABLE_EXPENSES', 'FETCHING_REIMBURSABLE_EXPENSES'), ('FETCHING_CREDIT_CARD_EXPENENSES', 'FETCHING_CREDIT_CARD_EXPENENSES')], default='', help_text='Task type', max_length=255, null=True), | ||
), | ||
] |
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
18 changes: 18 additions & 0 deletions
18
...ns/0004_rename_accounts_payable_account_id_purchaseinvoicelineitems_expense_account_id.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,18 @@ | ||
# Generated by Django 4.1.2 on 2024-06-25 05:00 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('sage300', '0003_costcategory_is_imported'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='purchaseinvoicelineitems', | ||
old_name='accounts_payable_account_id', | ||
new_name='expense_account_id', | ||
), | ||
] |
19 changes: 19 additions & 0 deletions
19
apps/sage300/migrations/0005_purchaseinvoicelineitems_accounts_payable_id.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,19 @@ | ||
# Generated by Django 4.1.2 on 2024-06-25 05:13 | ||
|
||
from django.db import migrations | ||
import sage_desktop_api.models.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('sage300', '0004_rename_accounts_payable_account_id_purchaseinvoicelineitems_expense_account_id'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='purchaseinvoicelineitems', | ||
name='accounts_payable_id', | ||
field=sage_desktop_api.models.fields.StringNullField(help_text='destination id of accounts payable account', max_length=255, null=True), | ||
), | ||
] |
34 changes: 34 additions & 0 deletions
34
apps/workspaces/migrations/0005_exportsetting_default_ccc_account_payable_id_and_more.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,34 @@ | ||
# Generated by Django 4.1.2 on 2024-06-25 05:00 | ||
|
||
from django.db import migrations | ||
import sage_desktop_api.models.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('workspaces', '0004_remove_advancedsetting_add_commitment_details_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='exportsetting', | ||
name='default_ccc_account_payable_id', | ||
field=sage_desktop_api.models.fields.StringNullField(help_text='CCC Credit Card Account Payable ID', max_length=255, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='exportsetting', | ||
name='default_ccc_account_payable_name', | ||
field=sage_desktop_api.models.fields.StringNullField(help_text='CCC Credit card account payable name', max_length=255, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='exportsetting', | ||
name='default_reimbursable_account_payable_id', | ||
field=sage_desktop_api.models.fields.StringNullField(help_text='Reimbursable account payable id', max_length=255, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='exportsetting', | ||
name='default_reimbursable_account_payable_name', | ||
field=sage_desktop_api.models.fields.StringNullField(help_text='Reimbursable account payable name', max_length=255, null=True), | ||
), | ||
] |
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