mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	Merge remote-tracking branch 'inventree/master' into drf-api-forms
# Conflicts: # InvenTree/company/forms.py
This commit is contained in:
		| @@ -6,7 +6,7 @@ Django Forms for interacting with Company app | ||||
| from __future__ import unicode_literals | ||||
|  | ||||
| from InvenTree.forms import HelperForm | ||||
| from InvenTree.fields import RoundingDecimalFormField | ||||
| from InvenTree.fields import InvenTreeMoneyField, RoundingDecimalFormField | ||||
|  | ||||
| from django.utils.translation import ugettext_lazy as _ | ||||
| import django.forms | ||||
| @@ -67,9 +67,8 @@ class EditSupplierPartForm(HelperForm): | ||||
|         'note': 'fa-pencil-alt', | ||||
|     } | ||||
|  | ||||
|     single_pricing = MoneyField( | ||||
|     single_pricing = InvenTreeMoneyField( | ||||
|         label=_('Single Price'), | ||||
|         default_currency=currency_code_default(), | ||||
|         help_text=_('Single quantity price'), | ||||
|         decimal_places=4, | ||||
|         max_digits=19, | ||||
|   | ||||
							
								
								
									
										25
									
								
								InvenTree/company/migrations/0039_auto_20210701_0509.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								InvenTree/company/migrations/0039_auto_20210701_0509.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| # Generated by Django 3.2.4 on 2021-07-01 05:09 | ||||
|  | ||||
| import InvenTree.fields | ||||
| from django.db import migrations | ||||
| import djmoney.models.fields | ||||
|  | ||||
|  | ||||
| class Migration(migrations.Migration): | ||||
|  | ||||
|     dependencies = [ | ||||
|         ('company', '0038_manufacturerpartparameter'), | ||||
|     ] | ||||
|  | ||||
|     operations = [ | ||||
|         migrations.AlterField( | ||||
|             model_name='supplierpricebreak', | ||||
|             name='price', | ||||
|             field=InvenTree.fields.InvenTreeModelMoneyField(currency_choices=[], decimal_places=4, default_currency='', help_text='Unit price at specified quantity', max_digits=19, null=True, verbose_name='Price'), | ||||
|         ), | ||||
|         migrations.AlterField( | ||||
|             model_name='supplierpricebreak', | ||||
|             name='price_currency', | ||||
|             field=djmoney.models.fields.CurrencyField(choices=[], default='', editable=False, max_length=3), | ||||
|         ), | ||||
|     ] | ||||
		Reference in New Issue
	
	Block a user