Added Buttons for PFs and report
This commit is contained in:
parent
d4478bdacc
commit
276abc37a4
@ -38,7 +38,8 @@ export const useDocTypeMeta = (doctype: string) => {
|
|||||||
const allowOnSubmitSet = new Set<string>();
|
const allowOnSubmitSet = new Set<string>();
|
||||||
fieldsList.forEach((field: DocTypeField) => {
|
fieldsList.forEach((field: DocTypeField) => {
|
||||||
// Check both number (1) and boolean (true) formats
|
// Check both number (1) and boolean (true) formats
|
||||||
if (field.allow_on_submit === 1 || field.allow_on_submit === true) {
|
// if (field.allow_on_submit === 1 || field.allow_on_submit === true) {
|
||||||
|
if (field.allow_on_submit === 1){
|
||||||
allowOnSubmitSet.add(field.fieldname);
|
allowOnSubmitSet.add(field.fieldname);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -27,11 +27,21 @@ export interface Asset {
|
|||||||
modified?: string;
|
modified?: string;
|
||||||
owner?: string;
|
owner?: string;
|
||||||
modified_by?: string;
|
modified_by?: string;
|
||||||
|
status?: string;
|
||||||
|
|
||||||
calculate_depreciation?: boolean;
|
calculate_depreciation?: boolean;
|
||||||
gross_purchase_amount?: number;
|
gross_purchase_amount?: number;
|
||||||
available_for_use_date?:string;
|
available_for_use_date?:string;
|
||||||
finance_books?: AssetFinanceBookRow[];
|
finance_books?: AssetFinanceBookRow[];
|
||||||
|
custom_spare_parts?: Array<{
|
||||||
|
item_code?: string;
|
||||||
|
item_name?: string;
|
||||||
|
qty?: number;
|
||||||
|
rate?: number;
|
||||||
|
amount?: number;
|
||||||
|
uom?: string;
|
||||||
|
work_order?: string;
|
||||||
|
}>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface AssetListResponse {
|
export interface AssetListResponse {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user