2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 03:29:00 +00:00

Fixed dropdown CSS, removed sleep, renamed state label for India

This commit is contained in:
Piyush Singhania 2021-12-28 17:54:38 +05:30
parent 3f157f2d6c
commit d6aa958537
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
import { showMessageDialog } from '@/utils';
import frappe from 'frappejs';
import { sleep, _ } from 'frappejs/utils';
import { _ } from 'frappejs/utils';
import { DateTime } from 'luxon';
import { saveExportData } from '../reports/commonExporter';
import { getSavePath } from '../src/utils';
@ -120,7 +120,6 @@ export async function generateGstr1Json(getReportData) {
gstData.b2cs = await generateB2csData(rows);
}
await sleep(1);
const jsonData = JSON.stringify(gstData);
await saveExportData(jsonData, filePath);
}

View File

@ -16,9 +16,9 @@ export default function getAugmentedAddress({ country }) {
...Address.fields.slice(0, cityFieldIndex + 1),
{
fieldname: 'state',
label: 'State',
label: 'State / UT',
fieldtype: 'Select',
placeholder: 'State',
placeholder: 'State / UT',
options: Object.keys(stateCodeMap).map((key) => capitalize(key)),
},
...Address.fields.slice(cityFieldIndex + 1, Address.fields.length),

View File

@ -31,6 +31,7 @@
v-for="option in options"
:key="option.value"
:value="option.value"
class="text-black"
>
{{ option.label }}
</option>