(pos)
| 2619 | |
| 2620 | //calculate placeholder height to embed in pdf |
| 2621 | export const placeholderHeight = (pos) => { |
| 2622 | const posHeight = pos.Height; |
| 2623 | const defaultHeight = defaultWidthHeight(pos.type).height; |
| 2624 | const posUpdateHeight = posHeight || defaultHeight; |
| 2625 | |
| 2626 | //condition to handle old data saved from mobile view to get height |
| 2627 | if (pos.isMobile && pos.scale) { |
| 2628 | return pos.IsResize ? posUpdateHeight : posUpdateHeight * pos.scale; |
| 2629 | } else { |
| 2630 | return posUpdateHeight; |
| 2631 | } |
| 2632 | }; |
| 2633 | |
| 2634 | //function for getting contracts_contactbook details |
| 2635 | export const contactBook = async (objectId) => { |
no test coverage detected